h2 only.Expand description
HTTP/2 connection (RFC 9113 Sections 3.5, 5.1, 6.5, 8.1).
Drives one HTTP/2 connection over an async I/O stream: reads the
client’s 24-octet preface (with a timeout), sends the server
SETTINGS, maintains the peer’s SETTINGS state (applying
SETTINGS_HEADER_TABLE_SIZE to the HPACK encoder and
SETTINGS_MAX_FRAME_SIZE to the outgoing frame writer), answers
SETTINGS frames with ACK, echoes PING, and reports protocol
violations with GOAWAY before closing.
Frame parsing and validation happen in super::codec; this module
adds the connection- and stream-level wiring: per-stream state,
request/response header parsing, request dispatch to the handler,
response framing, and the connection-level error handling that
h2spec’s http2/4.3, http2/5.1, http2/6.1, http2/6.2,
http2/6.4 and http2/8.1 groups cover.
Structs§
- Connection
- An HTTP/2 server connection.
- Connection
Options - Per-connection behavior options.
- Peer
Settings - The peer’s current SETTINGS values. Defaults are the RFC 9113 Section 6.5.2 initial values; they change as non-ACK SETTINGS frames arrive.