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

> @@ -3391,21 +3456,23 @@ <h4 id="should-response-to-request-be-blocked-due-to-nosniff?"><dfn title="shoul
>    <dl class=switch>
>     <dt><code data-anolis-spec=fileapi>Blob</code>
>     <dd>
> -    <p>Push a copy of <var>object</var>'s contents to <var>stream</var>.
> +    <p><span title=concept-enqueue-ReadableStream>Enqueue</span> a <code>Uint8Array</code> object

Yes, I would say we want more flexibility to stream a file backed blob into memory.  Consider if someone is trying to stream a large zip off disk and pick out a single compressed item.  Requiring the entire zip to be in memory defeats much of the purpose of streams.

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

Received on Monday, 8 February 2016 14:26:17 UTC