function
readableStreamToArray
): T[] | Promise<T[]>;
Consume all data from a ReadableStream until it closes or errors.
@param stream
The stream to consume
@returns
The chunks as an array, or a promise that resolves with one
Referenced types
class ReadableStream<R = any>
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.