Skip to content

HpackEncoderOptions

HpackEncoderOptions = object

Defined in: packages/format-http/src/hpack/hpack-encoder.ts:11

Options for HpackEncoder.

readonly optional huffman?: boolean

Defined in: packages/format-http/src/hpack/hpack-encoder.ts:23

Huffman-code a string unless that makes it longer. Defaults to true; false trades a few octets for less work per field.


readonly maxTableSize: number

Defined in: packages/format-http/src/hpack/hpack-encoder.ts:17

The dynamic table size to use, at most what the peer allows (HTTP/2’s SETTINGS_HEADER_TABLE_SIZE, 4096 until it says otherwise). 0 turns indexing off.