Expand description
HTTP/3 frames and stream types (RFC 9114 §6, §7).
Every HTTP/3 frame is a type and a length, both QUIC variable-length
integers, then the payload. decode_frame_header reads the two; the
connection then decides from the type how much of the payload it is
willing to hold (DATA is streamed, HEADERS is bounded by
Limits::max_head_bytes, everything else by Limits::max_frame_size)
before reading it.
Modules§
- code
- Error codes (RFC 9114 §8.1, RFC 9204 §6).
- frame
- Frame types (RFC 9114 §7.2).
- setting
- Setting identifiers (RFC 9114 §7.2.4.1, RFC 9204 §5).
- stream
- Unidirectional stream types (RFC 9114 §6.2, RFC 9204 §4.2).
Structs§
- Frame
Header - A frame’s type and payload length.
Functions§
- decode_
frame_ header - Decodes a frame header. Returns it and the octets used.
- decode_
goaway - Decodes a GOAWAY payload: one stream or push identifier.
- decode_
settings - Decodes a SETTINGS payload into
(identifier, value)pairs. - encode_
data_ header - Appends the header of a DATA frame whose payload of
lenoctets the caller writes next. - encode_
goaway - Appends a GOAWAY frame naming
id. - encode_
headers - Appends a HEADERS frame carrying
block, an encoded field section. - encode_
settings - Appends a SETTINGS frame.
- is_
http2_ reserved - Whether
kindis an HTTP/2 frame type HTTP/3 reserves (PRIORITY, PING, WINDOW_UPDATE, CONTINUATION): receiving one isH3_FRAME_UNEXPECTED(RFC 9114 §7.2.8).