

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Parsing the Body
incomplete
2: Live Body
incomplete
3: Body Review
incomplete
This lesson's interactive features are locked, please to keep using them
It's finally time to end-to-end test our full HTTP request parsing!
Again, we already did the hard parts!
Request line:
- Method: METHOD
- Target: TARGET
- Version: VERSION
Headers:
- KEY: VALUE
- KEY: VALUE
Body:
BODY_STRING
...
Be sure to stringify the body for printing.
go run ./cmd/tcplistener | tee /tmp/body.txt
curl -X POST http://localhost:42069/coffee \
-H 'Content-Type: application/json' \
-d '{"type": "dark mode", "size": "medium"}'
Run and submit the CLI tests.