encode-field ( encode-context header -- updated-context block )


Vocabulary
http2.hpack.private

Inputs
encode-contextan object
headeran object


Outputs
updated-contextan object
blockan object


Definition


:: encode-field
( encode-context header -- updated-context block )
header encode-context search-table
[ 128 swap 7 encode-integer encode-context swap nipd ] [
[ 64 swap 6 encode-integer ] [
64 0 6 encode-integer
header first encode-string-huffman append
] if* header second encode-string-huffman append
encode-context header add-header-to-table swap
] if* ;