@twin.org/web 0.0.3-next.2 → 0.0.3-next.21
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/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/headerTypes.js +129 -1
- package/dist/es/models/headerTypes.js.map +1 -1
- 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/headerHelper.js +135 -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 +1 -0
- package/dist/types/models/headerTypes.d.ts +128 -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 +67 -0
- package/docs/changelog.md +431 -0
- package/docs/reference/classes/CookieHelper.md +155 -0
- package/docs/reference/classes/HeaderHelper.md +136 -0
- package/docs/reference/index.md +1 -0
- package/docs/reference/variables/HeaderTypes.md +272 -0
- package/docs/reference/variables/HttpMethod.md +54 -0
- package/docs/reference/variables/HttpStatusCode.md +252 -0
- package/docs/reference/variables/MimeTypes.md +256 -0
- package/locales/en.json +4 -0
- package/package.json +4 -4
|
@@ -12,6 +12,14 @@ Class to helper with header operations.
|
|
|
12
12
|
|
|
13
13
|
`HeaderHelper`
|
|
14
14
|
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### CLASS\_NAME
|
|
18
|
+
|
|
19
|
+
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
20
|
+
|
|
21
|
+
Runtime name for the class.
|
|
22
|
+
|
|
15
23
|
## Methods
|
|
16
24
|
|
|
17
25
|
### createBearer()
|
|
@@ -55,3 +63,131 @@ The header value to extract the token from.
|
|
|
55
63
|
`string`
|
|
56
64
|
|
|
57
65
|
The extracted token if it exists.
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### extractLinkHeaderRelation()
|
|
70
|
+
|
|
71
|
+
> `static` **extractLinkHeaderRelation**(`linkHeader`, `relation`): \{ `url`: `string`; `urlQueryParams?`: \{\[`id`: `string`\]: `string`; \}; `rel`: `string`; `params?`: \{\[`id`: `string`\]: `string`; \}; \} \| `undefined`
|
|
72
|
+
|
|
73
|
+
Extract the properties from a Link header for a specific relation type.
|
|
74
|
+
|
|
75
|
+
#### Parameters
|
|
76
|
+
|
|
77
|
+
##### linkHeader
|
|
78
|
+
|
|
79
|
+
`unknown`
|
|
80
|
+
|
|
81
|
+
The Link header value in format `<url>; rel="..."; param1=""; param2=""`.
|
|
82
|
+
|
|
83
|
+
##### relation
|
|
84
|
+
|
|
85
|
+
`string`
|
|
86
|
+
|
|
87
|
+
The relation type to extract.
|
|
88
|
+
|
|
89
|
+
#### Returns
|
|
90
|
+
|
|
91
|
+
\{ `url`: `string`; `urlQueryParams?`: \{\[`id`: `string`\]: `string`; \}; `rel`: `string`; `params?`: \{\[`id`: `string`\]: `string`; \}; \} \| `undefined`
|
|
92
|
+
|
|
93
|
+
The extracted URL, rel and optional params or undefined if invalid/missing.
|
|
94
|
+
|
|
95
|
+
#### See
|
|
96
|
+
|
|
97
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
98
|
+
|
|
99
|
+
***
|
|
100
|
+
|
|
101
|
+
### extractLinkHeaders()
|
|
102
|
+
|
|
103
|
+
> `static` **extractLinkHeaders**(`linkHeader`): `object`[] \| `undefined`
|
|
104
|
+
|
|
105
|
+
Extract the link headers.
|
|
106
|
+
|
|
107
|
+
#### Parameters
|
|
108
|
+
|
|
109
|
+
##### linkHeader
|
|
110
|
+
|
|
111
|
+
`unknown`
|
|
112
|
+
|
|
113
|
+
The Link header value in format `<url>; rel="..."; param1=""; param2=""`.
|
|
114
|
+
|
|
115
|
+
#### Returns
|
|
116
|
+
|
|
117
|
+
`object`[] \| `undefined`
|
|
118
|
+
|
|
119
|
+
The extracted possible array of URL, rel and optional params or undefined if invalid/missing.
|
|
120
|
+
|
|
121
|
+
#### See
|
|
122
|
+
|
|
123
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
124
|
+
|
|
125
|
+
***
|
|
126
|
+
|
|
127
|
+
### extractLinkHeader()
|
|
128
|
+
|
|
129
|
+
> `static` **extractLinkHeader**(`linkHeader`): \{ `url`: `string`; `urlQueryParams?`: \{\[`id`: `string`\]: `string`; \}; `rel`: `string`; `params?`: \{\[`id`: `string`\]: `string`; \}; \} \| `undefined`
|
|
130
|
+
|
|
131
|
+
Extract the properties from a Link header.
|
|
132
|
+
|
|
133
|
+
#### Parameters
|
|
134
|
+
|
|
135
|
+
##### linkHeader
|
|
136
|
+
|
|
137
|
+
`string`
|
|
138
|
+
|
|
139
|
+
The Link header value in format `<url>; rel="..."; param1=""; param2=""`.
|
|
140
|
+
|
|
141
|
+
#### Returns
|
|
142
|
+
|
|
143
|
+
\{ `url`: `string`; `urlQueryParams?`: \{\[`id`: `string`\]: `string`; \}; `rel`: `string`; `params?`: \{\[`id`: `string`\]: `string`; \}; \} \| `undefined`
|
|
144
|
+
|
|
145
|
+
The extracted URL, rel and optional params or undefined if invalid/missing.
|
|
146
|
+
|
|
147
|
+
#### See
|
|
148
|
+
|
|
149
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
150
|
+
|
|
151
|
+
***
|
|
152
|
+
|
|
153
|
+
### createLinkHeader()
|
|
154
|
+
|
|
155
|
+
> `static` **createLinkHeader**(`url`, `urlQueryParams`, `rel`, `params?`): `string`
|
|
156
|
+
|
|
157
|
+
Create a compliant Link header.
|
|
158
|
+
|
|
159
|
+
#### Parameters
|
|
160
|
+
|
|
161
|
+
##### url
|
|
162
|
+
|
|
163
|
+
`string`
|
|
164
|
+
|
|
165
|
+
The URL to include in the Link header.
|
|
166
|
+
|
|
167
|
+
##### urlQueryParams
|
|
168
|
+
|
|
169
|
+
Optional query parameters to include in the URL.
|
|
170
|
+
|
|
171
|
+
\{\[`id`: `string`\]: `string`; \} | `undefined`
|
|
172
|
+
|
|
173
|
+
##### rel
|
|
174
|
+
|
|
175
|
+
`string`
|
|
176
|
+
|
|
177
|
+
The relation type (e.g., "next", "prev", "self").
|
|
178
|
+
|
|
179
|
+
##### params?
|
|
180
|
+
|
|
181
|
+
#### Returns
|
|
182
|
+
|
|
183
|
+
`string`
|
|
184
|
+
|
|
185
|
+
The formatted Link header string.
|
|
186
|
+
|
|
187
|
+
#### Throws
|
|
188
|
+
|
|
189
|
+
GeneralError if the URL or rel are invalid.
|
|
190
|
+
|
|
191
|
+
#### See
|
|
192
|
+
|
|
193
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
package/docs/reference/index.md
CHANGED
|
@@ -12,44 +12,316 @@ Common http header types.
|
|
|
12
12
|
|
|
13
13
|
Content Type.
|
|
14
14
|
|
|
15
|
+
#### See
|
|
16
|
+
|
|
17
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
|
|
18
|
+
|
|
19
|
+
### 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
|
+
|
|
15
29
|
### ContentLength
|
|
16
30
|
|
|
17
31
|
> `readonly` **ContentLength**: `"content-length"` = `"content-length"`
|
|
18
32
|
|
|
19
33
|
Content Length.
|
|
20
34
|
|
|
35
|
+
#### See
|
|
36
|
+
|
|
37
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length
|
|
38
|
+
|
|
21
39
|
### ContentDisposition
|
|
22
40
|
|
|
23
41
|
> `readonly` **ContentDisposition**: `"content-disposition"` = `"content-disposition"`
|
|
24
42
|
|
|
25
43
|
Content Disposition.
|
|
26
44
|
|
|
45
|
+
#### See
|
|
46
|
+
|
|
47
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
|
|
48
|
+
|
|
49
|
+
### 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
+
|
|
27
109
|
### Accept
|
|
28
110
|
|
|
29
111
|
> `readonly` **Accept**: `"accept"` = `"accept"`
|
|
30
112
|
|
|
31
113
|
Accept.
|
|
32
114
|
|
|
115
|
+
#### See
|
|
116
|
+
|
|
117
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept
|
|
118
|
+
|
|
119
|
+
### 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
|
|
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
|
+
|
|
33
139
|
### Authorization
|
|
34
140
|
|
|
35
141
|
> `readonly` **Authorization**: `"authorization"` = `"authorization"`
|
|
36
142
|
|
|
37
143
|
Authorization.
|
|
38
144
|
|
|
145
|
+
#### See
|
|
146
|
+
|
|
147
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization
|
|
148
|
+
|
|
149
|
+
### 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
|
+
|
|
39
159
|
### Cookie
|
|
40
160
|
|
|
41
161
|
> `readonly` **Cookie**: `"cookie"` = `"cookie"`
|
|
42
162
|
|
|
43
163
|
Cookie.
|
|
44
164
|
|
|
165
|
+
#### See
|
|
166
|
+
|
|
167
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cookie
|
|
168
|
+
|
|
45
169
|
### SetCookie
|
|
46
170
|
|
|
47
171
|
> `readonly` **SetCookie**: `"set-cookie"` = `"set-cookie"`
|
|
48
172
|
|
|
49
173
|
Set Cookie.
|
|
50
174
|
|
|
175
|
+
#### See
|
|
176
|
+
|
|
177
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie
|
|
178
|
+
|
|
51
179
|
### 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
@@ -10,34 +10,88 @@ The names of the HTTP Methods.
|
|
|
10
10
|
|
|
11
11
|
> `readonly` **GET**: `"GET"` = `"GET"`
|
|
12
12
|
|
|
13
|
+
Retrieve a representation of the resource.
|
|
14
|
+
|
|
15
|
+
#### See
|
|
16
|
+
|
|
17
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET
|
|
18
|
+
|
|
13
19
|
### POST
|
|
14
20
|
|
|
15
21
|
> `readonly` **POST**: `"POST"` = `"POST"`
|
|
16
22
|
|
|
23
|
+
Submit an entity to the specified resource.
|
|
24
|
+
|
|
25
|
+
#### See
|
|
26
|
+
|
|
27
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST
|
|
28
|
+
|
|
17
29
|
### PUT
|
|
18
30
|
|
|
19
31
|
> `readonly` **PUT**: `"PUT"` = `"PUT"`
|
|
20
32
|
|
|
33
|
+
Replace all current representations of the target resource.
|
|
34
|
+
|
|
35
|
+
#### See
|
|
36
|
+
|
|
37
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT
|
|
38
|
+
|
|
21
39
|
### PATCH
|
|
22
40
|
|
|
23
41
|
> `readonly` **PATCH**: `"PATCH"` = `"PATCH"`
|
|
24
42
|
|
|
43
|
+
Apply partial modifications to a resource.
|
|
44
|
+
|
|
45
|
+
#### See
|
|
46
|
+
|
|
47
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH
|
|
48
|
+
|
|
25
49
|
### DELETE
|
|
26
50
|
|
|
27
51
|
> `readonly` **DELETE**: `"DELETE"` = `"DELETE"`
|
|
28
52
|
|
|
53
|
+
Delete the specified resource.
|
|
54
|
+
|
|
55
|
+
#### See
|
|
56
|
+
|
|
57
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE
|
|
58
|
+
|
|
29
59
|
### OPTIONS
|
|
30
60
|
|
|
31
61
|
> `readonly` **OPTIONS**: `"OPTIONS"` = `"OPTIONS"`
|
|
32
62
|
|
|
63
|
+
Describe the communication options for the target resource.
|
|
64
|
+
|
|
65
|
+
#### See
|
|
66
|
+
|
|
67
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS
|
|
68
|
+
|
|
33
69
|
### HEAD
|
|
34
70
|
|
|
35
71
|
> `readonly` **HEAD**: `"HEAD"` = `"HEAD"`
|
|
36
72
|
|
|
73
|
+
Ask for a response identical to GET, but without the response body.
|
|
74
|
+
|
|
75
|
+
#### See
|
|
76
|
+
|
|
77
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD
|
|
78
|
+
|
|
37
79
|
### CONNECT
|
|
38
80
|
|
|
39
81
|
> `readonly` **CONNECT**: `"CONNECT"` = `"CONNECT"`
|
|
40
82
|
|
|
83
|
+
Establish a tunnel to the server identified by the target resource.
|
|
84
|
+
|
|
85
|
+
#### See
|
|
86
|
+
|
|
87
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT
|
|
88
|
+
|
|
41
89
|
### TRACE
|
|
42
90
|
|
|
43
91
|
> `readonly` **TRACE**: `"TRACE"` = `"TRACE"`
|
|
92
|
+
|
|
93
|
+
Perform a message loop-back test along the path to the target resource.
|
|
94
|
+
|
|
95
|
+
#### See
|
|
96
|
+
|
|
97
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/TRACE
|