Lesson 6.5

Prove it on the wire

Grow the demo with a param, a static, and a wildcard route, then verify HEAD versus GET at the byte level and precedence pipelined on one socket.

24 minexamples/demo.js
  • Register /users/me, /users/:id, and /files/*path and read captures from req.params in handlers.
  • Confirm HEAD and GET differ by exactly the body bytes with a byte count.
  • Run the stage 08 and 09 checks and the full regression sweep.
Locked

This chapter is part of the framework capstone. Chapters 1 and 2 are free to build - unlock the rest to keep going.

Unlock the depth