Re: [whatwg/fetch] Missing interface for uncompressed Content-Length when compression is used (Issue #1358)

Would it be reasonable to expose the total number of pre-decompression bytes received so far? Something like `response.body.receivedBytes`, which would give the number of bytes received over the wire, which would be directly comparable to the `Content-Length` value.

As far as I know, it is not always possible to compute the expected total uncompressed payload size. With Content-Encoding: gzip it might be possible after receiving the gzip header, but it is not possible with Content-Encoding: deflate.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1358#issuecomment-1228775077
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1358/1228775077@github.com>

Received on Friday, 26 August 2022 18:04:35 UTC