ReadableStream
This Streams API interface represents a readable stream of byte data.
Type parameters
R
objectRequiredProperties
locked
booleanRequiredMethods
[asyncIterator]
Returns
cancel
Parameters
reason
anyReturns
Promise
Promise<void>RequiredgetReader
getReader(): ReadableStreamDefaultReader
<R
>
Returns
getReader(options
): ReadableStreamBYOBReader
Parameters
options
objectRequiredoptions.mode
"byob"RequiredReturns
ReadableStreamBYOBReader
anyRequiredpipeThrough
Parameters
options
StreamPipeOptionsReturns
pipeTo
Parameters
options
StreamPipeOptionsReturns
Promise
Promise<void>Requiredtee
Returns
[[`ReadableStream`](/references/js-client/modules/internal#readablestream-1)<`R`\>, [`ReadableStream`](/references/js-client/modules/internal#readablestream-1)<`R`\>]
[ReadableStream<R>, ReadableStream<R>]Requiredvalues
Parameters
options
objectoptions.preventCancel
booleanReturns
Was this section helpful?