enum

HPack::HuffmanMode

Inherits Enum < Comparable < Value < Object

Controls Huffman encoding for strings emitted in a header field.

Constants

NEVER = 0_u8

Always emit the raw string.

ALWAYS = 1_u8

Always emit the Huffman representation.

SMALLER = 2_u8

Emit Huffman data only when its encoded byte length is strictly smaller.

Instance methods

always?

Returns true if this enum value equals ALWAYS

Source
never?

Returns true if this enum value equals NEVER

Source
smaller?

Returns true if this enum value equals SMALLER

Source