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

@jakearchibald commented on this pull request.



> -  <p><p>Set <var>controller</var> to the result of calling <a for=/>fetch</a> given
-  <var>request</var> and <a for=fetch><i>processResponse</i></a> given <var>response</var> being
-  these steps:
+  <p>Let <var>processRequestEndOfBody</var> be these steps:
+
+  <ol>
+   <li><p>If <var>hasUploadListeners</var> is false, then return.
+
+   <li><p>Increase <var>requestBodyTransmitted</var> by <var>bytesLength</var>.
+
+   <li><p><a>Fire a progress event</a> named <a event><code>progress</code></a> at <var>requestObserver</var>
+   with <var>requestBodyTransmitted</var> and <var>requestBodyLength</var>.
+  </ol>
+
+ <li>
+  <p>Let <var>processResponse</var> given a <var>response</var> be these steps:

Why couldn't the event be fired here https://whatpr.org/fetch/1843.html#http-network-fetch:~:text=Increase%20response%E2%80%99s%20body%20info%E2%80%99s%20encoded%20size%20by%20bytes%E2%80%99s%20length%2E ?

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

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

Received on Tuesday, 16 September 2025 09:16:24 UTC