Consume all data from a ReadableStream until it closes or errors.
Concatenate the chunks into a single string. Chunks must be a TypedArray or an ArrayBuffer. If you need to support chunks of different types, consider readableStreamToBlob.
function
Consume all data from a ReadableStream until it closes or errors.
Concatenate the chunks into a single string. Chunks must be a TypedArray or an ArrayBuffer. If you need to support chunks of different types, consider readableStreamToBlob.
The stream to consume.
A promise that resolves with the concatenated chunks as a String.
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.