Skip to main content

Module static_table

Module static_table 

Source
Expand description

HPACK’s static table (RFC 7541 Appendix A).

Sixty-one entries every HTTP/2 endpoint is assumed to know. Index 0 is unused, so the table is 1-based, and dynamic-table entries continue from 62 — an off-by-one here shifts every header the server sends.

Constants§

DYNAMIC_BASE
The first index a dynamic-table entry can take.
ENTRIES
(name, value). An empty value means the entry names a header whose value must be given literally.

Functions§

find
Find an entry matching both name and value, for the most compact encoding.
find_name
Find an entry matching the name alone.
get
Look up a 1-based static index.