Expand description
Framework-independent HTTP/1 parsing and response framing.
This crate owns no socket runtime and has no dependency on Blazingly
contracts, routing, execution, OpenAPI, or MCP. Adapters provide bytes and
choose how reads, writes, scheduling, and application dispatch happen.
Structs§
- Byte
Range - Byte range referencing the caller-owned receive buffer.
- Chunk
Decoder - Incremental decoder for a chunked request body and optional trailers.
- Decoded
Chunked Body - Complete decoded chunked body and total consumed wire bytes.
- Header
Position - Header name and value ranges in the caller-owned receive buffer.
- Header
Positions - Inline-first header positions parsed without copying header bytes.
- Limits
- Limits enforced while decoding one HTTP/1 request.
- Parse
Error - Stable protocol rejection suitable for an adapter error response.
- Prepared
Headers - Response headers validated and encoded once for reuse across responses.
- Request
Head - Parsed request head borrowing all text through byte ranges.
- Streaming
Chunk Decoder - Zero-aggregate incremental chunked decoder for streaming request bodies.
Enums§
- Body
Framing - Request body framing selected from validated HTTP/1 headers.
- Method
- Standard HTTP methods accepted by the current parser.
- Streaming
Chunk - One incremental event from
StreamingChunkDecoder.
Constants§
- DEFAULT_
MAX_ BODY_ BYTES - DEFAULT_
MAX_ CHUNKS - DEFAULT_
MAX_ HEADERS - DEFAULT_
MAX_ HEADER_ BYTES - LAST_
CHUNK - MAX_
HEADER_ CAPACITY
Functions§
- encode_
chunk - Appends one HTTP/1 chunk frame to
output. - encode_
response_ head - Encodes an HTTP/1 response head while filtering caller-supplied framing fields. The adapter remains responsible for writing buffered/streaming body bytes and chunk terminators.
- encode_
response_ head_ prepared - Encodes an HTTP/1 response head from pre-validated headers.
- encode_
upgrade_ response - Encodes a
101 Switching Protocolsresponse without HTTP body framing. - parse_
request_ head - Parses one complete HTTP/1 request head from the start of
buffer. - reason_
phrase