hackney_cow_hpack (hackney v3.0.1)

View Source

Summary

Types

headers/0

-type headers() :: [{binary(), binary()}].

opts/0

-type opts() :: map().

state/0

-opaque state()

Functions

decode(Data)

-spec decode(binary()) -> {headers(), state()}.

decode(Data, State)

-spec decode(binary(), State) -> {headers(), State} when State :: state().

encode(Headers)

-spec encode(headers()) -> {iodata(), state()}.

encode(Headers, State)

-spec encode(headers(), State) -> {iodata(), State} when State :: state().

encode(Headers, State, Opts)

-spec encode(headers(), State, opts()) -> {iodata(), State} when State :: state().

init()

-spec init() -> state().

init(MaxSize)

-spec init(non_neg_integer()) -> state().

set_max_size(MaxSize, State)

-spec set_max_size(non_neg_integer(), State) -> State when State :: state().