From e33fff65c74f68d1e0ee779497c7f97be3139bc1 Mon Sep 17 00:00:00 2001 From: Patrick Meenan Date: Sat, 15 Jun 2024 14:00:12 -0400 Subject: [PATCH] Explicitly link the content encodings to raw dictionary types --- draft-ietf-httpbis-compression-dictionary.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/draft-ietf-httpbis-compression-dictionary.md b/draft-ietf-httpbis-compression-dictionary.md index 610fff2b9..b254245fb 100644 --- a/draft-ietf-httpbis-compression-dictionary.md +++ b/draft-ietf-httpbis-compression-dictionary.md @@ -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: @@ -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