Method HPack.Context()->put_string()


Method put_string

protected void put_string(Stdio.Buffer buf, string(8bit) str)

Description

Encode a string with the HPack string encoding.

Parameter buf

Output buffer.

Parameter str

String to output.

The encoder will huffman_encode() the string if that renders a shorter encoding than the verbatim string.