- From: Ben Kelly <notifications@github.com>
- Date: Sat, 09 May 2015 07:50:45 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Saturday, 9 May 2015 14:51:13 UTC
> Note that a stream doesn't have the metadata that a response does have. Most APIs want (some of) that metadata. You mean the http headers or something else? I have to say I prefer setting the Response object to creating some kind of URL. I like the concept that a Response is essentially an evaluated URL. It seems setting a `img.src = new Request(...)` with an implied `fetch()` would be closer to what assigning a URL currently does. It would be also nice if we could set img.src to a Promise<Response>. So `img.src = cache.match(req)`. Unless there is some time pressure forcing a short term solution, it would be nice to go the object route instead of creating a complex new URL type to intermediate. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/49#issuecomment-100499331
Received on Saturday, 9 May 2015 14:51:13 UTC