HTTP 03: Frame The Body

From Scratch · HTTP Server. Follows Parse The Request (HTTP), which stopped at the blank line, and hands off to HTTP 04: Routing and Response.
Before you start. This series builds a small copy of a web server: a program that listens on the network, reads a request, and sends back an answer. The toy can already read the first line of a request and its labelled fields, and it knows exactly where that part stops, because Parse The Request (HTTP) taught it to find the blank line that ends it. This lesson picks up right there, on whatever bytes arrive after that blank line.