I'd like to load an entire fetch response in one go, but there doesn't seem to be a readAll
or similar function.
What is the most performant way to read every byte from a ReadableStreamDefaultReader into a single Uint8Array ?
Fetch's Response
interface has .arrayBuffer()
which returns an ArrayBuffer
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.