Enum h2::hpack::decoder::Representation
source · enum Representation {
Indexed,
LiteralWithIndexing,
LiteralWithoutIndexing,
LiteralNeverIndexed,
SizeUpdate,
}
Variants§
Indexed
Indexed header field representation
An indexed header field representation identifies an entry in either the static table or the dynamic table (see Section 2.3).
§Header encoding
0 1 2 3 4 5 6 7
+---+---+---+---+---+---+---+---+
| 1 | Index (7+) |
+---+---------------------------+
LiteralWithIndexing
Literal Header Field with Incremental Indexing
A literal header field with incremental indexing representation results in appending a header field to the decoded header list and inserting it as a new entry into the dynamic table.
§Header encoding
0 1 2 3 4 5 6 7
+---+---+---+---+---+---+---+---+
| 0 | 1 | Index (6+) |
+---+---+-----------------------+
| H | Value Length (7+) |
+---+---------------------------+
| Value String (Length octets) |
+-------------------------------+
LiteralWithoutIndexing
Literal Header Field without Indexing
A literal header field without indexing representation results in appending a header field to the decoded header list without altering the dynamic table.
§Header encoding
0 1 2 3 4 5 6 7
+---+---+---+---+---+---+---+---+
| 0 | 0 | 0 | 0 | Index (4+) |
+---+---+-----------------------+
| H | Value Length (7+) |
+---+---------------------------+
| Value String (Length octets) |
+-------------------------------+
LiteralNeverIndexed
Literal Header Field Never Indexed
A literal header field never-indexed representation results in appending a header field to the decoded header list without altering the dynamic table. Intermediaries MUST use the same representation for encoding this header field.
0 1 2 3 4 5 6 7
+---+---+---+---+---+---+---+---+
| 0 | 0 | 0 | 1 | Index (4+) |
+---+---+-----------------------+
| H | Value Length (7+) |
+---+---------------------------+
| Value String (Length octets) |
+-------------------------------+
SizeUpdate
Dynamic Table Size Update
A dynamic table size update signals a change to the size of the dynamic table.
§Header encoding
0 1 2 3 4 5 6 7
+---+---+---+---+---+---+---+---+
| 0 | 0 | 1 | Max size (5+) |
+---+---------------------------+