Expand description
HTTP/1.1 request parsing and body framing utilities.
Implements strict parsing logic for request start-lines and headers in line with RFC 9112, as well as readers for fixed-length and chunked message bodies.
Structs§
- Body
Reader - Reader for request bodies.
Enums§
- Body
Error - Errors produced while decoding the message body.
- Body
Mode - Message body framing modes detected from request headers.
- Parse
Error - Errors produced while parsing the request head.
Functions§
- body_
reader - Construct a body reader for the supplied mode.
- needs_
more_ head - Indicates whether more bytes are required to parse a complete request head.
- parse_
request_ head - Parse a request head (start-line + headers) from the provided buffer.