Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify relation to HTTP RFCs and similar #1700

Open
JannisBush opened this issue Sep 20, 2023 · 0 comments
Open

Clarify relation to HTTP RFCs and similar #1700

JannisBush opened this issue Sep 20, 2023 · 0 comments

Comments

@JannisBush
Copy link

The standard does not specifies it's relation to the HTTP RFCs nor explicitly states what should be done in case of conflicts between the HTTP RFCs and the Fetch standard.

The fetch standard is stricter then the HTTP RFCs in several cases and e.g., dictates that a MAY is not to be implemented in browsers or that a SHOULD NOT is interpreted as a MUST NOT

The fetch standard currently refers to the HTTP RFCs several times:

The goal is to unify fetching across the web platform and provide consistent handling of everything that involves, including:
...
To do so it also supersedes the HTTP [Origin](https://fetch.spec.whatwg.org/#http-origin) header semantics originally defined in The Web Origin Concept. [ORIGIN]

This specification uses terminology from ABNF, Encoding, HTML, HTTP, MIME Sniffing, Streams, URL, Web IDL, and WebSockets. [ABNF] [ENCODING] [HTML] [HTTP] [MIMESNIFF] [STREAMS] [URL] [WEBIDL] [WEBSOCKETS]

While fetching encompasses more than just HTTP, it borrows a number of concepts from HTTP and applies these to resources obtained via other means (e.g., data URLs).

The goal seems to indicate that Fetch is what browsers (should) implement and that contradictions with other specifications or options of other specifications do not matter. However, this is not made explicit and could confuse readers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant