Re: [whatwg/fetch] How should the ReadableStream from response.body work when it's multipart? (#1021)

/cc @ricea 

> And each chunk of the response looks like this:

I imagine this is an implementation artifact; in the specification doesn't mandate any correspondence between `ReadableStream` chunks and multipark chunks. So robust code that handles that would be even trickier to write than your above.

Is your idea for the TransformStream to be essentially splitting the `$JPEG_DATA` portion out and only emitting that? I guess doing that automatically would go against the purpose of fetch response bodies as "raw data", right?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1021#issuecomment-614957485

Received on Thursday, 16 April 2020 23:57:59 UTC