hpack v2.0.0 HPack.Table

Functions to maintain the (de)compression context. Contains the static tables as well as all menagement of the dynamic table.

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function

add(arg, table)

add({String.t(), String.t()}, t()) :: :ok
Link to this function

find(key, value, table)

find(String.t(), String.t(), t()) ::
  {:error, :not_found} | {:keyindex, integer()} | {:fullindex, integer()}
Link to this function

lookup(idx, table)

lookup(integer(), t()) :: {:ok, tuple()} | {:error, :not_found}
Link to this function

resize(size, table, max_size \\ nil)

resize(integer(), t(), integer() | nil) :: :ok | {:error, :decode_error}
Link to this function

size(table)

size(t()) :: integer()
Link to this function

start_link(max_table_size)

start_link(integer()) :: {:ok, t()}