You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -30,36 +30,42 @@ A <dfn>compression context</dfn> is the internal state maintained by a compressi
30
30
31
31
# Supported formats # {#supported-formats}
32
32
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
+
33
39
: {{CompressionFormat/deflate}}
34
40
:: "ZLIB Compressed Data Format" [[!RFC1950]]
35
41
36
42
Note: This format is referred to as "deflate" for consistency with HTTP Content-Encodings. See [[RFC7230 obsolete]] section 4.2.2.
37
43
38
44
* 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}}.
40
46
* The only valid value of the `CM` (Compression method) part of the `CMF` field is 8.
41
47
* 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.
44
50
* It is an error if there is additional input data after the `ADLER32` checksum.
45
51
46
52
: {{CompressionFormat/deflate-raw}}
47
53
:: "The DEFLATE algorithm" [[!RFC1951]]
48
54
49
55
* 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}}.
51
57
* It is an error if there is additional input data after the final block indicated by the `BFINAL` flag.
52
58
53
59
: {{CompressionFormat/gzip}}
54
60
:: "GZIP file format" [[!RFC1952]]
55
61
56
62
* 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}}.
58
64
* 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}}.
60
66
* 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}}.
63
69
* It is an error if `CRC32` or `ISIZE` do not match the decompressed data.
64
70
* A `gzip` stream may only contain one "member".
65
71
* 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
0 commit comments