Skip to main content

Module http2

Module http2 

Source
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.
FrameHeader
A parsed HTTP/2 frame header.
FramedH2
A simple framed HTTP/2 I/O wrapper.
H2FlowControl
Tracks HTTP/2 flow-control receive windows at connection and stream level.
HpackDecoder
HPACK decoder with a dynamic table.

Enums§

FrameType
HTTP/2 frame type (RFC 7540).
HpackError
Http2Error

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§

HeaderList
Decoded HPACK headers (name, value) as raw bytes.