Interface ReadableStream<R>
Properties
Readonly
locked
locked: boolean
Methods
[asyncIterator]
- [asyncIterator](): AsyncIterableIterator<R>
cancel
- cancel(reason?): Promise<void>
Returns Promise<void>
getReader
- getReader(): ReadableStreamDefaultReader<R>
- getReader(options): ReadableStreamBYOBReader
Parameters
options: {
mode: "byob";
}
pipeThrough
- pipeThrough<T>(transform, options?): ReadableStream<T>
pipeTo
- pipeTo(destination, options?): Promise<void>
Returns Promise<void>
values
- values(options?): AsyncIterableIterator<R>
Parameters
Optional
options: {
preventCancel?: boolean;
}
Optional
preventCancel?: boolean
This Streams API interface represents a readable stream of byte data.