CompressionStream
The CompressionStream interface of the Compression Streams API compresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
Properties
Link copied to clipboard
The readable read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks.
Link copied to clipboard
The writable read-only property of the CompressionStream interface returns a WritableStream that accepts uncompressed data to be compressed, in the form of ArrayBuffer, TypedArray, or DataView chunks.