Re: [fetch] Introduce Response.body. (#118) (#128)

>  
> -   <li><p>Set <var title>r</var>'s <span title=concept-Response-response>response</span>'s
> -   <span title=concept-response-body>body</span> to <var title>stream</var>.
> +   <li><p>Set <var>r</var>'s
> +   <span title=concept-Response-readable-stream>readable stream</span> to the result of
> +   <span title=concept-construct-fixed-ReadableStream>constructing</span> a fixed
> +   <span title=concept-ReadableStream>ReadableStream</span> with a list whose single element is a
> +   <code>Uint8Array</code> whose contents are <var>bytes</var>. Rethrow any exceptions.

Also, do we really want to require this consuming to happen during the constructor? It seems to throw away some of the benefits of a stream being asynchronous.

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

Received on Friday, 2 October 2015 10:42:26 UTC