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](/references/js-client/modules/internal#readablestreambyobreader)
Parameters
options
objectRequiredoptions.mode
"byob"RequiredReturns
**getReader**(): [ReadableStreamDefaultReader](/references/js-client/modules/internal#readablestreamdefaultreader)<R>
Returns
**getReader**(options?): [ReadableStreamReader](/references/js-client/internal/types/internal.ReadableStreamReader)<R>
Parameters
Returns
pipeThrough
Parameters
options
StreamPipeOptionsReturns
pipeTo
Parameters
options
StreamPipeOptionsReturns
Promise
Promise<void>Requiredtee
Returns
[ReadableStream<R>, ReadableStream<R>]
[ReadableStream<R>, ReadableStream<R>]RequiredWas this section helpful?