Re: [ServiceWorker] Can we change the body attribute of Request/Response to a method? (#606)

Re: Anne (https://github.com/slightlyoff/ServiceWorker/issues/606#issuecomment-71162902)

> A method typically returns a fresh object, whereas this would keep returning the same object. (x.y() === x.y().)

If it's against the common sense of JS, we could add a separate method e.g. `.fillStream()` to `Response` which tells the underlying source of the `ReadableStream` returned at `.body` to complete `start()` to start invoking `pull()` to retrieve data from the far place (browser process in Chromium's case).

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/606#issuecomment-71595439

Received on Tuesday, 27 January 2015 06:21:33 UTC