Expand description
HTTP/2 (RFC 7540) framing + HPACK (RFC 7541).
Scope (bd-2c9t):
- Implement enough of HTTP/2 to accept cleartext prior-knowledge connections (h2c)
- Provide a correct HPACK decoder (including Huffman) for request headers
This module intentionally avoids Tokio/Hyper and uses only asupersync for async I/O.
Structs§
- Frame
- A full HTTP/2 frame.
- Frame
Header - A parsed HTTP/2 frame header.
- Framed
H2 - A simple framed HTTP/2 I/O wrapper.
- H2Flow
Control - Tracks HTTP/2 flow-control receive windows at connection and stream level.
- Hpack
Decoder - HPACK decoder with a dynamic table.
Enums§
- Frame
Type - HTTP/2 frame type (RFC 7540).
- Hpack
Error - Http2
Error
Constants§
- DEFAULT_
INITIAL_ WINDOW_ SIZE - RFC 7540 default initial window size (65,535 bytes).
- PREFACE
- HTTP/2 connection preface for prior-knowledge cleartext.
Functions§
- hpack_
encode_ literal_ without_ indexing - Encode a literal header field without indexing (RFC 7541).
Type Aliases§
- Header
List - Decoded HPACK headers (name, value) as raw bytes.