- From: Jxck <notifications@github.com>
- Date: Thu, 26 Feb 2015 00:37:14 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Thursday, 26 February 2015 08:37:41 UTC
I'm wondering `fetch()` as only a single function is enough capable for extending with new feature which we currently find out. I think fetch() is a process fetching for Request and create Response. Request / Response is basically a container of request / response data result of fetching. so if we will get new feature in process of fetching (like HTTP3, 4, 5...?) how we can add new api to fetch? adding a callback for that in option arg? extend a returned promise as SomeFeatureAddedFechPromise ? my opinion is simply. how about add Fetch class? if we have a fetch instance instead of function, we have choice to add method to that for new capability in future. if that is builtin class, --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/625#issuecomment-76140607
Received on Thursday, 26 February 2015 08:37:41 UTC