Optionaloptions: ReadableStreamIteratorOptionsThe cancel() method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.
Optionalreason: anyThe getReader() method of the ReadableStream interface creates a reader and locks the stream to it. While the stream is locked, no other reader can be acquired until this one is released.
Optionaloptions: ReadableStreamGetReaderOptionsThe pipeThrough() method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
Optionaloptions: StreamPipeOptionsThe pipeTo() method of the ReadableStream interface pipes the current ReadableStream to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
Optionaloptions: StreamPipeOptionsThe tee() method of the ReadableStream interface tees the current readable stream, returning a two-element array containing the two resulting branches as new ReadableStream instances.
Optionaloptions: ReadableStreamIteratorOptions
The
ReadableStreaminterface of the Streams API represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.MDN Reference