Skip to main content

decode_field_section

Function decode_field_section 

Source
pub fn decode_field_section(
    block: &[u8],
    limits: Limits,
    out: &mut Vec<(Vec<u8>, Vec<u8>)>,
) -> Result<(), DecodeError>
Expand description

Decodes one complete field section, appending (name, value) pairs to out in order.

§Errors

Malformed "dynamic table reference" for a Required Insert Count other than 0 or any line that refers to a dynamic table; "index" past the static table; "uppercase field name"; "truncated field section"; "integer" and the Huffman refusals. TooLarge "field section" and "field count" as HPACK’s decoder counts them, "string" for one string longer than Limits::max_head_bytes.