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

Add page types for HTTP #26095

Merged
merged 5 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions files/en-us/web/http/authentication/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: HTTP authentication
slug: Web/HTTP/Authentication
page-type: guide
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Choosing between www and non-www URLs
slug: Web/HTTP/Basics_of_HTTP/Choosing_between_www_and_non-www_URLs
page-type: guide
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/basics_of_http/data_urls/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Data URLs
slug: Web/HTTP/Basics_of_HTTP/Data_URLs
page-type: guide
browser-compat: http.data-url
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Evolution of HTTP
slug: Web/HTTP/Basics_of_HTTP/Evolution_of_HTTP
page-type: guide
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Identifying resources on the Web
slug: Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web
page-type: guide
spec-urls: https://httpwg.org/specs/rfc9110.html#uri
---

Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/basics_of_http/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Basics of HTTP
slug: Web/HTTP/Basics_of_HTTP
page-type: guide
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Common MIME types
slug: Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
page-type: guide
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/basics_of_http/mime_types/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: MIME types (IANA media types)
slug: Web/HTTP/Basics_of_HTTP/MIME_types
page-type: guide
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Resource URLs
slug: Web/HTTP/Basics_of_HTTP/Resource_URLs
page-type: guide
---

{{HTTPSidebar}}{{non-standard_header}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Browser detection using the user agent
slug: Web/HTTP/Browser_detection_using_the_user_agent
page-type: guide
---

{{HTTPSidebar}}
Expand Down Expand Up @@ -43,7 +44,10 @@ if (navigator.userAgent.includes("Chrome")) {
splitUpString = (str) => String(str).split(camelCaseExpression);
} else {
// This fallback code is much less performant, but works
splitUpString = (str) => String(str).split(/(.*?[A-Z])/).filter(Boolean);
splitUpString = (str) =>
String(str)
.split(/(.*?[A-Z])/)
.filter(Boolean);
}

console.log(splitUpString("fooBar")); // ["fooB", "ar"]
Expand Down Expand Up @@ -71,7 +75,10 @@ try {

const splitUpString = isLookBehindSupported
? (str) => String(str).split(new RegExp("(?<=[A-Z])"))
: (str) => String(str).split(/(.*?[A-Z])/).filter(Boolean);
: (str) =>
String(str)
.split(/(.*?[A-Z])/)
.filter(Boolean);

console.log(splitUpString("fooBar")); // ["fooB", "ar"]
console.log(splitUpString("jQWhy")); // ["jQ", "W", "hy"]
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/caching/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: HTTP caching
slug: Web/HTTP/Caching
page-type: guide
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/client_hints/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: HTTP Client hints
slug: Web/HTTP/Client_hints
page-type: guide
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/compression/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Compression in HTTP
slug: Web/HTTP/Compression
page-type: guide
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/conditional_requests/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: HTTP conditional requests
slug: Web/HTTP/Conditional_requests
page-type: guide
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Configuring servers for Ogg media
slug: Web/HTTP/Configuring_servers_for_Ogg_media
page-type: guide
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Connection management in HTTP/1.x
slug: Web/HTTP/Connection_management_in_HTTP_1.x
page-type: guide
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/content_negotiation/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Content negotiation
slug: Web/HTTP/Content_negotiation
page-type: guide
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: List of default Accept values
slug: Web/HTTP/Content_negotiation/List_of_default_Accept_values
page-type: guide
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/cookies/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Using HTTP cookies
slug: Web/HTTP/Cookies
page-type: guide
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: CORS header 'Access-Control-Allow-Origin' does not match 'xyz'"
slug: Web/HTTP/CORS/Errors/CORSAllowOriginNotMatchingOrigin
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: CORS request did not succeed"
slug: Web/HTTP/CORS/Errors/CORSDidNotSucceed
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/cors/errors/corsdisabled/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: CORS disabled"
slug: Web/HTTP/CORS/Errors/CORSDisabled
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: CORS request external redirect not allowed"
slug: Web/HTTP/CORS/Errors/CORSExternalRedirectNotAllowed
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: invalid token 'xyz' in CORS header 'Access-Control-Allow-Headers'"
slug: Web/HTTP/CORS/Errors/CORSInvalidAllowHeader
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: invalid token 'xyz' in CORS header 'Access-Control-Allow-Methods'"
slug: Web/HTTP/CORS/Errors/CORSInvalidAllowMethod
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: Did not find method in CORS header 'Access-Control-Allow-Methods'"
slug: Web/HTTP/CORS/Errors/CORSMethodNotFound
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: expected 'true' in CORS header 'Access-Control-Allow-Credentials'"
slug: Web/HTTP/CORS/Errors/CORSMIssingAllowCredentials
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: >-
Reason: missing token 'xyz' in CORS header 'Access-Control-Allow-Headers' from
CORS preflight channel
page-type: http-cors-error
slug: Web/HTTP/CORS/Errors/CORSMissingAllowHeaderFromPreflight
wbamberg marked this conversation as resolved.
Show resolved Hide resolved
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: CORS header 'Access-Control-Allow-Origin' missing"
slug: Web/HTTP/CORS/Errors/CORSMissingAllowOrigin
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: Multiple CORS header 'Access-Control-Allow-Origin' not allowed"
slug: Web/HTTP/CORS/Errors/CORSMultipleAllowOriginNotAllowed
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: >-
Reason: Credential is not supported if the CORS header
'Access-Control-Allow-Origin' is '*'
page-type: http-cors-error
slug: Web/HTTP/CORS/Errors/CORSNotSupportingCredentials
wbamberg marked this conversation as resolved.
Show resolved Hide resolved
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: CORS header 'Origin' cannot be added"
slug: Web/HTTP/CORS/Errors/CORSOriginHeaderNotAdded
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: CORS preflight channel did not succeed"
slug: Web/HTTP/CORS/Errors/CORSPreflightDidNotSucceed
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Reason: CORS request not HTTP"
slug: Web/HTTP/CORS/Errors/CORSRequestNotHttp
page-type: http-cors-error
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/cors/errors/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: CORS errors
slug: Web/HTTP/CORS/Errors
page-type: landing-page
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/cors/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Cross-Origin Resource Sharing (CORS)
slug: Web/HTTP/CORS
page-type: guide
browser-compat: http.headers.Access-Control-Allow-Origin
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Cross-Origin Resource Policy (CORP)
slug: Web/HTTP/Cross-Origin_Resource_Policy
page-type: guide
browser-compat: http.headers.Cross-Origin-Resource-Policy
---

Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/csp/errors/cspviolation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: >-
Content Security Policy: The page's settings blocked the loading of a
resource: xyz
page-type: guide
slug: Web/HTTP/CSP/Errors/CSPViolation
wbamberg marked this conversation as resolved.
Show resolved Hide resolved
---

Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/csp/errors/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: CSP errors and warnings (Content Security Policy)
slug: Web/HTTP/CSP/Errors
page-type: guide
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this one be a landing page?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so: there is no "http-csp-error" category of page for this page to provide an index of.

(This is not a great page: I assume the error messages quoted vary from one browser to another, and it doesn't actually explain what you might be able to do about any of the errors listed. 🐰 🕳️ )

---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/csp/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Content Security Policy (CSP)
slug: Web/HTTP/CSP
page-type: guide
browser-compat: http.headers.Content-Security-Policy
---

Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/headers/accept-ch-lifetime/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Accept-CH-Lifetime
slug: Web/HTTP/Headers/Accept-CH-Lifetime
page-type: http-header
status:
- deprecated
- non-standard
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/headers/accept-ch/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Accept-CH
slug: Web/HTTP/Headers/Accept-CH
page-type: http-header
browser-compat: http.headers.Accept-CH
---

Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/headers/accept-charset/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Accept-Charset
slug: Web/HTTP/Headers/Accept-Charset
page-type: http-header
---

{{HTTPSidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/headers/accept-encoding/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Accept-Encoding
slug: Web/HTTP/Headers/Accept-Encoding
page-type: http-header
browser-compat: http.headers.Accept-Encoding
---

Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/headers/accept-language/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Accept-Language
slug: Web/HTTP/Headers/Accept-Language
page-type: http-header
browser-compat: http.headers.Accept-Language
---

Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/headers/accept-patch/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Accept-Patch
slug: Web/HTTP/Headers/Accept-Patch
page-type: http-header
spec-urls: https://www.rfc-editor.org/rfc/rfc5789#section-3.1
---

Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/http/headers/accept-post/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Accept-Post
slug: Web/HTTP/Headers/Accept-Post
page-type: http-header
spec-urls: https://www.w3.org/TR/ldp/#header-accept-post
---

Expand Down
Loading