- From: Anne van Kesteren <notifications@github.com>
- Date: Thu, 05 Jan 2017 04:35:22 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/449/review/15295184@github.com>
annevk commented on this pull request. What is the plan for response bodies? > + + <li><p>Upload <var>bytes</var>. + + <li><p>Increase <var>body</var>'s <a for=body>transmitted bytes</a> with <var>bytes</var>' + length. + + <li><p>Run the above step again. + </ol> + + <li><p>When <var>read</var> is fulfilled with an object whose <code>done</code> + property is true, <a>queue a fetch task</a> on <var>request</var> to + <a>process request end-of-body</a> for <var>request</var>. + + <li><p>When <var>read</var> is fulfilled with a value that matches with neither of the + above patterns, or <var>read</var> is rejected, <a lt=terminated for=fetch>terminate</a> the + ongoing fetch with reason <i>fatal</i>. This seems a little weird since we don't have a handle on the ongoing fetch and it's not passed to this algorithm. Perhaps it's okay for now though, but we should maybe file a follow up issue to see if we can fix that somehow. > + +<ol> + <li>Let <var>body</var> be <var>request</var>'s <a for=request>body</a>. + + <li><p>If <var>body</var> is null, then <a>queue a fetch task</a> on <var>request</var> to + <a>process request end-of-body</a> for <var>request</var> and abort these steps. + + <li> + <p>Let <var>read</var> be the result of <a lt="read a chunk" for=ReadableStream>reading a + chunk</a> from <var>body</var>'s <a for=body>stream</a>. + + <ul> + <li> + <p>When <var>read</var> is fulfilled with an object whose <code>done</code> + property is false and whose <code>value</code> property is a + <code>Uint8Array</code> object, run these substeps: Is this the right way of phrasing this, @domenic? > @@ -215,16 +215,6 @@ for <var>request</var>. <hr> This can also be removed it seems if we move this algorithm. -- 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/449#pullrequestreview-15295184
Received on Thursday, 5 January 2017 12:36:05 UTC