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

> The idea being that .stream() both returns the stream immediately, and then in the background asynchronously kicks off the IPC stuff necessary to start it filling up?

I think that makes sense to me now.  Now that I understand that we have this initial chunk load, I agree a stream() method makes sense.

And I like the concept that request is opaque with a bunch of reify methods like stream() and text() that all set bodyUsed.  So devs can think of them all the same way where "call a reify method, it drains the body completely, and so bodyUsed is set".

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

Received on Wednesday, 21 January 2015 18:12:16 UTC