Pike v8.1 release 6

Method HPack.Context()->encode()


Method encode

void encode(array(array(string(8bit)|HPackFlags)) headers, Stdio.Buffer buf)

Description

Encode a full set of headers.

Parameter headers

An array of ({ header, value })-tuples.

Parameter buf

Output buffer.

See also

encode_header(), decode()


Method encode

variant string(8bit) encode(array(array(string(8bit))) headers)

Description

Convenience variant of encode().

Parameter headers

An array of ({ header, value })-tuples.

Returns

Returns the corresponding HPack encoding.