Expand description
HTTP/2 frame model + codec (RFC 7540 §6) — the Rust port of frames/types.ts
and frames/codec.ts. A Frame is a tagged enum; serialize_frame writes
the 9-byte header + payload, and FrameDecoder streams complete frames out
of arbitrary byte chunks, skipping unknown frame types (RFC 7540 §4.1).
Modules§
- frame_
type - Frame type identifiers (RFC 7540 §6).
Structs§
- Frame
Decoder - Streaming frame decoder. Feed it arbitrary byte chunks; it returns whatever complete frames are now available, buffering any partial frame internally.
- Priority
- Stream priority (RFC 7540 §6.3).
weightis the human value1..=256. - Settings
- SETTINGS parameters (RFC 7540 §6.5.2). Absent fields are
None.
Enums§
- Frame
- An HTTP/2 frame. SETTINGS/PING/GOAWAY always carry stream id 0, so it is implicit.
Constants§
Functions§
- serialize_
frame - Serialize a frame to bytes (9-byte header + payload).