Skip to main content

Module h3

Module h3 

Source
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§

FrameHeader
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 len octets 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 kind is an HTTP/2 frame type HTTP/3 reserves (PRIORITY, PING, WINDOW_UPDATE, CONTINUATION): receiving one is H3_FRAME_UNEXPECTED (RFC 9114 §7.2.8).