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

>     <a href="#concept-bodyinit-extract" title="concept-BodyInit-extract">extracting</a> <var title="">body</var>.
>  
> -   <li><p>Set <var title="">r</var>'s <a href="#concept-response-response" title="concept-Response-response">response</a>'s
> -   <a href="#concept-response-body" title="concept-response-body">body</a> to <var title="">stream</var>.
> +   <li><p>Set <var title="">r</var>'s
> +   <a href="#concept-response-readable-stream" title="concept-Response-readable-stream">readable stream</a> to the result of
> +   <a href="#concept-construct-fixed-readablestream" title="concept-construct-fixed-ReadableStream">constructing</a> a fixed
> +   <a href="#concept-readablestream" title="concept-ReadableStream">ReadableStream</a> with an array consisting of a

The input to the constructing a readable stream algorithm isn't a JS array, but instead an abstract list type. (In ES it would be a List, but most other specs including fetch are a bit less formal.) I'd say either "with a Uint8Array..." or "with a list whose single element is a Uint8Array..."

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

Received on Friday, 18 September 2015 06:58:41 UTC