Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for CompressionStream.
Developer library 6
Firefox 147 release notes for developers
y aimed at the needs of single-page applications (SPAs). ([Firefox bug 1997962](https://bugzil.la/1997962)). - Brotli compression is now supported for both [`CompressionStream`](/docs/Web/API/CompressionStream/CompressionStream#brotli) and [`DecompressionStream`](/docs/Web/API/DecompressionStream/DecompressionStream#brotli). ([Firefox bug 1921583](https://bugzil.la/1921583)). - Service workers can now be ECMAScri
DecompressionStream
Compression Streams API The **`DecompressionStream`** interface of the decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods. ## Constructor - DecompressionStream() - : Creates a new `DecompressionStream` ## Instance properties - DecompressionStream.readable - : Returns the ReadableStream instance control
Compression Streams API
e of the application smaller. The Fetch API's Response can be used to convert streams to: - ArrayBuffer - Blob - Uint8Array - String - JSON ## Interfaces - CompressionStream - : Compresses a stream of data. - DecompressionStream - : Decompresses a stream of data. ## Examples In this example a stream is compressed using gzip compression. ```js const compressedReadableStream = inputReadableStream.pipeThrough
CompressionStream
Compression Streams API The **`CompressionStream`** interface of the compresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods. ## Constructor - CompressionStream() - : Creates a new `CompressionStream`. ## Instance properties - CompressionStream.readable - : Returns the ReadableStream instance controlled by th
CompressionStream: readable property
Compression Streams API The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. ## Value A ReadableStream. ## Examples This example creates a `CompressionStream` that performs gzip compression. It writes some binary data to the `writable` stream, then reads the compressed data from the `readable` stream. ```js const strea
CompressionStream: CompressionStream() constructor
Compression Streams API The **`CompressionStream()`** constructor creates a new CompressionStream object which compresses a stream of data. ## Syntax ```js-nolint new CompressionStream(format) ``` ### Parameters - `format` - : One of the following allowed compression formats: - `"brotli"` - : Compresses the stream using the [Brotli](https://www.rfc-editor.org/info/rfc7932/) algorithm. - `"gzip"`