Skip to content

Commit

Permalink
Add spec URLs for the web/http subtree (mdn#13203)
Browse files Browse the repository at this point in the history
* Add spec URLs for the web/http subtree

Part of mdn#13126

* Fix some cases that should be using the browser-compat frontmatter key

* Add some missing RFCs to SpecData.json

Previously we didn’t need these in SpecData.json because the RFC macro
doesn’t actually do any title lookup.
  • Loading branch information
sideshowbarker authored and hamishwillee committed May 23, 2022
1 parent 064af16 commit f1b995c
Show file tree
Hide file tree
Showing 44 changed files with 133 additions and 139 deletions.
4 changes: 1 addition & 3 deletions files/en-us/web/http/basics_of_http/data_uris/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ lots of text...<p><a name="bottom">bottom</a>?arg=val

## Specifications

| Specification | Title |
| -------------------- | --------------------- |
| {{RFC("2397")}} | The "data" URL scheme |
{{Specifications}}

## Browser compatibility

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tags:
- port
- query
- resources
spec-urls: https://httpwg.org/specs/rfc7230.html#section-2.7
---
{{HTTPSidebar}}

Expand Down Expand Up @@ -119,9 +120,7 @@ mailto:help@supercyberhelpdesk.info

## Specifications

| Specification | Title |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------ |
| {{RFC("7230", "Uniform Resource Identifiers", "2.7")}} | Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing |
{{Specifications}}

## See also

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/http/cors/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- Security
- XMLHttpRequest
- l10n:priority
spec-urls: https://fetch.spec.whatwg.org/#cors-protocol
---
{{HTTPSidebar}}

Expand Down Expand Up @@ -487,9 +488,7 @@ Examples of this usage can be [found above](#preflighted_requests).

## Specifications

| Specification | Status | Comment |
| ---------------------------------------------------------------- | ------------------------ | -------------------------------------------------------------------------------- |
| {{SpecName('Fetch', '#cors-protocol', 'CORS')}} | {{Spec2('Fetch')}} | New definition; supplants [W3C CORS](https://fetch.spec.whatwg.org/) specification. |
{{Specifications}}

## Browser compatibility

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tags:
- HTTP
- Reference
- Security
browser-compat: http.headers.Cross-Origin-Resource-Policy
---
{{HTTPSidebar}}

Expand Down Expand Up @@ -55,13 +56,11 @@ In response, Chromium shipped [Cross-Origin Read Blocking](https://fetch.spec.wh

## Specifications

| Specification | Status | Comment |
| -------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------ |
| {{SpecName("Fetch", '#cross-origin-resource-policy-header')}} | {{Spec2("Fetch", '#cross-origin-resource-policy-header')}} | Initial definition |
{{Specifications}}

## Browser compatibility

{{Compat("http.headers.Cross-Origin-Resource-Policy")}}
{{Compat}}

## See also

Expand Down
7 changes: 3 additions & 4 deletions files/en-us/web/http/feature_policy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- delegation
- header
- permission
browser-compat: http.headers.Feature-Policy
---
{{HTTPSidebar}}

Expand Down Expand Up @@ -122,13 +123,11 @@ The features include (see [Features list](/en-US/docs/Web/HTTP/Headers/Feature-P

## Specifications

| Specification | Status | Comment |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| {{SpecName("Feature Policy","#feature-policy-http-header-field","Feature-Policy")}} | {{Spec2("Feature Policy")}} | Initial definition. Defines the {{httpheader("Feature-Policy")}} header. Directives are defined in the specs for the features they control. See individual directive pages for details. |
{{Specifications}}

## Browser compatibility

{{Compat("http.headers.Feature-Policy")}}
{{Compat}}

## See also

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/http/headers/accept-patch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ slug: Web/HTTP/Headers/Accept-Patch
tags:
- HTTP
- Reference
spec-urls: https://www.rfc-editor.org/rfc/rfc5789#section-3.1
---
{{HTTPSidebar}}

Expand Down Expand Up @@ -55,9 +56,7 @@ Accept-Patch: application/merge-patch+json

## Specifications

| Specification | Title |
| ---------------------------------------------------- | ---------- |
| {{RFC("5789", "Accept-Patch", "3.1")}} | HTTP PATCH |
{{Specifications}}

## Browser compatibility

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/http/headers/allow/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- HTTP Header
- Response header
- Reference
spec-urls: https://httpwg.org/specs/rfc7231.html#section-7.4.1
---
{{HTTPSidebar}}

Expand Down Expand Up @@ -45,9 +46,7 @@ Allow: GET, POST, HEAD

## Specifications

| Specification | Title |
| -------------------------------------------- | ------------------------------------------------------------- |
| {{RFC("7231", "Allow", "7.4.1")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
{{Specifications}}

## See also

Expand Down
6 changes: 1 addition & 5 deletions files/en-us/web/http/headers/authorization/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ See also [HTTP authentication](/en-US/docs/Web/HTTP/Authentication) for examples

## Specifications

| Specification | Title |
| ---------------------------------------------------- | -------------------------------------- |
| {{RFC("7235", "Authorization", "4.2")}} | HTTP/1.1: Authentication |
| {{RFC("7617")}} | The 'Basic' HTTP Authentication Scheme |
| {{RFC("7616")}} | HTTP Digest Access Authentication |
{{Specifications}}

<!-- {{Specifications}} -->

Expand Down
5 changes: 1 addition & 4 deletions files/en-us/web/http/headers/feature-policy/payment/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ The `payment` feature's default allowlist value is `'self'`.

## Specifications

| Specification | Status | Comment |
| ---------------------------------------- | ------------------------------------ | ---------------------------------------------------------------------------------------------------- |
| {{SpecName('Payment')}} | {{Spec2('Payment')}} | See [Section 16. Feature Policy integration](https://w3c.github.io/payment-request/#feature-policy). |
| {{SpecName('Feature Policy')}} | {{Spec2('Feature Policy')}} | Initial definition. |
{{Specifications}}

## Browser compatibility

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ As of June 2019, the [spec draft](https://wicg.github.io/picture-in-picture/#fea

## Specifications

| Specification | Status | Comment |
| ---------------------------------------- | ------------------------------------ | ------------------- |
| {{SpecName('Feature Policy')}} | {{Spec2('Feature Policy')}} | Initial definition. |
{{Specifications}}

## Browser compatibility

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ Default allow list for `screen-wake-lock` is `'self'`.

## Specifications

| Specification | Status | Comment |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------ | ----------------------------------------------------------- |
| {{SpecName('Feature Policy')}} | {{Spec2('Feature Policy')}} | Initial definition. |
| [Screen Wake Lock API](https://w3c.github.io/screen-wake-lock/#the-screen-wake-lock-powerful-feature) | Editor's Draft | Initial definition of `screen-wake-lock` feature directive. |
{{Specifications}}

## Browser compatibility

Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/http/headers/link/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ Link: <https://one.example.com>; rel="preconnect", <https://two.example.com>; re

## Specifications

| Specification | Title |
| -------------------------------------------------------- | ----------- |
| {{RFC(8288, "Link Serialization in HTTP Headers", "3")}} | Web Linking |
{{Specifications}}

## Browser compatibility

Expand Down
5 changes: 1 addition & 4 deletions files/en-us/web/http/headers/set-cookie/samesite/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ RewriteRule "^admin/(.*)\.html$" "admin/index.php?nav=$1 [NC,L,QSA,CO=RewriteRul

## Specifications

| Specification | Title |
| ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| {{RFC("6265", "Set-Cookie", "4.1")}} | HTTP State Management Mechanism |
| [draft-ietf-httpbis-rfc6265bis-09](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis-09) | Cookie Prefixes, Same-Site Cookies, and Strict Secure Cookies |
{{Specifications}}

## Browser compatibility

Expand Down
5 changes: 1 addition & 4 deletions files/en-us/web/http/methods/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ HTTP defines a set of **request methods** to indicate the desired action to be p

## Specifications

| Specification | Title | Comment |
| ---------------------------------------------------- | ------------------------------------------------------------- | ---------------------------------------------------------------- |
| {{RFC("7231", "Request methods", "4")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content | Specifies GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE. |
| {{RFC("5789", "Patch method", "2")}} | PATCH Method for HTTP | Specifies PATCH. |
{{Specifications}}

## Browser compatibility

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/http/methods/patch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tags:
- HTTP
- Reference
- Request method
spec-urls: https://www.rfc-editor.org/rfc/rfc5789
---
{{HTTPSidebar}}

Expand Down Expand Up @@ -87,9 +88,7 @@ ETag: "e0023aa4f"

## Specifications

| Specification | Title |
| -------------------------------- | --------------------- |
| {{RFC("5789", "PATCH")}} | PATCH Method for HTTP |
{{Specifications}}

## See also

Expand Down
7 changes: 3 additions & 4 deletions files/en-us/web/http/public_key_pinning/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- HTTP
- Deprecated
- Security
browser-compat: http.headers.Public-Key-Pins
---
{{HTTPSidebar}}{{deprecated_header}}

Expand Down Expand Up @@ -138,13 +139,11 @@ Add the following line to the Web.config file to send the `Public-Key-Pins` head

## Specifications

| Specification | Title |
| -------------------------------------------------------- | ------------------------------------- |
| {{RFC("7469", "Public-Key-Pins", "2.1")}} | Public Key Pinning Extension for HTTP |
{{Specifications}}

## Browser compatibility

{{Compat("http.headers.Public-Key-Pins")}}
{{Compat}}

## See also

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/http/status/101/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- Informational
- Reference
- WebSockets
spec-urls: https://httpwg.org/specs/rfc7231.html#section-6.2.2
---
{{HTTPSidebar}}

Expand Down Expand Up @@ -37,9 +38,7 @@ Connection: Upgrade

## Specifications

| Specification | Title |
| -------------------------------------------------------------------- | ------------------------------------------------------------- |
| {{RFC("7231", "101 Switching Protocol" , "6.2.2")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
{{Specifications}}

## See also

Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/http/status/103/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ user agent to start preloading resources while the server is still preparing a r

## Specifications

| Specification | Status | Comments |
| -------------------------------------------- | -------- | ------------------ |
| {{RFC(8297, "103 Early Hints")}} | IETF RFC | Initial definition |
{{Specifications}}

## Browser compatibility

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/http/status/202/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- Reference
- Status code
- Success response
spec-urls: https://httpwg.org/specs/rfc7231.html#section-6.3.3
---
{{HTTPSidebar}}

Expand All @@ -27,9 +28,7 @@ for cases where another process or server handles the request, or for batch proc

## Specifications

| Specification | Title |
| -------------------------------------------------------- | ------------------------------------------------------------- |
| {{RFC("7231", "202 Accepted" , "6.3.3")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
{{Specifications}}

## See also

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/http/status/203/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- Reference
- Status code
- Successful response
spec-urls: https://httpwg.org/specs/rfc7231.html#section-6.3.4
---
{{HTTPSidebar}}

Expand All @@ -29,9 +30,7 @@ status code.

## Specifications

| Specification | Title |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------- |
| {{RFC("7231", "203 Non-Authoritative Information" , "6.3.4")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
{{Specifications}}

## See also

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/http/status/205/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- HTTP Status Code
- Reference
- Status code
spec-urls: https://httpwg.org/specs/rfc7231.html#section-6.3.6
---
{{HTTPSidebar}}

Expand All @@ -21,9 +22,7 @@ a canvas state, or to refresh the UI.

## Specifications

| Specification | Title |
| ------------------------------------------------------------ | ------------------------------------------------------------- |
| {{RFC("7231", "205 Reset Content" , "6.3.6")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
{{Specifications}}

## Compatibility notes

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/http/status/300/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- HTTP Status Code
- Reference
- Status code
spec-urls: https://httpwg.org/specs/rfc7231.html#section-6.4.1
---
{{HTTPSidebar}}

Expand All @@ -25,9 +26,7 @@ header.

## Specifications

| Specification | Title |
| ---------------------------------------------------------------- | ------------------------------------------------------------- |
| {{RFC("7231", "300 Multiple Choices" , "6.4.1")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
{{Specifications}}

## See also

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/http/status/400/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- HTTP Status Code
- Reference
- Status code
spec-urls: https://httpwg.org/specs/rfc7231.html#section-6.5.1
---
{{HTTPSidebar}}

Expand All @@ -22,9 +23,7 @@ The HyperText Transfer Protocol (HTTP) **`400 Bad Request`** response status cod

## Specifications

| Specification | Title |
| ------------------------------------------------------------ | ------------------------------------------------------------- |
| {{RFC("7231", "400 Bad Request" , "6.5.1")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
{{Specifications}}

## See also

Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/http/status/402/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ Date: Wed, 21 Oct 2015 07:28:00 GMT

## Specifications

| Specification | Title |
| ---------------------------------------------------------------- | ------------------------------- |
| {{RFC("7231", "402 Payment Required" , "6.5.2")}} | HTTP/1.1: Semantics and Content |
{{Specifications}}

## Browser compatibility

Expand Down
Loading

0 comments on commit f1b995c

Please sign in to comment.