@twin.org/web 0.0.3-next.21 → 0.0.3-next.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docs/changelog.md +41 -1
- package/docs/examples.md +108 -1
- package/docs/reference/classes/CookieHelper.md +4 -4
- package/docs/reference/classes/FetchError.md +453 -1
- package/docs/reference/classes/FetchHelper.md +8 -8
- package/docs/reference/classes/HeaderHelper.md +7 -7
- package/docs/reference/classes/Jwk.md +6 -6
- package/docs/reference/classes/Jws.md +3 -3
- package/docs/reference/classes/Jwt.md +13 -13
- package/docs/reference/classes/MimeTypeHelper.md +2 -2
- package/docs/reference/interfaces/IFetchOptions.md +6 -6
- package/docs/reference/variables/HeaderTypes.md +32 -32
- package/docs/reference/variables/HttpMethod.md +9 -9
- package/docs/reference/variables/HttpStatusCode.md +62 -62
- package/docs/reference/variables/MimeTypes.md +65 -65
- package/package.json +6 -6
|
@@ -14,7 +14,7 @@ Class to helper with header operations.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### CLASS\_NAME
|
|
17
|
+
### CLASS\_NAME {#class_name}
|
|
18
18
|
|
|
19
19
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Runtime name for the class.
|
|
|
22
22
|
|
|
23
23
|
## Methods
|
|
24
24
|
|
|
25
|
-
### createBearer()
|
|
25
|
+
### createBearer() {#createbearer}
|
|
26
26
|
|
|
27
27
|
> `static` **createBearer**(`token`): `string`
|
|
28
28
|
|
|
@@ -44,7 +44,7 @@ The bearer token header.
|
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
47
|
-
### extractBearer()
|
|
47
|
+
### extractBearer() {#extractbearer}
|
|
48
48
|
|
|
49
49
|
> `static` **extractBearer**(`header`): `string`
|
|
50
50
|
|
|
@@ -66,7 +66,7 @@ The extracted token if it exists.
|
|
|
66
66
|
|
|
67
67
|
***
|
|
68
68
|
|
|
69
|
-
### extractLinkHeaderRelation()
|
|
69
|
+
### extractLinkHeaderRelation() {#extractlinkheaderrelation}
|
|
70
70
|
|
|
71
71
|
> `static` **extractLinkHeaderRelation**(`linkHeader`, `relation`): \{ `url`: `string`; `urlQueryParams?`: \{\[`id`: `string`\]: `string`; \}; `rel`: `string`; `params?`: \{\[`id`: `string`\]: `string`; \}; \} \| `undefined`
|
|
72
72
|
|
|
@@ -98,7 +98,7 @@ https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
|
98
98
|
|
|
99
99
|
***
|
|
100
100
|
|
|
101
|
-
### extractLinkHeaders()
|
|
101
|
+
### extractLinkHeaders() {#extractlinkheaders}
|
|
102
102
|
|
|
103
103
|
> `static` **extractLinkHeaders**(`linkHeader`): `object`[] \| `undefined`
|
|
104
104
|
|
|
@@ -124,7 +124,7 @@ https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
|
124
124
|
|
|
125
125
|
***
|
|
126
126
|
|
|
127
|
-
### extractLinkHeader()
|
|
127
|
+
### extractLinkHeader() {#extractlinkheader}
|
|
128
128
|
|
|
129
129
|
> `static` **extractLinkHeader**(`linkHeader`): \{ `url`: `string`; `urlQueryParams?`: \{\[`id`: `string`\]: `string`; \}; `rel`: `string`; `params?`: \{\[`id`: `string`\]: `string`; \}; \} \| `undefined`
|
|
130
130
|
|
|
@@ -150,7 +150,7 @@ https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
|
150
150
|
|
|
151
151
|
***
|
|
152
152
|
|
|
153
|
-
### createLinkHeader()
|
|
153
|
+
### createLinkHeader() {#createlinkheader}
|
|
154
154
|
|
|
155
155
|
> `static` **createLinkHeader**(`url`, `urlQueryParams`, `rel`, `params?`): `string`
|
|
156
156
|
|
|
@@ -14,7 +14,7 @@ Class to handle JSON Web Keys.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### CLASS\_NAME
|
|
17
|
+
### CLASS\_NAME {#class_name}
|
|
18
18
|
|
|
19
19
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Runtime name for the class.
|
|
|
22
22
|
|
|
23
23
|
## Methods
|
|
24
24
|
|
|
25
|
-
### toCryptoKey()
|
|
25
|
+
### toCryptoKey() {#tocryptokey}
|
|
26
26
|
|
|
27
27
|
> `static` **toCryptoKey**(`jwk`, `alg?`): `Promise`\<[`JwkCryptoKey`](../type-aliases/JwkCryptoKey.md)\>
|
|
28
28
|
|
|
@@ -50,7 +50,7 @@ The crypto key.
|
|
|
50
50
|
|
|
51
51
|
***
|
|
52
52
|
|
|
53
|
-
### fromEd25519Private()
|
|
53
|
+
### fromEd25519Private() {#fromed25519private}
|
|
54
54
|
|
|
55
55
|
> `static` **fromEd25519Private**(`privateKey`, `overrideUse?`): `Promise`\<`JWK`\>
|
|
56
56
|
|
|
@@ -78,7 +78,7 @@ The crypto key.
|
|
|
78
78
|
|
|
79
79
|
***
|
|
80
80
|
|
|
81
|
-
### fromEd25519Public()
|
|
81
|
+
### fromEd25519Public() {#fromed25519public}
|
|
82
82
|
|
|
83
83
|
> `static` **fromEd25519Public**(`publicKey`, `overrideUse?`): `Promise`\<`JWK`\>
|
|
84
84
|
|
|
@@ -106,7 +106,7 @@ The crypto key.
|
|
|
106
106
|
|
|
107
107
|
***
|
|
108
108
|
|
|
109
|
-
### toRaw()
|
|
109
|
+
### toRaw() {#toraw}
|
|
110
110
|
|
|
111
111
|
> `static` **toRaw**(`jwk`): `Promise`\<\{ `publicKey?`: `Uint8Array`\<`ArrayBufferLike`\>; `privateKey?`: `Uint8Array`\<`ArrayBufferLike`\>; \}\>
|
|
112
112
|
|
|
@@ -128,7 +128,7 @@ The crypto key.
|
|
|
128
128
|
|
|
129
129
|
***
|
|
130
130
|
|
|
131
|
-
### generateKid()
|
|
131
|
+
### generateKid() {#generatekid}
|
|
132
132
|
|
|
133
133
|
> `static` **generateKid**(`jwk`): `Promise`\<`string`\>
|
|
134
134
|
|
|
@@ -14,7 +14,7 @@ Class to handle JSON Web Signatures.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### CLASS\_NAME
|
|
17
|
+
### CLASS\_NAME {#class_name}
|
|
18
18
|
|
|
19
19
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Runtime name for the class.
|
|
|
22
22
|
|
|
23
23
|
## Methods
|
|
24
24
|
|
|
25
|
-
### create()
|
|
25
|
+
### create() {#create}
|
|
26
26
|
|
|
27
27
|
> `static` **create**(`privateKey`, `hash`, `algOverride?`): `Promise`\<`string`\>
|
|
28
28
|
|
|
@@ -56,7 +56,7 @@ The signature.
|
|
|
56
56
|
|
|
57
57
|
***
|
|
58
58
|
|
|
59
|
-
### verify()
|
|
59
|
+
### verify() {#verify}
|
|
60
60
|
|
|
61
61
|
> `static` **verify**(`jws`, `publicKey`, `hash`): `Promise`\<`boolean`\>
|
|
62
62
|
|
|
@@ -14,7 +14,7 @@ Class to handle JSON Web Tokens.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### CLASS\_NAME
|
|
17
|
+
### CLASS\_NAME {#class_name}
|
|
18
18
|
|
|
19
19
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Runtime name for the class.
|
|
|
22
22
|
|
|
23
23
|
## Methods
|
|
24
24
|
|
|
25
|
-
### encode()
|
|
25
|
+
### encode() {#encode}
|
|
26
26
|
|
|
27
27
|
> `static` **encode**\<`T`, `U`\>(`header`, `payload`, `key`): `Promise`\<`string`\>
|
|
28
28
|
|
|
@@ -66,7 +66,7 @@ The encoded token.
|
|
|
66
66
|
|
|
67
67
|
***
|
|
68
68
|
|
|
69
|
-
### encodeWithSigner()
|
|
69
|
+
### encodeWithSigner() {#encodewithsigner}
|
|
70
70
|
|
|
71
71
|
> `static` **encodeWithSigner**\<`T`, `U`\>(`header`, `payload`, `signer`): `Promise`\<`string`\>
|
|
72
72
|
|
|
@@ -110,7 +110,7 @@ The encoded token.
|
|
|
110
110
|
|
|
111
111
|
***
|
|
112
112
|
|
|
113
|
-
### decode()
|
|
113
|
+
### decode() {#decode}
|
|
114
114
|
|
|
115
115
|
> `static` **decode**\<`T`, `U`\>(`token`): `Promise`\<\{ `header?`: `T`; `payload?`: `U`; `signature?`: `Uint8Array`\<`ArrayBufferLike`\>; \}\>
|
|
116
116
|
|
|
@@ -142,7 +142,7 @@ The decoded payload.
|
|
|
142
142
|
|
|
143
143
|
***
|
|
144
144
|
|
|
145
|
-
### verify()
|
|
145
|
+
### verify() {#verify}
|
|
146
146
|
|
|
147
147
|
> `static` **verify**\<`T`, `U`\>(`token`, `key`): `Promise`\<\{ `header`: `T`; `payload`: `U`; \}\>
|
|
148
148
|
|
|
@@ -180,7 +180,7 @@ The decoded payload.
|
|
|
180
180
|
|
|
181
181
|
***
|
|
182
182
|
|
|
183
|
-
### verifyWithVerifier()
|
|
183
|
+
### verifyWithVerifier() {#verifywithverifier}
|
|
184
184
|
|
|
185
185
|
> `static` **verifyWithVerifier**\<`T`, `U`\>(`token`, `verifier`): `Promise`\<\{ `header`: `T`; `payload`: `U`; \}\>
|
|
186
186
|
|
|
@@ -218,7 +218,7 @@ The decoded payload.
|
|
|
218
218
|
|
|
219
219
|
***
|
|
220
220
|
|
|
221
|
-
### verifySignature()
|
|
221
|
+
### verifySignature() {#verifysignature}
|
|
222
222
|
|
|
223
223
|
> `static` **verifySignature**\<`T`, `U`\>(`token`, `key?`, `verifier?`): `Promise`\<\{ `header`: `T`; `payload`: `U`; \}\>
|
|
224
224
|
|
|
@@ -262,7 +262,7 @@ True if the parts are verified.
|
|
|
262
262
|
|
|
263
263
|
***
|
|
264
264
|
|
|
265
|
-
### defaultSigner()
|
|
265
|
+
### defaultSigner() {#defaultsigner}
|
|
266
266
|
|
|
267
267
|
> `static` **defaultSigner**(`header`, `payload`, `key`): `Promise`\<`string`\>
|
|
268
268
|
|
|
@@ -296,7 +296,7 @@ The signature.
|
|
|
296
296
|
|
|
297
297
|
***
|
|
298
298
|
|
|
299
|
-
### defaultVerifier()
|
|
299
|
+
### defaultVerifier() {#defaultverifier}
|
|
300
300
|
|
|
301
301
|
> `static` **defaultVerifier**\<`T`, `U`\>(`token`, `key`): `Promise`\<\{ `header`: `T`; `payload`: `U`; \}\>
|
|
302
302
|
|
|
@@ -334,7 +334,7 @@ The header and payload if verification successful.
|
|
|
334
334
|
|
|
335
335
|
***
|
|
336
336
|
|
|
337
|
-
### toSigningBytes()
|
|
337
|
+
### toSigningBytes() {#tosigningbytes}
|
|
338
338
|
|
|
339
339
|
> `static` **toSigningBytes**\<`T`, `U`\>(`header`, `payload`): `Uint8Array`
|
|
340
340
|
|
|
@@ -372,7 +372,7 @@ The bytes to sign.
|
|
|
372
372
|
|
|
373
373
|
***
|
|
374
374
|
|
|
375
|
-
### fromSigningBytes()
|
|
375
|
+
### fromSigningBytes() {#fromsigningbytes}
|
|
376
376
|
|
|
377
377
|
> `static` **fromSigningBytes**\<`T`, `U`\>(`signingBytes`): `object`
|
|
378
378
|
|
|
@@ -416,7 +416,7 @@ If the signing bytes are invalid
|
|
|
416
416
|
|
|
417
417
|
***
|
|
418
418
|
|
|
419
|
-
### tokenFromBytes()
|
|
419
|
+
### tokenFromBytes() {#tokenfrombytes}
|
|
420
420
|
|
|
421
421
|
> `static` **tokenFromBytes**(`signingBytes`, `signature`): `string`
|
|
422
422
|
|
|
@@ -444,7 +444,7 @@ The token.
|
|
|
444
444
|
|
|
445
445
|
***
|
|
446
446
|
|
|
447
|
-
### tokenToBytes()
|
|
447
|
+
### tokenToBytes() {#tokentobytes}
|
|
448
448
|
|
|
449
449
|
> `static` **tokenToBytes**(`token`): `object`
|
|
450
450
|
|
|
@@ -14,7 +14,7 @@ Class to help with mime types.
|
|
|
14
14
|
|
|
15
15
|
## Methods
|
|
16
16
|
|
|
17
|
-
### detect()
|
|
17
|
+
### detect() {#detect}
|
|
18
18
|
|
|
19
19
|
> `static` **detect**(`data`): `Promise`\<`string` \| `undefined`\>
|
|
20
20
|
|
|
@@ -36,7 +36,7 @@ The mime type if detected.
|
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
39
|
-
### defaultExtension()
|
|
39
|
+
### defaultExtension() {#defaultextension}
|
|
40
40
|
|
|
41
41
|
> `static` **defaultExtension**(`mimeType`): `string` \| `undefined`
|
|
42
42
|
|
|
@@ -4,7 +4,7 @@ Options for call to the fetch helper.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
9
|
> `optional` **headers**: [`IHttpHeaders`](IHttpHeaders.md)
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ The headers for the request.
|
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
17
|
-
### timeoutMs?
|
|
17
|
+
### timeoutMs? {#timeoutms}
|
|
18
18
|
|
|
19
19
|
> `optional` **timeoutMs**: `number`
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Timeout for requests in milliseconds.
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### includeCredentials?
|
|
25
|
+
### includeCredentials? {#includecredentials}
|
|
26
26
|
|
|
27
27
|
> `optional` **includeCredentials**: `boolean`
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Include credentials in the requests.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### retryCount?
|
|
33
|
+
### retryCount? {#retrycount}
|
|
34
34
|
|
|
35
35
|
> `optional` **retryCount**: `number`
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ The number of times to retry fetching defaults to no retries.
|
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
41
|
-
### retryDelayMs?
|
|
41
|
+
### retryDelayMs? {#retrydelayms}
|
|
42
42
|
|
|
43
43
|
> `optional` **retryDelayMs**: `number`
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ The number of milliseconds we should delay before any retry.
|
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
49
|
-
### cacheTtlMs?
|
|
49
|
+
### cacheTtlMs? {#cachettlms}
|
|
50
50
|
|
|
51
51
|
> `optional` **cacheTtlMs**: `number`
|
|
52
52
|
|
|
@@ -6,7 +6,7 @@ Common http header types.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### ContentType
|
|
9
|
+
### ContentType {#contenttype}
|
|
10
10
|
|
|
11
11
|
> `readonly` **ContentType**: `"content-type"` = `"content-type"`
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ Content Type.
|
|
|
16
16
|
|
|
17
17
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
|
|
18
18
|
|
|
19
|
-
### ContentLanguage
|
|
19
|
+
### ContentLanguage {#contentlanguage}
|
|
20
20
|
|
|
21
21
|
> `readonly` **ContentLanguage**: `"content-language"` = `"content-language"`
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ Content Language.
|
|
|
26
26
|
|
|
27
27
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language
|
|
28
28
|
|
|
29
|
-
### ContentLength
|
|
29
|
+
### ContentLength {#contentlength}
|
|
30
30
|
|
|
31
31
|
> `readonly` **ContentLength**: `"content-length"` = `"content-length"`
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ Content Length.
|
|
|
36
36
|
|
|
37
37
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length
|
|
38
38
|
|
|
39
|
-
### ContentDisposition
|
|
39
|
+
### ContentDisposition {#contentdisposition}
|
|
40
40
|
|
|
41
41
|
> `readonly` **ContentDisposition**: `"content-disposition"` = `"content-disposition"`
|
|
42
42
|
|
|
@@ -46,7 +46,7 @@ Content Disposition.
|
|
|
46
46
|
|
|
47
47
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
|
|
48
48
|
|
|
49
|
-
### ContentEncoding
|
|
49
|
+
### ContentEncoding {#contentencoding}
|
|
50
50
|
|
|
51
51
|
> `readonly` **ContentEncoding**: `"content-encoding"` = `"content-encoding"`
|
|
52
52
|
|
|
@@ -56,7 +56,7 @@ Content Encoding.
|
|
|
56
56
|
|
|
57
57
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
|
|
58
58
|
|
|
59
|
-
### CacheControl
|
|
59
|
+
### CacheControl {#cachecontrol}
|
|
60
60
|
|
|
61
61
|
> `readonly` **CacheControl**: `"cache-control"` = `"cache-control"`
|
|
62
62
|
|
|
@@ -66,7 +66,7 @@ Cache Control.
|
|
|
66
66
|
|
|
67
67
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
|
|
68
68
|
|
|
69
|
-
### ETag
|
|
69
|
+
### ETag {#etag}
|
|
70
70
|
|
|
71
71
|
> `readonly` **ETag**: `"etag"` = `"etag"`
|
|
72
72
|
|
|
@@ -76,7 +76,7 @@ ETag.
|
|
|
76
76
|
|
|
77
77
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
|
|
78
78
|
|
|
79
|
-
### IfNoneMatch
|
|
79
|
+
### IfNoneMatch {#ifnonematch}
|
|
80
80
|
|
|
81
81
|
> `readonly` **IfNoneMatch**: `"if-none-match"` = `"if-none-match"`
|
|
82
82
|
|
|
@@ -86,7 +86,7 @@ If-None-Match.
|
|
|
86
86
|
|
|
87
87
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match
|
|
88
88
|
|
|
89
|
-
### LastModified
|
|
89
|
+
### LastModified {#lastmodified}
|
|
90
90
|
|
|
91
91
|
> `readonly` **LastModified**: `"last-modified"` = `"last-modified"`
|
|
92
92
|
|
|
@@ -96,7 +96,7 @@ Last-Modified.
|
|
|
96
96
|
|
|
97
97
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
|
|
98
98
|
|
|
99
|
-
### IfModifiedSince
|
|
99
|
+
### IfModifiedSince {#ifmodifiedsince}
|
|
100
100
|
|
|
101
101
|
> `readonly` **IfModifiedSince**: `"if-modified-since"` = `"if-modified-since"`
|
|
102
102
|
|
|
@@ -106,7 +106,7 @@ If-Modified-Since.
|
|
|
106
106
|
|
|
107
107
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since
|
|
108
108
|
|
|
109
|
-
### Accept
|
|
109
|
+
### Accept {#accept}
|
|
110
110
|
|
|
111
111
|
> `readonly` **Accept**: `"accept"` = `"accept"`
|
|
112
112
|
|
|
@@ -116,7 +116,7 @@ Accept.
|
|
|
116
116
|
|
|
117
117
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept
|
|
118
118
|
|
|
119
|
-
### AcceptLanguage
|
|
119
|
+
### AcceptLanguage {#acceptlanguage}
|
|
120
120
|
|
|
121
121
|
> `readonly` **AcceptLanguage**: `"accept-language"` = `"accept-language"`
|
|
122
122
|
|
|
@@ -126,7 +126,7 @@ Accept-Language.
|
|
|
126
126
|
|
|
127
127
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Language
|
|
128
128
|
|
|
129
|
-
### AcceptEncoding
|
|
129
|
+
### AcceptEncoding {#acceptencoding}
|
|
130
130
|
|
|
131
131
|
> `readonly` **AcceptEncoding**: `"accept-encoding"` = `"accept-encoding"`
|
|
132
132
|
|
|
@@ -136,7 +136,7 @@ Accept-Encoding.
|
|
|
136
136
|
|
|
137
137
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding
|
|
138
138
|
|
|
139
|
-
### Authorization
|
|
139
|
+
### Authorization {#authorization}
|
|
140
140
|
|
|
141
141
|
> `readonly` **Authorization**: `"authorization"` = `"authorization"`
|
|
142
142
|
|
|
@@ -146,7 +146,7 @@ Authorization.
|
|
|
146
146
|
|
|
147
147
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization
|
|
148
148
|
|
|
149
|
-
### WwwAuthenticate
|
|
149
|
+
### WwwAuthenticate {#wwwauthenticate}
|
|
150
150
|
|
|
151
151
|
> `readonly` **WwwAuthenticate**: `"www-authenticate"` = `"www-authenticate"`
|
|
152
152
|
|
|
@@ -156,7 +156,7 @@ WWW-Authenticate.
|
|
|
156
156
|
|
|
157
157
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate
|
|
158
158
|
|
|
159
|
-
### Cookie
|
|
159
|
+
### Cookie {#cookie}
|
|
160
160
|
|
|
161
161
|
> `readonly` **Cookie**: `"cookie"` = `"cookie"`
|
|
162
162
|
|
|
@@ -166,7 +166,7 @@ Cookie.
|
|
|
166
166
|
|
|
167
167
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cookie
|
|
168
168
|
|
|
169
|
-
### SetCookie
|
|
169
|
+
### SetCookie {#setcookie}
|
|
170
170
|
|
|
171
171
|
> `readonly` **SetCookie**: `"set-cookie"` = `"set-cookie"`
|
|
172
172
|
|
|
@@ -176,7 +176,7 @@ Set Cookie.
|
|
|
176
176
|
|
|
177
177
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie
|
|
178
178
|
|
|
179
|
-
### Location
|
|
179
|
+
### Location {#location}
|
|
180
180
|
|
|
181
181
|
> `readonly` **Location**: `"location"` = `"location"`
|
|
182
182
|
|
|
@@ -186,7 +186,7 @@ Location
|
|
|
186
186
|
|
|
187
187
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location
|
|
188
188
|
|
|
189
|
-
### Origin
|
|
189
|
+
### Origin {#origin}
|
|
190
190
|
|
|
191
191
|
> `readonly` **Origin**: `"origin"` = `"origin"`
|
|
192
192
|
|
|
@@ -196,7 +196,7 @@ Origin.
|
|
|
196
196
|
|
|
197
197
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
|
|
198
198
|
|
|
199
|
-
### Referer
|
|
199
|
+
### Referer {#referer}
|
|
200
200
|
|
|
201
201
|
> `readonly` **Referer**: `"referer"` = `"referer"`
|
|
202
202
|
|
|
@@ -206,7 +206,7 @@ Referer.
|
|
|
206
206
|
|
|
207
207
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer
|
|
208
208
|
|
|
209
|
-
### Link
|
|
209
|
+
### Link {#link}
|
|
210
210
|
|
|
211
211
|
> `readonly` **Link**: `"link"` = `"link"`
|
|
212
212
|
|
|
@@ -216,7 +216,7 @@ Link
|
|
|
216
216
|
|
|
217
217
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
218
218
|
|
|
219
|
-
### Vary
|
|
219
|
+
### Vary {#vary}
|
|
220
220
|
|
|
221
221
|
> `readonly` **Vary**: `"vary"` = `"vary"`
|
|
222
222
|
|
|
@@ -226,7 +226,7 @@ Vary.
|
|
|
226
226
|
|
|
227
227
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary
|
|
228
228
|
|
|
229
|
-
### AccessControlAllowOrigin
|
|
229
|
+
### AccessControlAllowOrigin {#accesscontrolalloworigin}
|
|
230
230
|
|
|
231
231
|
> `readonly` **AccessControlAllowOrigin**: `"access-control-allow-origin"` = `"access-control-allow-origin"`
|
|
232
232
|
|
|
@@ -236,7 +236,7 @@ Access-Control-Allow-Origin.
|
|
|
236
236
|
|
|
237
237
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
|
|
238
238
|
|
|
239
|
-
### AccessControlAllowMethods
|
|
239
|
+
### AccessControlAllowMethods {#accesscontrolallowmethods}
|
|
240
240
|
|
|
241
241
|
> `readonly` **AccessControlAllowMethods**: `"access-control-allow-methods"` = `"access-control-allow-methods"`
|
|
242
242
|
|
|
@@ -246,7 +246,7 @@ Access-Control-Allow-Methods.
|
|
|
246
246
|
|
|
247
247
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods
|
|
248
248
|
|
|
249
|
-
### AccessControlAllowHeaders
|
|
249
|
+
### AccessControlAllowHeaders {#accesscontrolallowheaders}
|
|
250
250
|
|
|
251
251
|
> `readonly` **AccessControlAllowHeaders**: `"access-control-allow-headers"` = `"access-control-allow-headers"`
|
|
252
252
|
|
|
@@ -256,7 +256,7 @@ Access-Control-Allow-Headers.
|
|
|
256
256
|
|
|
257
257
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers
|
|
258
258
|
|
|
259
|
-
### AccessControlExposeHeaders
|
|
259
|
+
### AccessControlExposeHeaders {#accesscontrolexposeheaders}
|
|
260
260
|
|
|
261
261
|
> `readonly` **AccessControlExposeHeaders**: `"access-control-expose-headers"` = `"access-control-expose-headers"`
|
|
262
262
|
|
|
@@ -266,7 +266,7 @@ Access-Control-Expose-Headers.
|
|
|
266
266
|
|
|
267
267
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers
|
|
268
268
|
|
|
269
|
-
### AccessControlMaxAge
|
|
269
|
+
### AccessControlMaxAge {#accesscontrolmaxage}
|
|
270
270
|
|
|
271
271
|
> `readonly` **AccessControlMaxAge**: `"access-control-max-age"` = `"access-control-max-age"`
|
|
272
272
|
|
|
@@ -276,7 +276,7 @@ Access-Control-Max-Age.
|
|
|
276
276
|
|
|
277
277
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age
|
|
278
278
|
|
|
279
|
-
### AccessControlAllowCredentials
|
|
279
|
+
### AccessControlAllowCredentials {#accesscontrolallowcredentials}
|
|
280
280
|
|
|
281
281
|
> `readonly` **AccessControlAllowCredentials**: `"access-control-allow-credentials"` = `"access-control-allow-credentials"`
|
|
282
282
|
|
|
@@ -286,7 +286,7 @@ Access-Control-Allow-Credentials.
|
|
|
286
286
|
|
|
287
287
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials
|
|
288
288
|
|
|
289
|
-
### Range
|
|
289
|
+
### Range {#range}
|
|
290
290
|
|
|
291
291
|
> `readonly` **Range**: `"range"` = `"range"`
|
|
292
292
|
|
|
@@ -296,7 +296,7 @@ Range.
|
|
|
296
296
|
|
|
297
297
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range
|
|
298
298
|
|
|
299
|
-
### AcceptRanges
|
|
299
|
+
### AcceptRanges {#acceptranges}
|
|
300
300
|
|
|
301
301
|
> `readonly` **AcceptRanges**: `"accept-ranges"` = `"accept-ranges"`
|
|
302
302
|
|
|
@@ -306,7 +306,7 @@ Accept-Ranges.
|
|
|
306
306
|
|
|
307
307
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges
|
|
308
308
|
|
|
309
|
-
### ContentRange
|
|
309
|
+
### ContentRange {#contentrange}
|
|
310
310
|
|
|
311
311
|
> `readonly` **ContentRange**: `"content-range"` = `"content-range"`
|
|
312
312
|
|
|
@@ -316,7 +316,7 @@ Content-Range.
|
|
|
316
316
|
|
|
317
317
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range
|
|
318
318
|
|
|
319
|
-
### UserAgent
|
|
319
|
+
### UserAgent {#useragent}
|
|
320
320
|
|
|
321
321
|
> `readonly` **UserAgent**: `"user-agent"` = `"user-agent"`
|
|
322
322
|
|
|
@@ -6,7 +6,7 @@ The names of the HTTP Methods.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### GET
|
|
9
|
+
### GET {#get}
|
|
10
10
|
|
|
11
11
|
> `readonly` **GET**: `"GET"` = `"GET"`
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ Retrieve a representation of the resource.
|
|
|
16
16
|
|
|
17
17
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET
|
|
18
18
|
|
|
19
|
-
### POST
|
|
19
|
+
### POST {#post}
|
|
20
20
|
|
|
21
21
|
> `readonly` **POST**: `"POST"` = `"POST"`
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ Submit an entity to the specified resource.
|
|
|
26
26
|
|
|
27
27
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST
|
|
28
28
|
|
|
29
|
-
### PUT
|
|
29
|
+
### PUT {#put}
|
|
30
30
|
|
|
31
31
|
> `readonly` **PUT**: `"PUT"` = `"PUT"`
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ Replace all current representations of the target resource.
|
|
|
36
36
|
|
|
37
37
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT
|
|
38
38
|
|
|
39
|
-
### PATCH
|
|
39
|
+
### PATCH {#patch}
|
|
40
40
|
|
|
41
41
|
> `readonly` **PATCH**: `"PATCH"` = `"PATCH"`
|
|
42
42
|
|
|
@@ -46,7 +46,7 @@ Apply partial modifications to a resource.
|
|
|
46
46
|
|
|
47
47
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH
|
|
48
48
|
|
|
49
|
-
### DELETE
|
|
49
|
+
### DELETE {#delete}
|
|
50
50
|
|
|
51
51
|
> `readonly` **DELETE**: `"DELETE"` = `"DELETE"`
|
|
52
52
|
|
|
@@ -56,7 +56,7 @@ Delete the specified resource.
|
|
|
56
56
|
|
|
57
57
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE
|
|
58
58
|
|
|
59
|
-
### OPTIONS
|
|
59
|
+
### OPTIONS {#options}
|
|
60
60
|
|
|
61
61
|
> `readonly` **OPTIONS**: `"OPTIONS"` = `"OPTIONS"`
|
|
62
62
|
|
|
@@ -66,7 +66,7 @@ Describe the communication options for the target resource.
|
|
|
66
66
|
|
|
67
67
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS
|
|
68
68
|
|
|
69
|
-
### HEAD
|
|
69
|
+
### HEAD {#head}
|
|
70
70
|
|
|
71
71
|
> `readonly` **HEAD**: `"HEAD"` = `"HEAD"`
|
|
72
72
|
|
|
@@ -76,7 +76,7 @@ Ask for a response identical to GET, but without the response body.
|
|
|
76
76
|
|
|
77
77
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD
|
|
78
78
|
|
|
79
|
-
### CONNECT
|
|
79
|
+
### CONNECT {#connect}
|
|
80
80
|
|
|
81
81
|
> `readonly` **CONNECT**: `"CONNECT"` = `"CONNECT"`
|
|
82
82
|
|
|
@@ -86,7 +86,7 @@ Establish a tunnel to the server identified by the target resource.
|
|
|
86
86
|
|
|
87
87
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT
|
|
88
88
|
|
|
89
|
-
### TRACE
|
|
89
|
+
### TRACE {#trace}
|
|
90
90
|
|
|
91
91
|
> `readonly` **TRACE**: `"TRACE"` = `"TRACE"`
|
|
92
92
|
|