Skip to content

Commit 32d7cf5

Browse files
authored
Add brotli format support
Closes #34.
1 parent bdc36f2 commit 32d7cf5

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

index.bs

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,36 +30,42 @@ A <dfn>compression context</dfn> is the internal state maintained by a compressi
3030

3131
# Supported formats # {#supported-formats}
3232

33+
: {{CompressionFormat/brotli}}
34+
:: "Brotli Compressed Data Format" [[!RFC7932]]
35+
36+
* Implementation must be "compliant" as described in [[!RFC7932]] section 1.4.
37+
* Non-[[!RFC7932]]-conforming blocks must not be created by {{CompressionStream}}, and are errors for {{DecompressionStream}}.
38+
3339
: {{CompressionFormat/deflate}}
3440
:: "ZLIB Compressed Data Format" [[!RFC1950]]
3541

3642
Note: This format is referred to as "deflate" for consistency with HTTP Content-Encodings. See [[RFC7230 obsolete]] section 4.2.2.
3743

3844
* Implementations must be "compliant" as described in [[!RFC1950]] section 2.3.
39-
* Field values described as invalid in [[!RFC1950]] must not be created by CompressionStream, and are errors for DecompressionStream.
45+
* Field values described as invalid in [[!RFC1950]] must not be created by {{CompressionStream}}, and are errors for {{DecompressionStream}}.
4046
* The only valid value of the `CM` (Compression method) part of the `CMF` field is 8.
4147
* The `FDICT` flag is not supported by these APIs, and will error the stream if set.
42-
* The `FLEVEL` flag is ignored by DecompressionStream.
43-
* It is an error for DecompressionStream if the `ADLER32` checksum is not correct.
48+
* The `FLEVEL` flag is ignored by {{DecompressionStream}}.
49+
* It is an error for {{DecompressionStream}} if the `ADLER32` checksum is not correct.
4450
* It is an error if there is additional input data after the `ADLER32` checksum.
4551

4652
: {{CompressionFormat/deflate-raw}}
4753
:: "The DEFLATE algorithm" [[!RFC1951]]
4854

4955
* Implementations must be "compliant" as described in [[!RFC1951]] section 1.4.
50-
* Non-[[!RFC1951]]-conforming blocks must not be created by CompressionStream, and are errors for DecompressionStream.
56+
* Non-[[!RFC1951]]-conforming blocks must not be created by {{CompressionStream}}, and are errors for {{DecompressionStream}}.
5157
* It is an error if there is additional input data after the final block indicated by the `BFINAL` flag.
5258

5359
: {{CompressionFormat/gzip}}
5460
:: "GZIP file format" [[!RFC1952]]
5561

5662
* Implementations must be "compliant" as described in [[!RFC1952]] section 2.3.1.2.
57-
* Field values described as invalid in [[!RFC1952]] must not be created by CompressionStream, and are errors for DecompressionStream.
63+
* Field values described as invalid in [[!RFC1952]] must not be created by {{CompressionStream}}, and are errors for {{DecompressionStream}}.
5864
* The only valid value of the `CM` (Compression Method) field is 8.
59-
* The `FTEXT` flag must be ignored by DecompressionStream.
65+
* The `FTEXT` flag must be ignored by {{DecompressionStream}}.
6066
* If the `FHCRC` field is present, it is an error for it to be incorrect.
61-
* The contents of any `FEXTRA`, `FNAME` and `FCOMMENT` fields must be ignored by DecompressionStream, except to verify that they are terminated correctly.
62-
* The contents of the `MTIME`, `XFL` and `OS` fields must be ignored by DecompressionStream.
67+
* The contents of any `FEXTRA`, `FNAME` and `FCOMMENT` fields must be ignored by {{DecompressionStream}}, except to verify that they are terminated correctly.
68+
* The contents of the `MTIME`, `XFL` and `OS` fields must be ignored by {{DecompressionStream}}.
6369
* It is an error if `CRC32` or `ISIZE` do not match the decompressed data.
6470
* A `gzip` stream may only contain one "member".
6571
* It is an error if there is additional input data after the end of the "member".
@@ -68,6 +74,7 @@ A <dfn>compression context</dfn> is the internal state maintained by a compressi
6874

6975
<pre class="idl">
7076
enum CompressionFormat {
77+
"brotli",
7178
"deflate",
7279
"deflate-raw",
7380
"gzip",

0 commit comments

Comments
 (0)