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
The APIs specified in this specification are used to compress and decompress streams of data. They support "deflate" and "gzip" as compression algorithms. They are widely used by web developers.
35
+
The APIs specified in this specification are used to compress and decompress streams of data. They support "deflate", "deflate-raw" and "gzip" as compression algorithms. They are widely used by web developers.
36
36
37
37
# Conformance # {#conformance}
38
38
@@ -79,6 +79,12 @@ A <dfn>compression context</dfn> is the internal state maintained by a compressi
79
79
* It is an error for DecompressionStream if the `ADLER32` checksum is not correct.
80
80
* It is an error if there is additional input data after the `ADLER32` checksum.
81
81
82
+
: `deflate-raw`
83
+
:: "The DEFLATE algorithm" [[!RFC1951]]
84
+
85
+
* Implementations must be "compliant" as described in [[!RFC1951]] section 1.4.
86
+
* Non-[[!RFC1951]]-conforming blocks must not be created by CompressionStream, and are errors for DecompressionStream.
<pid="w3c-state"><ahref="https://www.w3.org/standards/types#CG-DRAFT">Draft Community Group Report</a>, <timeclass="dt-updated" datetime="2022-01-18">18 January 2022</time></p>
635
+
<pid="w3c-state"><ahref="https://www.w3.org/standards/types#CG-DRAFT">Draft Community Group Report</a>, <timeclass="dt-updated" datetime="2022-03-28">28 March 2022</time></p>
<p>The APIs specified in this specification are used to compress and decompress streams of data. They support "deflate" and "gzip" as compression algorithms. They are widely used by web developers.</p>
706
+
<p>The APIs specified in this specification are used to compress and decompress streams of data. They support "deflate", "deflate-raw" and "gzip" as compression algorithms. They are widely used by web developers.</p>
<p>Implementations must be "compliant" as described in <adata-link-type="biblio" href="#biblio-rfc1951">[RFC1951]</a> section 1.4.</p>
754
+
<lidata-md>
755
+
<p>Non-<adata-link-type="biblio" href="#biblio-rfc1951">[RFC1951]</a>-conforming blocks must not be created by CompressionStream, and are errors for DecompressionStream.</p>
<h3class="heading settled" data-level="8.2" id="example-deflate-compress"><spanclass="secno">8.2. </span><spanclass="content">Deflate-compress an ArrayBuffer to a Uint8Array</span><aclass="self-link" href="#example-deflate-compress"></a></h3>
<h3class="heading settled" data-level="8.3" id="example-gzip-decompress"><spanclass="secno">8.3. </span><spanclass="content">Gzip-decompress a Blob to Blob</span><aclass="self-link" href="#example-gzip-decompress"></a></h3>
<dd>P. Deutsch; J-L. Gailly. <ahref="https://www.rfc-editor.org/rfc/rfc1950"><cite>ZLIB Compressed Data Format Specification version 3.3</cite></a>. May 1996. Informational. URL: <ahref="https://www.rfc-editor.org/rfc/rfc1950">https://www.rfc-editor.org/rfc/rfc1950</a>
1159
+
<dtid="biblio-rfc1951">[RFC1951]
1160
+
<dd>P. Deutsch. <ahref="https://www.rfc-editor.org/rfc/rfc1951"><cite>DEFLATE Compressed Data Format Specification version 1.3</cite></a>. May 1996. Informational. URL: <ahref="https://www.rfc-editor.org/rfc/rfc1951">https://www.rfc-editor.org/rfc/rfc1951</a>
1151
1161
<dtid="biblio-rfc1952">[RFC1952]
1152
1162
<dd>P. Deutsch. <ahref="https://www.rfc-editor.org/rfc/rfc1952"><cite>GZIP file format specification version 4.3</cite></a>. May 1996. Informational. URL: <ahref="https://www.rfc-editor.org/rfc/rfc1952">https://www.rfc-editor.org/rfc/rfc1952</a>
0 commit comments