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", "deflate-raw" and "gzip" as compression algorithms. They are widely used by web developers.
28
16
29
-
# Conformance # {#conformance}
30
-
31
-
As well as sections marked as non-normative, all authoring guidelines,
32
-
diagrams, examples, and notes in this specification are non-normative.
33
-
Everything else in this specification is normative.
34
-
35
-
The key words *MUST* and *SHOULD* are to be interpreted as described in
36
-
[[!RFC2119]].
37
-
38
-
This specification defines conformance criteria that apply to a single product:
39
-
the user agent that implements the interfaces that it contains.
40
-
41
-
Conformance requirements phrased as algorithms or specific steps may be
42
-
implemented in any manner, so long as the end result is equivalent. (In
43
-
particular, the algorithms defined in this specification are intended to be
44
-
easy to follow, and not intended to be performant.)
45
-
46
-
Implementations that use ECMAScript to implement the APIs defined in this
47
-
specification MUST implement them in a manner consistent with the ECMAScript
48
-
Bindings defined in the Web IDL specification [[!WebIDL]], as this
49
-
specification uses that specification and terminology.
17
+
# Infrastructure # {#infrastructure}
50
18
51
-
# Terminology # {#terminology}
19
+
This specification depends on <cite>Infra</cite>. [[!INFRA]]
52
20
53
21
A chunk is a piece of data. In the case of CompressionStream and DecompressionStream, the output chunk type is Uint8Array. They accept any {{BufferSource}} type as input.
54
22
55
-
A stream represents an ordered sequence of chunks. The terms {{ReadableStream}} and {{WritableStream}} are defined in [[!WHATWG-STREAMS]].
23
+
A stream represents an ordered sequence of chunks. The terms {{ReadableStream}} and {{WritableStream}} are defined in <cite>Streams</cite>. [[!STREAMS]]
56
24
57
25
A <dfn>compression context</dfn> is the internal state maintained by a compression or decompression algorithm. The contents of a <a>compression context</a> depend on the format, algorithm and implementation in use. From the point of view of this specification, it is an opaque object. A <a>compression context</a> is initially in a start state such that it anticipates the first byte of input.
0 commit comments