Re: [fetch] specify types of streams (#167)

Sorry for the delay.

I don't fully understand Scala, but it's generally good to define `body` as ReadableStream[Uint8Array] in Scala. I don't think of any use-cases for a body with arbitrary chunks.

In JS side, the current proposal doesn't run a runtime check to ensure the assumption.

> Yutaka, please clarify the plan by answering these questions?
>

My current proposal is https://github.com/yutakahirano/fetch-with-streams/blob/master/response-stream-constructor.md. We haven't had much discussion on that and any comments are welcomed.

In the current proposal, stream == response.body and there is no validation in the Response constructor but I'm open to change.


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/167#issuecomment-163587074

Received on Thursday, 10 December 2015 11:42:54 UTC