| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/workers/runtime-apis/streams/readablestream/ | [Back] [Original] |
A ReadableStream is returned by the readable property inside TransformStream.
locked boolean
pipeTo(destinationWritableStream, optionsPipeToOptions) : Promise<void>
destination and returns a promise that is fulfilled when the write operation succeeds or rejects it if the operation fails.getReader(optionsObject) : ReadableStreamDefaultReader
ReadableStreamDefaultReader and locks the ReadableStream to that reader instance. This method accepts an object argument indicating options. The only supported option is mode, which can be set to byob to create a ReadableStreamBYOBReader, as shown here:let reader = readable.getReader({ mode: 'byob' });
preventClose bool
true, closure of the source ReadableStream will not cause the destination WritableStream to be closed.preventAbort bool
true, errors in the source ReadableStream will no longer abort the destination WritableStream. pipeTo will return a rejected promise with the error from the source or any error that occurred while aborting the destination.| Web Proxy Viewer | New URL | Original Page |