Skip to content

Commit

Permalink
Merge pull request #2809 from pmeenan/wglc
Browse files Browse the repository at this point in the history
[compression-dictionary] Explicitly link the content encodings to raw dictionary types
  • Loading branch information
pmeenan authored Jun 15, 2024
2 parents 230bf1d + e33fff6 commit ba1aec9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions draft-ietf-httpbis-compression-dictionary.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,11 @@ sequence and a 32 byte hash of the external dictionary that was used. The
Shared Brotli stream is created using the referenced external dictionary and a
compression window that is at most 16 MB in size.

The dictionary used for the "dcb" content encoding is a "raw" dictionary type
as defined in {{type}} and is treated as a prefix dictionary as defined in
section 9.2 of the Shared Brotli Compressed Data Format draft.
{{SHARED-BROTLI}}

The 36-byte fixed header is as follows:

Magic_Number:
Expand All @@ -339,9 +344,13 @@ delta-compression of resources larger than the compression window.
The "dcz" content encoding identifies a resource that is a
"Dictionary-Compressed Zstandard" stream.

A "Dictionary-Compressed Zstandard" stream is a binary stream that starts with a
40-byte fixed header and is followed by a Zstandard {{RFC8878}} stream
of the response that has been compressed with an external dictionary.
A "Dictionary-Compressed Zstandard" stream is a binary stream that starts with
a 40-byte fixed header and is followed by a Zstandard {{RFC8878}} stream of the
response that has been compressed with an external dictionary.

The dictionary used for the "dcz" content encoding is a "raw" dictionary type
as defined in {{type}} and is treated as a raw dictionary as per section 5 of
RFC 8878.

The 40-byte header consists of a fixed 8-byte sequence followed by the
32-byte SHA-256 hash of the external dictionary that was used to compress the
Expand Down

0 comments on commit ba1aec9

Please sign in to comment.