We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Live Headers

Let's test our request line and headers parsing live with the tcplistener

Assignment

Again, we already did the hard parts!

  1. Request line:
    - Method: METHOD
    - Target: TARGET
    - Version: VERSION
    Headers:
    - KEY: VALUE
    - KEY: VALUE
    ...
    
  2. go run ./cmd/tcplistener | tee /tmp/headers.txt
    
  3. curl http://localhost:42069/use-neovim-btw
    

Run and submit the CLI tests.