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

In my understanding, a Response object is a handle. With this Response object the developer in the JavaScript world can decide whether to pass the response to the page or to the cache storage.
If the developer in the JavaScript world wants to read the body data of the Response, the developer have to say "Hey browser, please pass it to the JavaScript world! I want to read it!".
I think this is an operation, it should be a method.

I think it is same as Blob.
To read the Blob data, the developer needs to create a FileReader.

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

Received on Thursday, 22 January 2015 16:33:32 UTC