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

Connect the Parsing

We've got all the tests passing, now it's time to actually use our parser in our tcplistener! By the end of this lesson, you'll have a tcplistener that can parse the request line from a curl request!

Assignment

Believe it or not, this step is super easy... we already did the hard parts.

  1. Request line:
    - Method: GET
    - Target: /
    - Version: 1.1
    
  2. go run ./cmd/tcplistener | tee /tmp/requestline.txt
    
  3. curl http://localhost:42069/prime/agen
    

Run and submit the CLI tests.