Re: [whatwg/fetch] WIP: Add a mechanism to fetch to track progress (PR #1843)

@lukewarlow commented on this pull request.



> @@ -9709,16 +9865,40 @@ method steps are:
    <li><p>If <var>response</var> is a <a>network error</a>, then <a for=/>reject</a> <var>p</var>
    with a {{TypeError}} and abort these steps.
 
+   <li>
+    <p>If <var>responseMonitor</var> is non-null and <var>response</var>'s
+    <a for=response>body</a> is non-null, then:
+
+    <ol>
+     <li><p>Let <var>length</var> be the result of <a for="header list">extracting a length</a>

This does have the side effect that right now total can be less than loaded (at the end) because total is based on the compressed size if the response is compressed. This is the same as XHR but I think Jake's idea to do progress tracking based on encoded size could be better.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1843#pullrequestreview-6098379090
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1843/review/6098379090@github.com>

Received on Saturday, 28 November 2026 14:29:31 UTC