Nginx HTTP Request Body Internals: Entry, Filters, and Event-Driven Reading
Nginx defers request-body I/O until phase handlers actually need it (most commonly in the CONTENT phase for proxy_pass and upstream modules). The core path involves two cooperating pieces: a reader that pulls bytes from the socket and a filter chain that moves buffered data to memory or a temporary...