in src/utils/LoaderUtils.ts [65:74]
export async function loadRequestDataIntoBuffer(
res: Response,
onProgress?: (progress: number) => void,
): Promise<Uint8Array> {
if (res.headers.has("content-length")) {
return loadDataIntoBuffer(res, onProgress);
} else {
return loadChunkedDataIntoBuffer(res, onProgress);
}
}