- From: Anne van Kesteren <notifications@github.com>
- Date: Fri, 19 Feb 2021 09:08:54 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 19 February 2021 17:09:07 UTC
I really want to remove this field and for responses we can look at the `Content-Length` header (at least for HTTP/1, guess we might have to write/look at some XMLHttpRequest tests to see how the progress events behave). For non-stream requests the main difficulty will be getting a length out of https://fetch.spec.whatwg.org/#concept-bodyinit-extract when _object_ isn't a stream. That might also involve acknowledging that some serialization happens on the main thread. `FormData` is the trickiest as it can hold blobs so you would partially serialize it and then use the size of the blobs to calculate the remaining space that is required. Perhaps this can be implementation-defined until we have `FormData` serialization itself defined? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/604#issuecomment-782209328
Received on Friday, 19 February 2021 17:09:07 UTC