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
Copy file name to clipboardExpand all lines: src/data/markdown/docs/20 jslib/01 jslib/01 aws/SignatureV4/00 sign().md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,11 @@ The first parameter of the `sign` method consists of an Object with the followin
17
17
| hostname | string | The hostname the request is sent to |
18
18
| path | string | The path of the request |
19
19
| headers | Object | The headers of the HTTP request |
20
-
| body? | string or ArrayBuffer | The optional body of the HTTP request |
21
20
| uriEscapePath | boolean | Whether to uri-escape the request URI path as part of computing the canonical request string. This is required for every AWS service, except Amazon S3, as of late 2017. |
22
21
| applyChecksum | boolean | Whether to calculate a checksum of the request body and include it as either a request header (when signing) or as a query string parameter (when pre-signing). This is required for AWS Glacier and Amazon S3 and optional for every other AWS service as of late 2017. |
23
-
||||
22
+
| body (optional) | string or ArrayBuffer | The optional body of the HTTP request |
23
+
| query (optional) |`Object.<string, string \| Array.<string>>`| The optional query parameters of the HTTP request |
24
+
24
25
25
26
You can override SignatureV4 options in the context of this specific request. To do this, pass a second parameter to the `sign` method, which is an Object with the following parameters.
26
27
@@ -46,7 +47,7 @@ You can override SignatureV4 options in the context of this specific request. To
0 commit comments