Re: [whatwg/fetch] Uploading a Request made from a ReadableStream body (#425)

yutakahirano commented on this pull request.



> -  <var>request</var> is reused with redirects, authentication, and proxy authentication.
+  <ol>
+   <li><p>Set <var>httpRequest</var> to a copy of <var>request</var> except for its
+   <a for=request>body</a>.
+
+   <li><p>Let <var>body</var> be <var>request</var>'s <a for=request>body</a>.
+
+   <li>
+    <p>If <var>body</var> is non-null, then set <var>request</var>'s <a for=request>body</a> to a
+    new <a for=/>body</a> whose <a for=body>stream</a> is null and whose <a for=body>source</a> is
+    <var>body</var>'s <a for=body>source</a>.
+
+    <p class="note no-backref">Here we do not <a for=request>clone</a> <var>request</var> in order
+    to reduce memory consumption. <var>request</var> can be reused with redirects, authentication,
+    and proxy authentication.
+  </ol>

Oops, sorry. Fixed. The intention is, passing the ReadableStream to _httpRequests_ for sending the payload and keeping the source information in _request_ in order to restore the payload if necessary.

-- 
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/pull/425

Received on Tuesday, 20 December 2016 12:36:07 UTC