interface 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 = any
Properties
🔗
locked: boolean
Methods
🔗
cancel(reason?: any): Promise<void>
🔗
getReader(options: { mode: "byob"; }): ReadableStreamBYOBReader
🔗
getReader(options?: { mode?: undefined; }): ReadableStreamDefaultReader<R>
🔗
pipeThrough(transform: { writable: WritableStream<R>; readable: ReadableStream<T>; }, options?: PipeOptions): ReadableStream<T>
🔗
pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>
🔗
tee(): [ReadableStream<R>, ReadableStream<R>]