[whatwg/fetch] Add process model processing for the "Priority" header. (PR #1757)

- [x] At least two implementers are interested (and none opposed):
   * Chrome
   * Firefox
   * See discussion in #1718
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * … <!-- If these tests are tentative, link a PR to make them non-tentative. -->
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
   * Deno (not for CORS changes): …
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [x] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->

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

This adds the processing for the `Priority` HTTP header from HTTP Extensible Priorities ([RFC 9218](https://datatracker.ietf.org/doc/rfc9218/)).

The actual priority values are implementation-specific but this change makes it clear that an existing value should not be overwritten if the header is already present.

Fix #1718


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/fetch/1757.html" title="Last updated on Jun 3, 2024, 4:57 PM UTC (33402cd)">Preview</a> | <a href="https://whatpr.org/fetch/1757/1085f4f...33402cd.html" title="Last updated on Jun 3, 2024, 4:57 PM UTC (33402cd)">Diff</a>
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add process model processing for the "Priority" header.

-- File Changes --

    M fetch.bs (6)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1757.patch
https://github.com/whatwg/fetch/pull/1757.diff

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

Message ID: <whatwg/fetch/pull/1757@github.com>

Received on Monday, 3 June 2024 16:57:40 UTC