- From: Anne van Kesteren <notifications@github.com>
- Date: Tue, 29 Sep 2015 00:47:18 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Tuesday, 29 September 2015 07:47:47 UTC
> + > +<p>A <code>Request</code> object's <span title=concept-body-consume-body>consume body</span> > +algorithm, which given a <var>type</var>, runs these steps: > + > +<ol> > + <li><p>If this <code>Request</code> is <span title=concept-Body-disturbed>disturbed</span>, return > + a new promise rejected with a <code>TypeError</code>. > + > + <li><p>Set <span title=concept-Request-disturbed-flag>disturbed flag</span>. > + > + <li><p>Let <var>p</var> be a new promise. > + > + <li> > + <p>Run these substeps <span data-anolis-spec=html>in parallel</span>: > + <ol> > + <li><p>Let <var>bytes</var> be <span title=concept-Request-request>request</span>'s "Let bytes be the result of reading from stream until it returns end-of-stream." is what I use now, mostly based on https://encoding.spec.whatwg.org/#concept-stream and waiting for the Streams standard to become ready. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/128/files#r40642768
Received on Tuesday, 29 September 2015 07:47:47 UTC