From a892700e9596d47789f52b474a923b8bea118e2f Mon Sep 17 00:00:00 2001 From: Damian <48835293+DamianGlowala@users.noreply.github.com> Date: Wed, 24 Nov 2021 16:24:50 +0100 Subject: [PATCH] docs: fix usage/cookies url and table of contents (#2115) --- .../3.docs/1.usage/{6-cookies.md => 6.cookies.md} | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) rename docs/content/3.docs/1.usage/{6-cookies.md => 6.cookies.md} (98%) diff --git a/docs/content/3.docs/1.usage/6-cookies.md b/docs/content/3.docs/1.usage/6.cookies.md similarity index 98% rename from docs/content/3.docs/1.usage/6-cookies.md rename to docs/content/3.docs/1.usage/6.cookies.md index 07382e7063..0cdec01dee 100644 --- a/docs/content/3.docs/1.usage/6-cookies.md +++ b/docs/content/3.docs/1.usage/6.cookies.md @@ -71,7 +71,7 @@ so if both are set, they should point to the same date and time! If neither of `expires` and `maxAge` is set, the cookie will be session-only and removed when the user closes their browser. :: -#### `httpOnly` +### `httpOnly` Specifies the `boolean` value for the [`HttpOnly` `Set-Cookie` attribute](https://tools.ietf.org/html/rfc6265#section-5.2.6). When truthy, the `HttpOnly` attribute is set; otherwise it is not. By default, the `HttpOnly` attribute is not set. @@ -81,7 +81,7 @@ the `HttpOnly` attribute is set; otherwise it is not. By default, the `HttpOnly` JavaScript to see the cookie in `document.cookie`. :: -#### `secure` +### `secure` Specifies the `boolean` value for the [`Secure` `Set-Cookie` attribute](https://tools.ietf.org/html/rfc6265#section-5.2.5). When truthy, the `Secure` attribute is set; otherwise it is not. By default, the `Secure` attribute is not set. @@ -91,17 +91,17 @@ the `Secure` attribute is set; otherwise it is not. By default, the `Secure` att the server in the future if the browser does not have an HTTPS connection. This can lead to hydration errors. :: -#### `domain` +### `domain` Specifies the value for the [`Domain` `Set-Cookie` attribute](https://tools.ietf.org/html/rfc6265#section-5.2.3). By default, no domain is set, and most clients will consider to apply the cookie only to the current domain. -#### `path` +### `path` Specifies the value for the [`Path` `Set-Cookie` attribute](https://tools.ietf.org/html/rfc6265#section-5.2.4). By default, the path is considered the ["default path"](https://tools.ietf.org/html/rfc6265#section-5.1.4). -#### `sameSite` +### `sameSite` Specifies the `boolean` or `string` value for the [`SameSite` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7). @@ -113,7 +113,7 @@ Specifies the `boolean` or `string` value for the [`SameSite` `Set-Cookie` attri More information about the different enforcement levels can be found in [the specification](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7). -#### `encode` +### `encode` Specifies a function that will be used to encode a cookie's value. Since the value of a cookie has a limited character set (and must be a simple string), this function can be used to encode @@ -121,7 +121,7 @@ a value into a string suited for a cookie's value. The default encoder is the `JSON.stringify` + `encodeURIComponent`. -#### `decode` +### `decode` Specifies a function that will be used to decode a cookie's value. Since the value of a cookie has a limited character set (and must be a simple string), this function can be used to decode