Build Your Own HTTP Server - From Scratch

The whole build laid out in order: each stage is the wall the one before it hit.
Before you start. This series builds a small copy of an HTTP server: a program that answers when a browser (or curl, or another program) asks it for something, by reading a short text question off the network and writing a short text answer back. You don’t need to know any of that text shape yet - only that two programs can send each other bytes over a wire, the way a phone call carries a voice both ways.
Boards
- The Map
- The Raw Socket
- Parse The Request
- Frame The Body
- Routing and Response
- Keep-Alive
- Concurrency
- Chunked Encoding
- Everything
Code: teaching/code/from-scratch/http/ - one Go module, each stage a real
server: go run ./01-socket … go run ./07-chunked, then curl -i localhost:8080
or open it in a browser. No net/http - that’s the whole point.