You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> -Leading slashes are disallowed to enforce consistency and avoid confusion.\
137
+
> [!NOTE]
138
+
> Leading slashes are disallowed to enforce consistency and avoid confusion.\
139
139
> For example, when the prefix URL is `https://example.com/foo` and the input is `/bar`, there's ambiguity whether the resulting URL would become `https://example.com/foo/bar` or `https://example.com/bar`. The latter is used by browsers.
> -If `body` is specified, then the `json` or `form` option cannot be used.
360
+
> [!NOTE]
361
+
> If `body` is specified, then the `json` or `form` option cannot be used.
362
362
363
-
#### **Note:**
364
-
> -If you use this option, `got.stream()` will be read-only.
363
+
> [!NOTE]
364
+
> If you use this option, `got.stream()` will be read-only.
365
365
366
-
#### **Note:**
367
-
> -Passing `body` with `GET` will throw unless the [`allowGetBody` option](#allowgetbody) is set to `true`.
366
+
> [!NOTE]
367
+
> Passing `body` with `GET` will throw unless the [`allowGetBody` option](#allowgetbody) is set to `true`.
368
368
369
-
#### **Note:**
370
-
> -This option is not enumerable and will not be merged with the instance defaults.
369
+
> [!NOTE]
370
+
> This option is not enumerable and will not be merged with the instance defaults.
371
371
372
372
### `json`
373
373
@@ -491,11 +491,11 @@ However, the [HTTP/2 specification](https://datatracker.ietf.org/doc/html/rfc754
491
491
492
492
Therefore this option has no effect when using HTTP/2.
493
493
494
-
#### **Note:**
495
-
> -This option is only meant to interact with non-compliant servers when you have no other choice.
494
+
> [!NOTE]
495
+
> This option is only meant to interact with non-compliant servers when you have no other choice.
496
496
497
-
#### **Note:**
498
-
> -The [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.1) doesn't specify any particular behavior for the GET method having a payload, therefore it's considered an [**anti-pattern**](https://en.wikipedia.org/wiki/Anti-pattern).
497
+
> [!NOTE]
498
+
> The [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.1) doesn't specify any particular behavior for the GET method having a payload, therefore it's considered an [**anti-pattern**](https://en.wikipedia.org/wiki/Anti-pattern).
> -`'buffer'` will return the raw body bytes as a `Uint8Array`. Any modifications will also alter the result of `.text()` and `.json()`. Before overwriting it, please copy it first via `new Uint8Array(buffer)`.\
636
+
> [!NOTE]
637
+
> `'buffer'` will return the raw body bytes as a `Uint8Array`. Any modifications will also alter the result of `.text()` and `.json()`. Before overwriting it, please copy it first via `new Uint8Array(buffer)`.\
638
638
> See https://github.com/nodejs/node/issues/27080
Copy file name to clipboardExpand all lines: documentation/4-pagination.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ The [RFC5988](https://datatracker.ietf.org/doc/html/rfc5988#section-5) defines h
11
11
When the response has been processed, Got looks for [the reference of the `next` relation](https://datatracker.ietf.org/doc/html/rfc5988#section-6.2.2).\
12
12
This way Got knows the URL it should visit afterwards. The header can look like this:
Got uses [Keyv](https://github.com/lukechilds/keyv) internally to support a wide range of storage adapters. For something more scalable you could use an [official Keyv storage adapter](https://github.com/lukechilds/keyv#official-storage-adapters):
0 commit comments