@twin.org/web 0.0.3-next.4 → 0.0.3-next.40
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/dist/es/index.js +3 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IFetchOptions.js.map +1 -1
- package/dist/es/models/IHttpLinkHeader.js +2 -0
- package/dist/es/models/IHttpLinkHeader.js.map +1 -0
- package/dist/es/models/headerTypes.js +129 -1
- package/dist/es/models/headerTypes.js.map +1 -1
- package/dist/es/models/httpLinkRelType.js +130 -0
- package/dist/es/models/httpLinkRelType.js.map +1 -0
- package/dist/es/models/httpMethod.js +36 -0
- package/dist/es/models/httpMethod.js.map +1 -1
- package/dist/es/models/httpStatusCode.js +63 -0
- package/dist/es/models/httpStatusCode.js.map +1 -1
- package/dist/es/models/mimeTypes.js +170 -1
- package/dist/es/models/mimeTypes.js.map +1 -1
- package/dist/es/utils/cookieHelper.js +83 -0
- package/dist/es/utils/cookieHelper.js.map +1 -0
- package/dist/es/utils/fetchHelper.js +1 -1
- package/dist/es/utils/fetchHelper.js.map +1 -1
- package/dist/es/utils/headerHelper.js +383 -1
- package/dist/es/utils/headerHelper.js.map +1 -1
- package/dist/es/utils/mimeTypeHelper.js +42 -1
- package/dist/es/utils/mimeTypeHelper.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/models/IFetchOptions.d.ts +1 -1
- package/dist/types/models/IHttpLinkHeader.d.ts +26 -0
- package/dist/types/models/headerTypes.d.ts +128 -0
- package/dist/types/models/httpLinkRelType.d.ts +130 -0
- package/dist/types/models/httpMethod.d.ts +36 -0
- package/dist/types/models/httpStatusCode.d.ts +63 -0
- package/dist/types/models/mimeTypes.d.ts +169 -0
- package/dist/types/utils/cookieHelper.d.ts +49 -0
- package/dist/types/utils/headerHelper.d.ts +115 -0
- package/docs/changelog.md +914 -143
- package/docs/examples.md +108 -1
- package/docs/reference/classes/CookieHelper.md +155 -0
- package/docs/reference/classes/FetchError.md +453 -1
- package/docs/reference/classes/FetchHelper.md +12 -12
- package/docs/reference/classes/HeaderHelper.md +385 -2
- package/docs/reference/classes/Jwk.md +6 -6
- package/docs/reference/classes/Jws.md +3 -3
- package/docs/reference/classes/Jwt.md +17 -17
- package/docs/reference/classes/MimeTypeHelper.md +4 -4
- package/docs/reference/index.md +4 -0
- package/docs/reference/interfaces/IFetchOptions.md +12 -14
- package/docs/reference/interfaces/IHttpHeaders.md +1 -1
- package/docs/reference/interfaces/IHttpLinkHeader.md +43 -0
- package/docs/reference/type-aliases/HttpLinkRelType.md +5 -0
- package/docs/reference/variables/HeaderTypes.md +280 -8
- package/docs/reference/variables/HttpLinkRelType.md +191 -0
- package/docs/reference/variables/HttpMethod.md +63 -9
- package/docs/reference/variables/HttpStatusCode.md +314 -62
- package/docs/reference/variables/MimeTypes.md +279 -23
- package/locales/en.json +4 -3
- package/package.json +8 -8
|
@@ -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
|
|
|
@@ -46,9 +46,9 @@ Return the default extension for a mime type.
|
|
|
46
46
|
|
|
47
47
|
##### mimeType
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
`string` \| `undefined`
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
The mimetype to get the extension for.
|
|
52
52
|
|
|
53
53
|
#### Returns
|
|
54
54
|
|
package/docs/reference/index.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
## Classes
|
|
4
4
|
|
|
5
5
|
- [FetchError](classes/FetchError.md)
|
|
6
|
+
- [CookieHelper](classes/CookieHelper.md)
|
|
6
7
|
- [FetchHelper](classes/FetchHelper.md)
|
|
7
8
|
- [HeaderHelper](classes/HeaderHelper.md)
|
|
8
9
|
- [Jwk](classes/Jwk.md)
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
|
|
15
16
|
- [IFetchOptions](interfaces/IFetchOptions.md)
|
|
16
17
|
- [IHttpHeaders](interfaces/IHttpHeaders.md)
|
|
18
|
+
- [IHttpLinkHeader](interfaces/IHttpLinkHeader.md)
|
|
17
19
|
|
|
18
20
|
## Type Aliases
|
|
19
21
|
|
|
@@ -21,6 +23,7 @@
|
|
|
21
23
|
- [IJwtHeader](type-aliases/IJwtHeader.md)
|
|
22
24
|
- [IJwtPayload](type-aliases/IJwtPayload.md)
|
|
23
25
|
- [HeaderTypes](type-aliases/HeaderTypes.md)
|
|
26
|
+
- [HttpLinkRelType](type-aliases/HttpLinkRelType.md)
|
|
24
27
|
- [HttpMethod](type-aliases/HttpMethod.md)
|
|
25
28
|
- [HttpStatusCode](type-aliases/HttpStatusCode.md)
|
|
26
29
|
- [JwkCryptoKey](type-aliases/JwkCryptoKey.md)
|
|
@@ -29,6 +32,7 @@
|
|
|
29
32
|
## Variables
|
|
30
33
|
|
|
31
34
|
- [HeaderTypes](variables/HeaderTypes.md)
|
|
35
|
+
- [HttpLinkRelType](variables/HttpLinkRelType.md)
|
|
32
36
|
- [HttpMethod](variables/HttpMethod.md)
|
|
33
37
|
- [HttpStatusCode](variables/HttpStatusCode.md)
|
|
34
38
|
- [MimeTypes](variables/MimeTypes.md)
|
|
@@ -4,50 +4,48 @@ Options for call to the fetch helper.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
10
|
-
|
|
11
|
-
#### Param
|
|
9
|
+
> `optional` **headers?**: [`IHttpHeaders`](IHttpHeaders.md)
|
|
12
10
|
|
|
13
11
|
The headers for the request.
|
|
14
12
|
|
|
15
13
|
***
|
|
16
14
|
|
|
17
|
-
### timeoutMs?
|
|
15
|
+
### timeoutMs? {#timeoutms}
|
|
18
16
|
|
|
19
|
-
> `optional` **timeoutMs
|
|
17
|
+
> `optional` **timeoutMs?**: `number`
|
|
20
18
|
|
|
21
19
|
Timeout for requests in milliseconds.
|
|
22
20
|
|
|
23
21
|
***
|
|
24
22
|
|
|
25
|
-
### includeCredentials?
|
|
23
|
+
### includeCredentials? {#includecredentials}
|
|
26
24
|
|
|
27
|
-
> `optional` **includeCredentials
|
|
25
|
+
> `optional` **includeCredentials?**: `boolean`
|
|
28
26
|
|
|
29
27
|
Include credentials in the requests.
|
|
30
28
|
|
|
31
29
|
***
|
|
32
30
|
|
|
33
|
-
### retryCount?
|
|
31
|
+
### retryCount? {#retrycount}
|
|
34
32
|
|
|
35
|
-
> `optional` **retryCount
|
|
33
|
+
> `optional` **retryCount?**: `number`
|
|
36
34
|
|
|
37
35
|
The number of times to retry fetching defaults to no retries.
|
|
38
36
|
|
|
39
37
|
***
|
|
40
38
|
|
|
41
|
-
### retryDelayMs?
|
|
39
|
+
### retryDelayMs? {#retrydelayms}
|
|
42
40
|
|
|
43
|
-
> `optional` **retryDelayMs
|
|
41
|
+
> `optional` **retryDelayMs?**: `number`
|
|
44
42
|
|
|
45
43
|
The number of milliseconds we should delay before any retry.
|
|
46
44
|
|
|
47
45
|
***
|
|
48
46
|
|
|
49
|
-
### cacheTtlMs?
|
|
47
|
+
### cacheTtlMs? {#cachettlms}
|
|
50
48
|
|
|
51
|
-
> `optional` **cacheTtlMs
|
|
49
|
+
> `optional` **cacheTtlMs?**: `number`
|
|
52
50
|
|
|
53
51
|
The number of milliseconds to cache the response for, leave undefined for no cache, 0 means infinite.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Interface: IHttpLinkHeader
|
|
2
|
+
|
|
3
|
+
Model used for Http link headers parameter.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### url {#url}
|
|
8
|
+
|
|
9
|
+
> **url**: `string`
|
|
10
|
+
|
|
11
|
+
The URL of the link.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### urlQueryParams? {#urlqueryparams}
|
|
16
|
+
|
|
17
|
+
> `optional` **urlQueryParams?**: `object`
|
|
18
|
+
|
|
19
|
+
Optional query parameters for the URL.
|
|
20
|
+
|
|
21
|
+
#### Index Signature
|
|
22
|
+
|
|
23
|
+
\[`id`: `string`\]: `string`
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### rel {#rel}
|
|
28
|
+
|
|
29
|
+
> **rel**: `string`[]
|
|
30
|
+
|
|
31
|
+
The relation types of the link.
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### params? {#params}
|
|
36
|
+
|
|
37
|
+
> `optional` **params?**: `object`
|
|
38
|
+
|
|
39
|
+
Optional additional parameters for the link.
|
|
40
|
+
|
|
41
|
+
#### Index Signature
|
|
42
|
+
|
|
43
|
+
\[`id`: `string`\]: `string`
|
|
@@ -6,50 +6,322 @@ 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
|
|
|
13
13
|
Content Type.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
#### See
|
|
16
|
+
|
|
17
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
|
|
18
|
+
|
|
19
|
+
### ContentLanguage {#contentlanguage}
|
|
20
|
+
|
|
21
|
+
> `readonly` **ContentLanguage**: `"content-language"` = `"content-language"`
|
|
22
|
+
|
|
23
|
+
Content Language.
|
|
24
|
+
|
|
25
|
+
#### See
|
|
26
|
+
|
|
27
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language
|
|
28
|
+
|
|
29
|
+
### ContentLength {#contentlength}
|
|
16
30
|
|
|
17
31
|
> `readonly` **ContentLength**: `"content-length"` = `"content-length"`
|
|
18
32
|
|
|
19
33
|
Content Length.
|
|
20
34
|
|
|
21
|
-
|
|
35
|
+
#### See
|
|
36
|
+
|
|
37
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length
|
|
38
|
+
|
|
39
|
+
### ContentDisposition {#contentdisposition}
|
|
22
40
|
|
|
23
41
|
> `readonly` **ContentDisposition**: `"content-disposition"` = `"content-disposition"`
|
|
24
42
|
|
|
25
43
|
Content Disposition.
|
|
26
44
|
|
|
27
|
-
|
|
45
|
+
#### See
|
|
46
|
+
|
|
47
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
|
|
48
|
+
|
|
49
|
+
### ContentEncoding {#contentencoding}
|
|
50
|
+
|
|
51
|
+
> `readonly` **ContentEncoding**: `"content-encoding"` = `"content-encoding"`
|
|
52
|
+
|
|
53
|
+
Content Encoding.
|
|
54
|
+
|
|
55
|
+
#### See
|
|
56
|
+
|
|
57
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
|
|
58
|
+
|
|
59
|
+
### CacheControl {#cachecontrol}
|
|
60
|
+
|
|
61
|
+
> `readonly` **CacheControl**: `"cache-control"` = `"cache-control"`
|
|
62
|
+
|
|
63
|
+
Cache Control.
|
|
64
|
+
|
|
65
|
+
#### See
|
|
66
|
+
|
|
67
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
|
|
68
|
+
|
|
69
|
+
### ETag {#etag}
|
|
70
|
+
|
|
71
|
+
> `readonly` **ETag**: `"etag"` = `"etag"`
|
|
72
|
+
|
|
73
|
+
ETag.
|
|
74
|
+
|
|
75
|
+
#### See
|
|
76
|
+
|
|
77
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
|
|
78
|
+
|
|
79
|
+
### IfNoneMatch {#ifnonematch}
|
|
80
|
+
|
|
81
|
+
> `readonly` **IfNoneMatch**: `"if-none-match"` = `"if-none-match"`
|
|
82
|
+
|
|
83
|
+
If-None-Match.
|
|
84
|
+
|
|
85
|
+
#### See
|
|
86
|
+
|
|
87
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match
|
|
88
|
+
|
|
89
|
+
### LastModified {#lastmodified}
|
|
90
|
+
|
|
91
|
+
> `readonly` **LastModified**: `"last-modified"` = `"last-modified"`
|
|
92
|
+
|
|
93
|
+
Last-Modified.
|
|
94
|
+
|
|
95
|
+
#### See
|
|
96
|
+
|
|
97
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
|
|
98
|
+
|
|
99
|
+
### IfModifiedSince {#ifmodifiedsince}
|
|
100
|
+
|
|
101
|
+
> `readonly` **IfModifiedSince**: `"if-modified-since"` = `"if-modified-since"`
|
|
102
|
+
|
|
103
|
+
If-Modified-Since.
|
|
104
|
+
|
|
105
|
+
#### See
|
|
106
|
+
|
|
107
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since
|
|
108
|
+
|
|
109
|
+
### Accept {#accept}
|
|
28
110
|
|
|
29
111
|
> `readonly` **Accept**: `"accept"` = `"accept"`
|
|
30
112
|
|
|
31
113
|
Accept.
|
|
32
114
|
|
|
33
|
-
|
|
115
|
+
#### See
|
|
116
|
+
|
|
117
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept
|
|
118
|
+
|
|
119
|
+
### AcceptLanguage {#acceptlanguage}
|
|
120
|
+
|
|
121
|
+
> `readonly` **AcceptLanguage**: `"accept-language"` = `"accept-language"`
|
|
122
|
+
|
|
123
|
+
Accept-Language.
|
|
124
|
+
|
|
125
|
+
#### See
|
|
126
|
+
|
|
127
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Language
|
|
128
|
+
|
|
129
|
+
### AcceptEncoding {#acceptencoding}
|
|
130
|
+
|
|
131
|
+
> `readonly` **AcceptEncoding**: `"accept-encoding"` = `"accept-encoding"`
|
|
132
|
+
|
|
133
|
+
Accept-Encoding.
|
|
134
|
+
|
|
135
|
+
#### See
|
|
136
|
+
|
|
137
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding
|
|
138
|
+
|
|
139
|
+
### Authorization {#authorization}
|
|
34
140
|
|
|
35
141
|
> `readonly` **Authorization**: `"authorization"` = `"authorization"`
|
|
36
142
|
|
|
37
143
|
Authorization.
|
|
38
144
|
|
|
39
|
-
|
|
145
|
+
#### See
|
|
146
|
+
|
|
147
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization
|
|
148
|
+
|
|
149
|
+
### WwwAuthenticate {#wwwauthenticate}
|
|
150
|
+
|
|
151
|
+
> `readonly` **WwwAuthenticate**: `"www-authenticate"` = `"www-authenticate"`
|
|
152
|
+
|
|
153
|
+
WWW-Authenticate.
|
|
154
|
+
|
|
155
|
+
#### See
|
|
156
|
+
|
|
157
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate
|
|
158
|
+
|
|
159
|
+
### Cookie {#cookie}
|
|
40
160
|
|
|
41
161
|
> `readonly` **Cookie**: `"cookie"` = `"cookie"`
|
|
42
162
|
|
|
43
163
|
Cookie.
|
|
44
164
|
|
|
45
|
-
|
|
165
|
+
#### See
|
|
166
|
+
|
|
167
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cookie
|
|
168
|
+
|
|
169
|
+
### SetCookie {#setcookie}
|
|
46
170
|
|
|
47
171
|
> `readonly` **SetCookie**: `"set-cookie"` = `"set-cookie"`
|
|
48
172
|
|
|
49
173
|
Set Cookie.
|
|
50
174
|
|
|
51
|
-
|
|
175
|
+
#### See
|
|
176
|
+
|
|
177
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie
|
|
178
|
+
|
|
179
|
+
### Location {#location}
|
|
52
180
|
|
|
53
181
|
> `readonly` **Location**: `"location"` = `"location"`
|
|
54
182
|
|
|
55
183
|
Location
|
|
184
|
+
|
|
185
|
+
#### See
|
|
186
|
+
|
|
187
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location
|
|
188
|
+
|
|
189
|
+
### Origin {#origin}
|
|
190
|
+
|
|
191
|
+
> `readonly` **Origin**: `"origin"` = `"origin"`
|
|
192
|
+
|
|
193
|
+
Origin.
|
|
194
|
+
|
|
195
|
+
#### See
|
|
196
|
+
|
|
197
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
|
|
198
|
+
|
|
199
|
+
### Referer {#referer}
|
|
200
|
+
|
|
201
|
+
> `readonly` **Referer**: `"referer"` = `"referer"`
|
|
202
|
+
|
|
203
|
+
Referer.
|
|
204
|
+
|
|
205
|
+
#### See
|
|
206
|
+
|
|
207
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer
|
|
208
|
+
|
|
209
|
+
### Link {#link}
|
|
210
|
+
|
|
211
|
+
> `readonly` **Link**: `"link"` = `"link"`
|
|
212
|
+
|
|
213
|
+
Link
|
|
214
|
+
|
|
215
|
+
#### See
|
|
216
|
+
|
|
217
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
218
|
+
|
|
219
|
+
### Vary {#vary}
|
|
220
|
+
|
|
221
|
+
> `readonly` **Vary**: `"vary"` = `"vary"`
|
|
222
|
+
|
|
223
|
+
Vary.
|
|
224
|
+
|
|
225
|
+
#### See
|
|
226
|
+
|
|
227
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary
|
|
228
|
+
|
|
229
|
+
### AccessControlAllowOrigin {#accesscontrolalloworigin}
|
|
230
|
+
|
|
231
|
+
> `readonly` **AccessControlAllowOrigin**: `"access-control-allow-origin"` = `"access-control-allow-origin"`
|
|
232
|
+
|
|
233
|
+
Access-Control-Allow-Origin.
|
|
234
|
+
|
|
235
|
+
#### See
|
|
236
|
+
|
|
237
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
|
|
238
|
+
|
|
239
|
+
### AccessControlAllowMethods {#accesscontrolallowmethods}
|
|
240
|
+
|
|
241
|
+
> `readonly` **AccessControlAllowMethods**: `"access-control-allow-methods"` = `"access-control-allow-methods"`
|
|
242
|
+
|
|
243
|
+
Access-Control-Allow-Methods.
|
|
244
|
+
|
|
245
|
+
#### See
|
|
246
|
+
|
|
247
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods
|
|
248
|
+
|
|
249
|
+
### AccessControlAllowHeaders {#accesscontrolallowheaders}
|
|
250
|
+
|
|
251
|
+
> `readonly` **AccessControlAllowHeaders**: `"access-control-allow-headers"` = `"access-control-allow-headers"`
|
|
252
|
+
|
|
253
|
+
Access-Control-Allow-Headers.
|
|
254
|
+
|
|
255
|
+
#### See
|
|
256
|
+
|
|
257
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers
|
|
258
|
+
|
|
259
|
+
### AccessControlExposeHeaders {#accesscontrolexposeheaders}
|
|
260
|
+
|
|
261
|
+
> `readonly` **AccessControlExposeHeaders**: `"access-control-expose-headers"` = `"access-control-expose-headers"`
|
|
262
|
+
|
|
263
|
+
Access-Control-Expose-Headers.
|
|
264
|
+
|
|
265
|
+
#### See
|
|
266
|
+
|
|
267
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers
|
|
268
|
+
|
|
269
|
+
### AccessControlMaxAge {#accesscontrolmaxage}
|
|
270
|
+
|
|
271
|
+
> `readonly` **AccessControlMaxAge**: `"access-control-max-age"` = `"access-control-max-age"`
|
|
272
|
+
|
|
273
|
+
Access-Control-Max-Age.
|
|
274
|
+
|
|
275
|
+
#### See
|
|
276
|
+
|
|
277
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age
|
|
278
|
+
|
|
279
|
+
### AccessControlAllowCredentials {#accesscontrolallowcredentials}
|
|
280
|
+
|
|
281
|
+
> `readonly` **AccessControlAllowCredentials**: `"access-control-allow-credentials"` = `"access-control-allow-credentials"`
|
|
282
|
+
|
|
283
|
+
Access-Control-Allow-Credentials.
|
|
284
|
+
|
|
285
|
+
#### See
|
|
286
|
+
|
|
287
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials
|
|
288
|
+
|
|
289
|
+
### Range {#range}
|
|
290
|
+
|
|
291
|
+
> `readonly` **Range**: `"range"` = `"range"`
|
|
292
|
+
|
|
293
|
+
Range.
|
|
294
|
+
|
|
295
|
+
#### See
|
|
296
|
+
|
|
297
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range
|
|
298
|
+
|
|
299
|
+
### AcceptRanges {#acceptranges}
|
|
300
|
+
|
|
301
|
+
> `readonly` **AcceptRanges**: `"accept-ranges"` = `"accept-ranges"`
|
|
302
|
+
|
|
303
|
+
Accept-Ranges.
|
|
304
|
+
|
|
305
|
+
#### See
|
|
306
|
+
|
|
307
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges
|
|
308
|
+
|
|
309
|
+
### ContentRange {#contentrange}
|
|
310
|
+
|
|
311
|
+
> `readonly` **ContentRange**: `"content-range"` = `"content-range"`
|
|
312
|
+
|
|
313
|
+
Content-Range.
|
|
314
|
+
|
|
315
|
+
#### See
|
|
316
|
+
|
|
317
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range
|
|
318
|
+
|
|
319
|
+
### UserAgent {#useragent}
|
|
320
|
+
|
|
321
|
+
> `readonly` **UserAgent**: `"user-agent"` = `"user-agent"`
|
|
322
|
+
|
|
323
|
+
User-Agent
|
|
324
|
+
|
|
325
|
+
#### See
|
|
326
|
+
|
|
327
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
# Variable: HttpLinkRelType
|
|
2
|
+
|
|
3
|
+
> `const` **HttpLinkRelType**: `object`
|
|
4
|
+
|
|
5
|
+
Common HTML rel attribute values.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### alternate {#alternate}
|
|
10
|
+
|
|
11
|
+
> `readonly` **alternate**: `"alternate"` = `"alternate"`
|
|
12
|
+
|
|
13
|
+
Alternate representation of the current document.
|
|
14
|
+
|
|
15
|
+
### author {#author}
|
|
16
|
+
|
|
17
|
+
> `readonly` **author**: `"author"` = `"author"`
|
|
18
|
+
|
|
19
|
+
Author of the current document or article.
|
|
20
|
+
|
|
21
|
+
### bookmark {#bookmark}
|
|
22
|
+
|
|
23
|
+
> `readonly` **bookmark**: `"bookmark"` = `"bookmark"`
|
|
24
|
+
|
|
25
|
+
Permalink for the nearest ancestor section.
|
|
26
|
+
|
|
27
|
+
### canonical {#canonical}
|
|
28
|
+
|
|
29
|
+
> `readonly` **canonical**: `"canonical"` = `"canonical"`
|
|
30
|
+
|
|
31
|
+
Preferred URL for the current document.
|
|
32
|
+
|
|
33
|
+
### compressionDictionary {#compressiondictionary}
|
|
34
|
+
|
|
35
|
+
> `readonly` **compressionDictionary**: `"compression-dictionary"` = `"compression-dictionary"`
|
|
36
|
+
|
|
37
|
+
Compression dictionary for future downloads.
|
|
38
|
+
|
|
39
|
+
### dnsPrefetch {#dnsprefetch}
|
|
40
|
+
|
|
41
|
+
> `readonly` **dnsPrefetch**: `"dns-prefetch"` = `"dns-prefetch"`
|
|
42
|
+
|
|
43
|
+
Hint to perform DNS resolution in advance.
|
|
44
|
+
|
|
45
|
+
### external {#external}
|
|
46
|
+
|
|
47
|
+
> `readonly` **external**: `"external"` = `"external"`
|
|
48
|
+
|
|
49
|
+
The referenced document is external to the current site.
|
|
50
|
+
|
|
51
|
+
### expect {#expect}
|
|
52
|
+
|
|
53
|
+
> `readonly` **expect**: `"expect"` = `"expect"`
|
|
54
|
+
|
|
55
|
+
Allows render-blocking until essential parts are parsed.
|
|
56
|
+
|
|
57
|
+
### help {#help}
|
|
58
|
+
|
|
59
|
+
> `readonly` **help**: `"help"` = `"help"`
|
|
60
|
+
|
|
61
|
+
Link to context-sensitive help.
|
|
62
|
+
|
|
63
|
+
### icon {#icon}
|
|
64
|
+
|
|
65
|
+
> `readonly` **icon**: `"icon"` = `"icon"`
|
|
66
|
+
|
|
67
|
+
Icon representing the current document.
|
|
68
|
+
|
|
69
|
+
### license {#license}
|
|
70
|
+
|
|
71
|
+
> `readonly` **license**: `"license"` = `"license"`
|
|
72
|
+
|
|
73
|
+
Licensing information for the current document.
|
|
74
|
+
|
|
75
|
+
### manifest {#manifest}
|
|
76
|
+
|
|
77
|
+
> `readonly` **manifest**: `"manifest"` = `"manifest"`
|
|
78
|
+
|
|
79
|
+
Web application manifest.
|
|
80
|
+
|
|
81
|
+
### me {#me}
|
|
82
|
+
|
|
83
|
+
> `readonly` **me**: `"me"` = `"me"`
|
|
84
|
+
|
|
85
|
+
Indicates the current document represents the linked identity.
|
|
86
|
+
|
|
87
|
+
### modulePreload {#modulepreload}
|
|
88
|
+
|
|
89
|
+
> `readonly` **modulePreload**: `"modulepreload"` = `"modulepreload"`
|
|
90
|
+
|
|
91
|
+
Pre-emptively fetch a module and optionally its dependencies.
|
|
92
|
+
|
|
93
|
+
### next {#next}
|
|
94
|
+
|
|
95
|
+
> `readonly` **next**: `"next"` = `"next"`
|
|
96
|
+
|
|
97
|
+
The next document in a series.
|
|
98
|
+
|
|
99
|
+
### nofollow {#nofollow}
|
|
100
|
+
|
|
101
|
+
> `readonly` **nofollow**: `"nofollow"` = `"nofollow"`
|
|
102
|
+
|
|
103
|
+
The current document does not endorse the referenced document.
|
|
104
|
+
|
|
105
|
+
### noopener {#noopener}
|
|
106
|
+
|
|
107
|
+
> `readonly` **noopener**: `"noopener"` = `"noopener"`
|
|
108
|
+
|
|
109
|
+
Prevent access to the originating browsing context.
|
|
110
|
+
|
|
111
|
+
### noreferrer {#noreferrer}
|
|
112
|
+
|
|
113
|
+
> `readonly` **noreferrer**: `"noreferrer"` = `"noreferrer"`
|
|
114
|
+
|
|
115
|
+
Suppress the Referer header and implies noopener.
|
|
116
|
+
|
|
117
|
+
### opener {#opener}
|
|
118
|
+
|
|
119
|
+
> `readonly` **opener**: `"opener"` = `"opener"`
|
|
120
|
+
|
|
121
|
+
Allow access to the originating browsing context.
|
|
122
|
+
|
|
123
|
+
### pingback {#pingback}
|
|
124
|
+
|
|
125
|
+
> `readonly` **pingback**: `"pingback"` = `"pingback"`
|
|
126
|
+
|
|
127
|
+
Address of the pingback server for the current document.
|
|
128
|
+
|
|
129
|
+
### preconnect {#preconnect}
|
|
130
|
+
|
|
131
|
+
> `readonly` **preconnect**: `"preconnect"` = `"preconnect"`
|
|
132
|
+
|
|
133
|
+
Hint to connect to the target origin in advance.
|
|
134
|
+
|
|
135
|
+
### prefetch {#prefetch}
|
|
136
|
+
|
|
137
|
+
> `readonly` **prefetch**: `"prefetch"` = `"prefetch"`
|
|
138
|
+
|
|
139
|
+
Hint to fetch and cache a likely next resource.
|
|
140
|
+
|
|
141
|
+
### preload {#preload}
|
|
142
|
+
|
|
143
|
+
> `readonly` **preload**: `"preload"` = `"preload"`
|
|
144
|
+
|
|
145
|
+
Hint to fetch and cache a resource for the current navigation.
|
|
146
|
+
|
|
147
|
+
### prerender {#prerender}
|
|
148
|
+
|
|
149
|
+
> `readonly` **prerender**: `"prerender"` = `"prerender"`
|
|
150
|
+
|
|
151
|
+
Deprecated hint to fetch and process a target in advance.
|
|
152
|
+
|
|
153
|
+
### prev {#prev}
|
|
154
|
+
|
|
155
|
+
> `readonly` **prev**: `"prev"` = `"prev"`
|
|
156
|
+
|
|
157
|
+
The previous document in a series.
|
|
158
|
+
|
|
159
|
+
### privacyPolicy {#privacypolicy}
|
|
160
|
+
|
|
161
|
+
> `readonly` **privacyPolicy**: `"privacy-policy"` = `"privacy-policy"`
|
|
162
|
+
|
|
163
|
+
Privacy policy for the current document.
|
|
164
|
+
|
|
165
|
+
### search {#search}
|
|
166
|
+
|
|
167
|
+
> `readonly` **search**: `"search"` = `"search"`
|
|
168
|
+
|
|
169
|
+
Search resource for the current document or related resources.
|
|
170
|
+
|
|
171
|
+
### stylesheet {#stylesheet}
|
|
172
|
+
|
|
173
|
+
> `readonly` **stylesheet**: `"stylesheet"` = `"stylesheet"`
|
|
174
|
+
|
|
175
|
+
External stylesheet for the current document.
|
|
176
|
+
|
|
177
|
+
### tag {#tag}
|
|
178
|
+
|
|
179
|
+
> `readonly` **tag**: `"tag"` = `"tag"`
|
|
180
|
+
|
|
181
|
+
Tag applying to the current document.
|
|
182
|
+
|
|
183
|
+
### termsOfService {#termsofservice}
|
|
184
|
+
|
|
185
|
+
> `readonly` **termsOfService**: `"terms-of-service"` = `"terms-of-service"`
|
|
186
|
+
|
|
187
|
+
Terms of service for the current document.
|
|
188
|
+
|
|
189
|
+
## See
|
|
190
|
+
|
|
191
|
+
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel
|