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

Yutaka, please clarify the plan by answering these questions?

1. whether stream === response.body or not
1. how much validation we would do on the input

As the body argument of Response constructor is overloaded, we need to anyway decide the group of objects we handle as ReadableStream(-like). Are we sure that we accept only ReadableStream (or derived classes) instances, but not ReadableStream like objects? If so, and (1) is Y, then Response.body may have to be `any`.


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

Received on Friday, 4 December 2015 17:37:32 UTC