enum HPack::HuffmanMode

Overview

Controls Huffman encoding for strings emitted in a header field.

Defined in:

header_field.cr

Enum Members

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 Method Summary

Instance Method Detail

def always? #

Returns true if this enum value equals ALWAYS


[View source]
def never? #

Returns true if this enum value equals NEVER


[View source]
def smaller? #

Returns true if this enum value equals SMALLER


[View source]