Module
whiplash/hpack/tables
src/whiplash/hpack/tables.pookaHPACK's fixed tables: the static table and the Huffman code.
API reference
static_entry(index: Int) -> Option(#(String, String))
INFERRED
fn(Int) -> Option(#(String, String))The static table entry at index, from 1 to 61.
static_field(name: String, value: String) -> Int
INFERRED
fn(String, String) -> IntThe static index of a whole field, or 0.
static_name(name: String) -> Int
INFERRED
fn(String) -> IntThe first static index with this name, or 0.
huffman_code(byte: Int) -> #(Int, Int)
INFERRED
fn(Int) -> #(Int, Int)The Huffman code of a byte, and its length in bits.
huffman_step(state: Int, nibble: Int) -> #(Int, Int, Bool)
INFERRED
fn(Int, Int) -> #(Int, Int, Bool)One step of the decoder: four bits from state. The result is the next
state, the byte completed plus one (0 for none), and whether the input
may end there. Decoding EOS gives a next state of -1. Every result is a
constant tuple, so a step allocates nothing.