Expand description
HTTP/1.1 connection.
Simple request-response on a single ConnCtx. No multiplexing — each
request blocks until its response is fully received.
Structs§
- H1Conn
- An HTTP/1.1 connection wrapping a
ConnCtx. - H1Streaming
Response - Streaming HTTP/1.1 response. Borrows the connection exclusively.
Constants§
- DEFAULT_
MAX_ BODY_ SIZE - Default cap on the total response body length, applied to both
Content-Lengthbodies and the cumulative size of chunked bodies. - DEFAULT_
MAX_ CHUNK_ SIZE - Default cap on a single chunk’s data length. Bounds an attacker that
claims a
Transfer-Encoding: chunkedbody with chunk sizeffffffffor larger. 16 MiB matches typical streaming buffer sizes. - DEFAULT_
MAX_ HEADER_ SECTION - Default cap on the response header section size (status line + all header fields up to the blank line). 64 KiB is generous for real-world servers and bounds the worst case while a peer dribbles bytes in.
- DEFAULT_
MAX_ TRAILER_ SECTION - Default cap on the chunked-encoding trailer section (everything between
the terminating
0\r\nand the final empty line).