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

> I don't understand this thread. Does a method mean a promise or does a method simply mean a method, but otherwise the same as a getter (which is what I would like us to use here)?

Personally, I'd like stream() to behave similar to text(), json(), etc.  On first call it returns an async thing (Promise or Stream).  On subsequent calls it rejects with bodyUsed, etc.

Of course this can be done with a getter, but I think it would be confusing with this kind of state change.

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

Received on Wednesday, 21 January 2015 18:19:14 UTC