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](/references/js-client/modules/internal#readablestreamdefaultreader-1)<R>
Returns
**getReader**(options): [ReadableStreamBYOBReader](/references/js-client/modules/internal#readablestreambyobreader-1)
Parameters
options
objectRequiredoptions.mode
"byob"RequiredReturns
ReadableStreamBYOBReader
anyRequiredpipeThrough
Parameters
options
StreamPipeOptionsReturns
pipeTo
Parameters
options
StreamPipeOptionsReturns
Promise
Promise<void>Requiredtee
Returns
[ReadableStream<R>, ReadableStream<R>]
[ReadableStream<R>, ReadableStream<R>]Requiredvalues
Parameters
options
objectoptions.preventCancel
booleanReturns
Was this section helpful?