[whatwg/fetch] Return a "controller" instance from fetch (#1329)

Use the controller for external timing reporting and aborts.

This allows removing the 1:1 dependency between timing info and a response, as a response can be shared across fetch
instances (e.g. when restoring a response from cache, or when forwarding a response through a service worker).

See https://github.com/whatwg/fetch/issues/1208


<!--
Thank you for contributing to the Fetch Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
-->

- [x] At least two implementers are interested (and none opposed):
   * Should reflect current implementation.

- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * …
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chrome: …
   * Firefox: …
   * Safari: …

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1329


-- Commit Summary --

  * <a href="https://github.com/whatwg/fetch/pull/1329/commits/c9efcbed27bffb068ea4025474fc1171c981198b">Return a &quot;controller&quot; instance from fetch</a>

-- File Changes --

    M fetch.bs (51)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1329.patch

https://github.com/whatwg/fetch/pull/1329.diff


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1329

Received on Tuesday, 12 October 2021 08:40:25 UTC