Cerces / middleware/compression / CompressionStream
Class: CompressionStream
Defined in: src/middleware/compression.ts:25
Polyfill for CompressionStream using zlib if runtime does not have built-in support
Implements
ReadableWritablePair<Uint8Array,BufferSource>
Constructors
Constructor
new CompressionStream(
format):CompressionStream
Defined in: src/middleware/compression.ts:28
Parameters
format
Returns
CompressionStream
Properties
readable
readable:
ReadableStream<Uint8Array<ArrayBufferLike>>
Defined in: src/middleware/compression.ts:26
Implementation of
ReadableWritablePair.readable
writable
writable:
WritableStream<BufferSource>
Defined in: src/middleware/compression.ts:27
Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
Implementation of
ReadableWritablePair.writable