Skip to main content

Module parse

Module parse 

Source
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§

BodyReader
Reader for request bodies.

Enums§

BodyError
Errors produced while decoding the message body.
BodyMode
Message body framing modes detected from request headers.
ParseError
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.