hpack-encode ( encode-context headers -- updated-context block )


Vocabulary
http2.hpack

Inputs
encode-contexta hpack-context
headersa sequence


Outputs
updated-contexta hpack-context
blocka byte-array


Word description
Encodes the sequence of headers using the given context. Outputs the updated context and the encoded header block, as a byte array.

See also
hpack-decode

Definition


: hpack-encode
( encode-context headers -- updated-context block )
[ encode-field ] map concat ;