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

IMO, body should not be asynchronous.  The convenience methods are already async and reading data from a stream is obviously async.  So all the async stuff hangs off body.  If IPC has to be done, it can be done lazily on first async operation.

Given that, I would also vote to keep body an attribute.  I think having a method with no content observable change would be confusing for developers.

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

Received on Wednesday, 21 January 2015 17:48:15 UTC