HTTP Servers
What a server does between a socket and a response: accept, parse, build a request object, route, execute, serialize, write bytes. The part frameworks hide most completely.
The seven things every HTTP server does between a listening socket and the last byte written, whatever framework sits on top.
A connection is not a request. Listen, backlog, accept and file descriptors decide what happens to traffic before your code exists.
Turning a byte stream with no message boundaries into a request — and why the parser is a security component, not a formality.
What `req` and `res` really are: a mutable view over a socket, with a body that has not been read and a response that has a point of no return.
A status code is an operational signal: it decides who gets paged, what retries, and whether the number is counted against you.
Reusing a connection removes a handshake from every request — and introduces a timeout you must coordinate with every hop.
A body is bytes arriving over time at a rate the client controls, which makes buffering a memory decision and limits a survival requirement.