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

@bblfish We're planning to provide a way to create a Request / Response from a user-created streams.

```
var controller;
var stream = new ReadableStream({start: c => controller = c});
var response = new Response(stream, ...);
assert_equals(response.body, stream);
controller.enqueue(3);
var p = response.body.getReader().read();
// |p| will be resolved with |{done: false, value: 3}|.
```

IIUC we are not going to restrict each chunk type for such cases.

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

Received on Thursday, 3 December 2015 01:54:33 UTC