Expand description
Pure-Rust HTTP/2 Framing, HPACK Header Compression, and Client Protocol Engine (RFC 7540, RFC 7541, RFC 9113).
Structs§
- Flow
Control Window - Manages RFC 7540 §5.2 flow control window tracking and updates.
- Hpack
Decoder - Stateful HPACK decoder maintaining dynamic table per RFC 7541.
- Http2
Connection Settings - Active HTTP/2 connection settings negotiated across the lifetime of the connection.
- Http2
Frame - An individual HTTP/2 protocol frame.
Enums§
- Http2
Error Code - RFC 7540 Section 7 HTTP/2 Error Codes.
Constants§
- ABSOLUTE_
MAX_ FRAME_ SIZE - Absolute maximum allowable frame size per RFC 7540 Section 4.1 (16,777,215 octets / 2^24 - 1).
- DEFAULT_
MAX_ FRAME_ SIZE - Default initial maximum frame size per RFC 7540 Section 6.5.2 (16,384 octets / 2^14).
- FLAG_
ACK - FLAG_
END_ HEADERS - FLAG_
END_ STREAM - FLAG_
PADDED - FLAG_
PRIORITY - FRAME_
CONTINUATION - FRAME_
DATA - FRAME_
GOAWAY - FRAME_
HEADERS - FRAME_
HEADER_ LEN - Frame header length in octets (24-bit length + 8-bit type + 8-bit flags + 31-bit stream ID).
- FRAME_
PING - FRAME_
PRIORITY - FRAME_
PUSH_ PROMISE - FRAME_
RST_ STREAM - FRAME_
SETTINGS - FRAME_
WINDOW_ UPDATE - HTTP2_
PREFACE - HTTP/2 Connection Preface sent by the client upon connection establishment.
- SETTINGS_
ENABLE_ PUSH - SETTINGS_
HEADER_ TABLE_ SIZE - SETTINGS_
INITIAL_ WINDOW_ SIZE - SETTINGS_
MAX_ CONCURRENT_ STREAMS - SETTINGS_
MAX_ FRAME_ SIZE - SETTINGS_
MAX_ HEADER_ LIST_ SIZE - STATIC_
TABLE
Functions§
- decode_
hpack_ headers - Convenience function to decode HPACK headers with a clean ephemeral decoder.
- decode_
huffman_ string - Decodes an HPACK Huffman-encoded octet slice into a UTF-8 string per RFC 7541 Section 5.2.
- decode_
integer - Decodes an integer from a byte slice with a given prefix size per RFC 7541 Section 5.1.
- decode_
string_ literal - Decodes an HPACK string literal starting at cursor, supporting both plain and Huffman encoding.
- encode_
hpack_ headers - Encodes a list of header key-value pairs into an HPACK header block.
- encode_
integer - Encodes an integer into a byte vector with a given prefix size per RFC 7541 Section 5.1.
- encode_
string_ literal - Encodes a string literal into an HPACK octet sequence (uncompressed literal, H=0).
- execute_
http2_ request - Executes a full HTTP/2 request cycle over a synchronous stream (Plain TCP or TLS).