ReadableStream
This Streams API interface 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.
Type parameters
R
objectRequiredProperties
locked
booleanRequiredMethods
cancel
Parameters
reason
anyReturns
Promise
Promise<void>RequiredgetReader
getReader(options
): ReadableStreamBYOBReader
Parameters
options
objectRequiredoptions.mode
"byob"RequiredReturns
getReader(): ReadableStreamDefaultReader
<R
>
Returns
getReader(options?
): ReadableStreamReader
<R
>
Parameters
Returns
pipeThrough
Parameters
options
StreamPipeOptionsReturns
pipeTo
Parameters
options
StreamPipeOptionsReturns
Promise
Promise<void>Requiredtee
Returns
[[`ReadableStream`](/references/js-client/modules/internal#readablestream)<`R`\>, [`ReadableStream`](/references/js-client/modules/internal#readablestream)<`R`\>]
[ReadableStream<R>, ReadableStream<R>]RequiredWas this section helpful?