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§
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_SIZEmay 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_SIZEmay take, and its default. - PREFACE
- The client connection preface (RFC 9113 §3.4).