Skip to main content

Module qpack

Module qpack 

Available on crate features http and std only.
Expand description

QPACK wire vocabulary (RFC 9204): the static table, prefixed integer/string codings, the field-line representations that make up an encoded field section, and the encoder- and decoder-stream instruction representations.

These are pure value types with self-contained encoding and decoding over a slice cursor. The connection-scoped dynamic table, the stateful encoder/decoder and blocked-section accounting live in rama-http-core’s h3::qpack module.

Modules§

field
QPACK encoded-field-section prefix and field-line representations (RFC 9204 §4.5).
instruction
QPACK encoder-stream (RFC 9204 §4.3) and decoder-stream (RFC 9204 §4.4) instructions.
prefix
QPACK prefixed integers (RFC 9204 §4.1.1) and string literals (RFC 9204 §4.1.2).
static_table
The QPACK static table (RFC 9204 Appendix A, Table 4): 99 entries, indexed 0..=98.

Structs§

DecodedString
A decoded QPACK string literal, plus whether it was Huffman-encoded on the wire.
HeaderPrefix
The encoded-field-section prefix (RFC 9204 §4.5.1): the Required Insert Count and Base.

Enums§

DecoderInstruction
An instruction on the QPACK decoder stream (decoder → encoder, RFC 9204 §4.4).
EncoderInstruction
An instruction on the QPACK encoder stream (encoder → decoder, RFC 9204 §4.3).
FieldLine
A single field-line representation within an encoded field section (RFC 9204 §4.5.2–§4.5.6).
InvalidPrefix
An error decoding an encoded-field-section prefix.
PrefixError
An error decoding a prefixed integer or string.