Optionalstream: ReadableStream<Uint8Array<ArrayBufferLike>> | nullThe ReadableStream to convert (returns empty string if null/undefined)
OptionalmaxSize: numberOptional maximum bytes to read before stopping
Promise resolving to the decoded string
Converts a ReadableStream of Uint8Array chunks to a string.
Reads the entire stream (or up to maxSize bytes) and decodes it as UTF-8 text. Useful for consuming response bodies, file streams, etc.