Skip to main content

Module http2

Module http2 

Source
Expand description

Sans-IO streaming HTTP/2 with independent connection and stream flow control.

Frame and HPACK codecs are pure Rust. Application consumption returns receive credit; body producers run only when both peer windows permit transmission.

Structs§

DataProvider
Owned incremental body source; callbacks execute on the session thread.
HeaderField
Borrowed HTTP/2 header bytes.
HpackDecoder
A connection-direction HPACK decoder with bounded table and header-list sizes.
Http2Session
A single-threaded, incremental HTTP/2 connection with no socket ownership.
Http2Settings
SETTINGS values. Omitted wire settings decode to their RFC initial values.
ProtocolError
A connection-level framing, compression or lifecycle failure.

Enums§

DataPoll
One bounded read from an application-owned response or request body.
FrameType
Frame types from RFC 9113, including extension type codes.
Http2Role
Endpoint role; server push is intentionally disabled.
SessionEvent
Owned events retain their payload until the application dispatches them.

Traits§

DataSource
A body producer resumes after the application makes more data available.