TransformStream
Background
A transform stream consists of a pair of streams: a writable stream, known as its writable side, and a readable stream, known as its readable side. Writes to the writable side result in new data being made available for reading from the readable side.
The Workers platform currently only implements an identity transform stream, a type of transform stream which forwards all chunks written to its writable side to its readable side, without any changes.
Constructor
let { readable, writable } = new TransformStream();
-
TransformStream()
TransformStream
- Returns a new identity transform stream.
Properties
-
readable
ReadableStream
- An instance of a
ReadableStream
.
- An instance of a
-
writable
WritableStream
- An instance of a
WritableStream
.
- An instance of a