Function readableStreamToJSON

  • Consume all data from a ReadableStream until it closes or errors.

    Concatenate the chunks into a single string and parse as JSON. Chunks must be a TypedArray or an ArrayBuffer. If you need to support chunks of different types, consider readableStreamToBlob.

    Returns

    A promise that resolves with the concatenated chunks as a String.

    Parameters

    Returns Promise<any>

  • Consume all data from a ReadableStream until it closes or errors.

    Concatenate the chunks into a single string and parse as JSON. Chunks must be a TypedArray or an ArrayBuffer. If you need to support chunks of different types, consider readableStreamToBlob.

    Returns

    A promise that resolves with the concatenated chunks as a String.

    Parameters

    Returns Promise<any>

Generated using TypeDoc