Skip to content

Commit

Permalink
Add page types for HTTP (#26095)
Browse files Browse the repository at this point in the history
* Add page types for HTTP

* Cleanup

* More cleanup

* Update some recent pages
  • Loading branch information
wbamberg authored Apr 10, 2023
1 parent f195f38 commit 0880a90
Show file tree
Hide file tree
Showing 308 changed files with 318 additions and 3 deletions.
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
1 change: 1 addition & 0 deletions files/en-us/web/http/basics_of_http/resource_urls/index.md
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 @@ -3,6 +3,7 @@ title: >-
Reason: missing token 'xyz' in CORS header 'Access-Control-Allow-Headers' from
CORS preflight channel
slug: Web/HTTP/CORS/Errors/CORSMissingAllowHeaderFromPreflight
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 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 @@ -3,6 +3,7 @@ title: >-
Reason: Credential is not supported if the CORS header
'Access-Control-Allow-Origin' is '*'
slug: Web/HTTP/CORS/Errors/CORSNotSupportingCredentials
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 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
1 change: 1 addition & 0 deletions files/en-us/web/http/cross-origin_resource_policy/index.md
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 @@ -3,6 +3,7 @@ title: >-
Content Security Policy: The page's settings blocked the loading of a
resource: xyz
slug: Web/HTTP/CSP/Errors/CSPViolation
page-type: guide
---

{{HTTPSidebar}}
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
---

{{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

0 comments on commit 0880a90

Please sign in to comment.