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

> + <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>
> + a reader from <var>stream</var>. If that threw an exception, return a new promise rejected
> + with that exception.
> +
> + <li><p>Let <var>promise</var> be the result of
> + <span title=concept-read-all-bytes-from-ReadableStream>reading</span> all bytes from
> + <var>stream</var> with <var>reader</var>.
> +
> + <li><p>Return the result of transforming <var>promise</var> by a fulfillment handler that
> + returns the result of the <span title=concept-body-package-data>package data</span> algorithm
> + with its first argument, <var>type</var> and <span title=concept-body-mime-type>MIME type</span>.

Maybe "and the body's MIME type"?

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

Received on Monday, 1 February 2016 18:58:37 UTC