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

> +<code title=concept-ReadableStream>ReadableStream</code> with given a byte stream
> +<var>bstream</var>, run these steps:
> +
> +<ol>
> + <li><p>Let <var>strategy</var> be an object. The user agent may choose any object.
> +
> + <li>
> +  <p>Let <var>pull</var> be an action that runs these substeps:
> +
> +  <ol>
> +    <li><p>Let <var>bytes</var> be a byte sequence which is 
> +    <span data-anolis-spec=encoding title=concept-stream-read>read</span> from <var>bstream</var>.
> +
> +    <li><p>If <span data-anolis-spec=encoding title=concept-stream-read>read</span> returns
> +    <span data-anolis-spec=encoding>end-of-stream</span>,
> +    <span title=concept-close-ReadableStream>close</span> <var>stream</var> defined below.

_pull_ is called multiple times and end-of-stream should be checked every time.

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

Received on Monday, 5 October 2015 10:52:09 UTC