- From: Jeremy Rose <notifications@github.com>
- Date: Fri, 26 Aug 2022 11:04:23 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 26 August 2022 18:04:35 UTC
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