Method HPack.Context()->add_header()
- Method add_header
int(0..0)
|int(62..62)
add_header(string(8bit)
header
,string(8bit)
value
)- Description
Add a header to the table of known headers and to the header index.
- Parameter
header
Name of header to add.
- Parameter
value
Value of the header.
- Returns
Returns
0
(zero) if the header was too large to store. Returns the encoding key for the header on success (this is alwayssizeof(static_header_tab + 1
(ie62
), as new headers are prepended to the dynamic header table.- Note
Adding a header may cause old headers to be evicted from the table.
- See also