Skip to main content

Module h2

Module h2 

Source
Expand description

HTTP/2 frames (RFC 9113 §4, §6).

Frame::decode reads one frame from the front of a buffer and checks what the frame alone can tell: its length against the caller’s SETTINGS_MAX_FRAME_SIZE (from the 9-octet header, before the payload is looked at), the fixed lengths, padding, which frames may and may not name stream 0, and the SETTINGS values RFC 9113 §6.5.2 constrains. Everything that needs connection state (stream states, flow-control windows, CONTINUATION sequencing, a zero WINDOW_UPDATE increment) is the connection’s to decide.

Modules§

code
Error codes (RFC 9113 §7).
setting
Setting identifiers (RFC 9113 §6.5.2).

Enums§

Frame
One HTTP/2 frame, borrowing its payload from the input.

Constants§

DEFAULT_WINDOW
The initial stream and connection window: 65 535 (RFC 9113 §6.9.2).
HEADER_LEN
The frame header’s length (RFC 9113 §4.1).
MAX_FRAME_SIZE_LIMIT
The largest value SETTINGS_MAX_FRAME_SIZE may take: 2^24 - 1.
MAX_WINDOW
The largest flow-control window: 2^31 - 1 (RFC 9113 §6.9.1).
MIN_MAX_FRAME_SIZE
The smallest value SETTINGS_MAX_FRAME_SIZE may take, and its default.
PREFACE
The client connection preface (RFC 9113 §3.4).