Skip to main content
Skip to main content

ReadableStream

This Streams API interface represents a readable stream of byte data.

Type parameters

RobjectRequired

Properties

lockedbooleanRequired

Methods

[asyncIterator]

Returns

AsyncIterableIteratorAsyncIterableIterator<R>Required

cancel

Parameters

reasonany

Returns

PromisePromise<void>Required

getReader

**getReader**(): [ReadableStreamDefaultReader](/references/js-client/modules/internal#readablestreamdefaultreader-1)&#60;R&#62;

Returns

ReadableStreamDefaultReaderReadableStreamDefaultReader<R>Required

**getReader**(options): [ReadableStreamBYOBReader](/references/js-client/modules/internal#readablestreambyobreader-1)

Parameters

optionsobjectRequired
options.mode"byob"Required

Returns

ReadableStreamBYOBReaderanyRequired

pipeThrough

Parameters

transformReadableWritablePair<T, R>Required

Returns

ReadableStreamReadableStream<T>Required

pipeTo

Parameters

destinationWritableStream<R>Required

Returns

PromisePromise<void>Required

tee

Returns

[ReadableStream&#60;R&#62;, ReadableStream&#60;R&#62;][ReadableStream<R>, ReadableStream<R>]Required

values

Parameters

optionsobject
options.preventCancelboolean

Returns

AsyncIterableIteratorAsyncIterableIterator<R>Required
Was this section helpful?