CompressionStream
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2969
The CompressionStream interface of the Compression Streams API is an API for compressing a stream of data.
Extends
Section titled “Extends”TransformStream<ArrayBuffer|ArrayBufferView,Uint8Array>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CompressionStream(
format):CompressionStream
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2973
Parameters
Section titled “Parameters”format
Section titled “format”"gzip" | "deflate" | "deflate-raw"
Returns
Section titled “Returns”CompressionStream
Overrides
Section titled “Overrides”Properties
Section titled “Properties”readable
Section titled “readable”
readonlyreadable:ReadableStream<Uint8Array<ArrayBufferLike>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2938
The readable read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
Inherited from
Section titled “Inherited from”writable
Section titled “writable”
readonlywritable:WritableStream<ArrayBuffer|ArrayBufferView<ArrayBufferLike>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2944
The writable read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.