[][src]Module httlib_huffman::parser

Provides features for parsing Huffman code table provided by the HPACK documentation.

HPACK provides a pre-created Huffman code table for encoding ASCII characters to the Huffman sequence. This Huffman code was generated from statistics obtained on a large sample of HTTP headers.

The parser module is responsible for parsing the Huffman code table into the static Rust source code. This module was used to create the ENCODE_TABLE constant which can be found in the encode::table module.

You will probably never use this module while developing applications.

Functions

parse

Parses the HPACK's static Huffman table. The function expects data to be in format as provided by the spec (7.2).