Re: [whatwg/xhr] Use extract a length from Fetch (#317)

@yutakahirano commented on this pull request.



> @@ -783,16 +783,19 @@ return <a>this</a>'s <a>cross-origin credentials</a>.
    <li><p><a>Fire a progress event</a> named <a event><code>loadstart</code></a> at <a>this</a>
    with 0 and 0.
 
+   <li><p>Let <var>uploadedBytesLength</var> be 0.
+
+   <li><p>Let <var>totalUploadedBytesLength</var> be <var>req</var>'s <a for=request>body</a>'s
+   <a for=body>length</a>, if <var>req</var>'s <a for=request>body</a> is non-null; otherwise 0.
+

Assert: _totalUploadedBytesLength_ is an integer.

> @@ -783,16 +783,19 @@ return <a>this</a>'s <a>cross-origin credentials</a>.
    <li><p><a>Fire a progress event</a> named <a event><code>loadstart</code></a> at <a>this</a>
    with 0 and 0.
 
+   <li><p>Let <var>uploadedBytesLength</var> be 0.
+
+   <li><p>Let <var>totalUploadedBytesLength</var> be <var>req</var>'s <a for=request>body</a>'s

[optional] Is `totalBytesLengthForUpload` a better name?

-- 
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/xhr/pull/317#pullrequestreview-609385591

Received on Thursday, 11 March 2021 04:33:02 UTC