[][src]Module httlib_hpack::decoder

Provides an implementation of the HPACK decoder.

The decoder takes over the task of the decompressor, i.e. it executes the commands inversely to the encoder. It converts the data back into its readable form, ensuring that the indexing table is identical to that on the encoder side.

The decoder is usually the one that determines how many resources can be used for the purposes of HPACK compression, among others. The decoder signals this to the encoder in the HTTP/2 protocol with the parameter SETTINGS_HEADER_TABLE_SIZE using the 'SETTINGS' frame. This change is made when the settings are confirmed by both sides in a way that the HTTP/2 protocol requires. In fact, the encoder is the one that actually requires a change in the size of the dynamic table to meet the requirements of the values agreed upon via the HTTP/2 protocol.

Structs

Decoder

Provides the decoding engine for HTTP/2 headers.

Enums

DecoderError

Contains error options that can be encountered while performing the decoding of an HPACK header set.

DecoderSpeed

Provides available decoding speed options which represent the number of bits that the decoder can read at a time.