Re: [fetch] Replace byte stream with ReadableStream. (#200)

> @@ -3535,6 +3617,35 @@ <h4 id="should-response-to-request-be-blocked-due-to-nosniff?"><dfn title="shoul
>   <var>bytes</var>.
>  </dl>
>  
> +<p>Objects implementing the <code>Body</code> mixin also have an associated
> +<dfn title=concept-Body-consume-body>consume body</dfn> algorithm, which given a <var>type</var>,
> +runs these steps:
> +
> +<ol>
> + <li><p>If this object is <span title=concept-Body-disturbed>disturbed</span>
> + or <span title=concept-Body-locked>locked</span>, return a new promise rejected with a
> + <code>TypeError</code>.
> +
> + <li><p>Let <var>stream</var> be <span title=concept-Body-body>body</span>'s
> + <span title=concept-body-stream>stream</span> if <span title=concept-Body-body>body</span> is
> + non-null, or an <span title=concept-empty-ReadableStream>empty</span>
> + <code title=concept-ReadableStream>ReadableStream</code> object otherwise.
> +
> + <li><p>Let <var>reader</var> be the result of <span title=concept-get-reader>getting</span>

Editorial nit: I would link "getting a reader" not "getting"

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/200/files#r51462714

Received on Monday, 1 February 2016 18:57:10 UTC