Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds subheadings for post-base instructions #1366

Merged
merged 1 commit into from
May 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions draft-ietf-quic-qpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,18 +520,22 @@ the static (S=1) or dynamic (S=0) table. Finally, the relative index of the
matching header field is represented as an integer with a 6-bit prefix (see
Section 5.1 of [RFC7541]).


#### Indexed Header Field With Post-Base Index

If the entry is in the dynamic table with an absolute index greater than Base
Index, the representation starts with the '0100' 4-bit pattern, followed by the
post-base index (see {{indexing}}) of the matching header field, represented as
an integer with a 4-bit prefix (see Section 5.1 of [RFC7541]).

~~~~~~~~~~ drawing
0 1 2 3 4 5 6 7
+---+---+---+---+---+---+---+---+
| 0 | 1 | 0 | 0 | Index (4+) |
+---+---+-----------------------+
+---+---+---+---+---------------+
~~~~~~~~~~
{: title="Indexed Header Field"}
{: title="Indexed Header Field with Post-Base Index"}

If the entry is in the dynamic table with an absolute index greater than Base
Index, the representation starts with the '0100' 4-bit pattern, followed by the
post-base index (see {{indexing}}) of the matching header field, represented as
an integer with a 4-bit prefix (see Section 5.1 of [RFC7541]).

#### Literal Header Field With Name Reference

Expand All @@ -558,7 +562,7 @@ values that are not to be put at risk by compressing them (see Section 7.1 of
0 1 2 3 4 5 6 7
+---+---+---+---+---+---+---+---+
| 0 | 0 | N | S |Name Index (4+)|
+---+---+-----------------------+
+---+---+---+---+---------------+
| H | Value Length (7+) |
+---+---------------------------+
| Value String (Length octets) |
Expand All @@ -572,21 +576,24 @@ relative index of that entry, which is represented as an integer with a 4-bit
prefix (see Section 5.1 of [RFC7541]). The `S` bit indicates whether the
reference is to the static (S=1) or dynamic (S=0) table.

#### Literal Header Field With Post-Base Name Reference

For entries in the dynamic table with an absolute index greater than Base Index,
the header field name is represented using the post-base index of that entry
(see {{indexing}}) encoded as an integer with a 3-bit prefix.

~~~~~~~~~~ drawing
0 1 2 3 4 5 6 7
+---+---+---+---+---+---+---+---+
| 0 | 1 | 0 | 1 | N |NameIdx(3+)|
+---+---+-----------------------+
+---+---+---+---+---+-----------+
| H | Value Length (7+) |
+---+---------------------------+
| Value String (Length octets) |
+-------------------------------+
~~~~~~~~~~
{: title="Literal Header Field With Post-Base Name Reference"}

For entries in the dynamic table with an absolute index greater than Base Index,
the header field name is represented using the post-base index of that entry
(see {{indexing}}) encoded as an integer with a 3-bit prefix.

#### Literal Header Field Without Name Reference

Expand All @@ -610,7 +617,7 @@ represented as an 8-bit prefix string literal.
0 1 2 3 4 5 6 7
+---+---+---+---+---+---+---+---+
| 0 | 1 | 1 | N | H |NameLen(3+)|
+---+---+---+-------------------+
+---+---+---+---+---+-----------+
| Name String (Length octets) |
+---+---------------------------+
| H | Value Length (7+) |
Expand All @@ -620,6 +627,7 @@ represented as an 8-bit prefix string literal.
~~~~~~~~~~
{: title="Literal Header Field Without Name Reference"}


# Encoding Strategies

## Single pass encoding
Expand Down