Struct nahpack::HpackContext [] [src]

#[repr(C)]
pub struct HpackContext { pub dynamics: VecDeque<DynamicHeader>, // some fields omitted }

HpackContext contains the state, namely dynamic table and capacity setting, for either the transmitting or receiving part of a connection.

Fields

Methods

impl HpackContext
[src]

Instantiate an HpackContext with the specification's default dynamic table capacity of 4,096 octets.

Instantiate an HpackContext with a dynamic table capacity of the given number of octets.

Number of headers in the context, both static and dynamic.

The number of octets, with HPACK-specified overhead included, that the dynamic table can hold.

The number of octets, with HPACK-specified overhead included, that are used by the dynamic table.

Set the dynamic table's capacity to the number of HPACK-specified octets given. The value given must be from a SETTINGS frame.

Headers will be evicted from the dynamic table as necessary.

Resize the dynamic table's size to the number of HPACK-specified octets given.

Headers will be evicted from the dynamic table as necessary.

Insert a header into the dynamic table.

If the given header exceeds the dynamic table's size, the insert may only clear the dynamic table without being added. The returned bool indicates whether the header was added or not.

If it was added, it now occupies the first dynamic index.

Look up a header by a client's index value.

Look up a header name by a client's index value.