pub enum HpackError {
InvalidInteger,
InvalidString,
InvalidHuffman,
InvalidIndex,
InvalidMaxSize,
HeaderListTooLarge,
InvalidRepresentation,
}h2 or h3 only.Expand description
Errors produced by the shared HPACK/QPACK primitives.
The integer and Huffman variants are produced by the shared code; the
remaining variants are produced by the HPACK decoder itself. Callers map
these to protocol errors (COMPRESSION_ERROR for HTTP/2, the 0x2xx
QPACK error family for HTTP/3).
Variants§
InvalidInteger
An integer representation overflowed or ran out of input.
InvalidString
A string literal violated framing constraints.
InvalidHuffman
A Huffman-encoded string violated RFC 7541 Section 5.2 rules (EOS symbol in the data, over-long or malformed padding, or truncation).
InvalidIndex
An indexed header field referenced a non-existent table entry.
InvalidMaxSize
A dynamic table size update exceeded the protocol maximum or appeared after a header field representation.
HeaderListTooLarge
The decoded header list exceeded the configured maximum size.
InvalidRepresentation
The first octet of a representation matched no known pattern.
Trait Implementations§
Source§impl Clone for HpackError
impl Clone for HpackError
Source§fn clone(&self) -> HpackError
fn clone(&self) -> HpackError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more