@twin.org/web 0.0.3-next.3 → 0.0.3-next.31
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/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/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/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 +612 -1
- 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 -12
- 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 -0
- package/package.json +6 -6
package/README.md
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
export * from "./errors/fetchError.js";
|
|
4
4
|
export * from "./models/headerTypes.js";
|
|
5
|
+
export * from "./models/httpLinkRelType.js";
|
|
5
6
|
export * from "./models/httpMethod.js";
|
|
6
7
|
export * from "./models/httpStatusCode.js";
|
|
7
8
|
export * from "./models/IFetchOptions.js";
|
|
8
9
|
export * from "./models/IHttpHeaders.js";
|
|
10
|
+
export * from "./models/IHttpLinkHeader.js";
|
|
9
11
|
export * from "./models/IJwk.js";
|
|
10
12
|
export * from "./models/IJwtHeader.js";
|
|
11
13
|
export * from "./models/IJwtPayload.js";
|
|
12
14
|
export * from "./models/jwkCryptoKey.js";
|
|
13
15
|
export * from "./models/mimeTypes.js";
|
|
16
|
+
export * from "./utils/cookieHelper.js";
|
|
14
17
|
export * from "./utils/fetchHelper.js";
|
|
15
18
|
export * from "./utils/headerHelper.js";
|
|
16
19
|
export * from "./utils/jwk.js";
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./errors/fetchError.js\";\nexport * from \"./models/headerTypes.js\";\nexport * from \"./models/httpMethod.js\";\nexport * from \"./models/httpStatusCode.js\";\nexport * from \"./models/IFetchOptions.js\";\nexport * from \"./models/IHttpHeaders.js\";\nexport * from \"./models/IJwk.js\";\nexport * from \"./models/IJwtHeader.js\";\nexport * from \"./models/IJwtPayload.js\";\nexport * from \"./models/jwkCryptoKey.js\";\nexport * from \"./models/mimeTypes.js\";\nexport * from \"./utils/fetchHelper.js\";\nexport * from \"./utils/headerHelper.js\";\nexport * from \"./utils/jwk.js\";\nexport * from \"./utils/jws.js\";\nexport * from \"./utils/jwt.js\";\nexport * from \"./utils/mimeTypeHelper.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./errors/fetchError.js\";\nexport * from \"./models/headerTypes.js\";\nexport * from \"./models/httpLinkRelType.js\";\nexport * from \"./models/httpMethod.js\";\nexport * from \"./models/httpStatusCode.js\";\nexport * from \"./models/IFetchOptions.js\";\nexport * from \"./models/IHttpHeaders.js\";\nexport * from \"./models/IHttpLinkHeader.js\";\nexport * from \"./models/IJwk.js\";\nexport * from \"./models/IJwtHeader.js\";\nexport * from \"./models/IJwtPayload.js\";\nexport * from \"./models/jwkCryptoKey.js\";\nexport * from \"./models/mimeTypes.js\";\nexport * from \"./utils/cookieHelper.js\";\nexport * from \"./utils/fetchHelper.js\";\nexport * from \"./utils/headerHelper.js\";\nexport * from \"./utils/jwk.js\";\nexport * from \"./utils/jws.js\";\nexport * from \"./utils/jwt.js\";\nexport * from \"./utils/mimeTypeHelper.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHttpLinkHeader.js","sourceRoot":"","sources":["../../../src/models/IHttpLinkHeader.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HttpLinkRelType } from \"./httpLinkRelType.js\";\n\n/**\n * Model used for Http link headers parameter.\n */\nexport interface IHttpLinkHeader {\n\t/**\n\t * The URL of the link.\n\t */\n\turl: string;\n\n\t/**\n\t * Optional query parameters for the URL.\n\t */\n\turlQueryParams?: { [id: string]: string };\n\n\t/**\n\t * The relation types of the link.\n\t */\n\trel: (string | HttpLinkRelType)[];\n\n\t/**\n\t * Optional additional parameters for the link.\n\t */\n\tparams?: { [id: string]: string };\n}\n"]}
|
|
@@ -7,35 +7,163 @@
|
|
|
7
7
|
export const HeaderTypes = {
|
|
8
8
|
/**
|
|
9
9
|
* Content Type.
|
|
10
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
|
|
10
11
|
*/
|
|
11
12
|
ContentType: "content-type",
|
|
13
|
+
/**
|
|
14
|
+
* Content Language.
|
|
15
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language
|
|
16
|
+
*/
|
|
17
|
+
ContentLanguage: "content-language",
|
|
12
18
|
/**
|
|
13
19
|
* Content Length.
|
|
20
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length
|
|
14
21
|
*/
|
|
15
22
|
ContentLength: "content-length",
|
|
16
23
|
/**
|
|
17
24
|
* Content Disposition.
|
|
25
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
|
|
18
26
|
*/
|
|
19
27
|
ContentDisposition: "content-disposition",
|
|
28
|
+
/**
|
|
29
|
+
* Content Encoding.
|
|
30
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
|
|
31
|
+
*/
|
|
32
|
+
ContentEncoding: "content-encoding",
|
|
33
|
+
/**
|
|
34
|
+
* Cache Control.
|
|
35
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
|
|
36
|
+
*/
|
|
37
|
+
CacheControl: "cache-control",
|
|
38
|
+
/**
|
|
39
|
+
* ETag.
|
|
40
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
|
|
41
|
+
*/
|
|
42
|
+
ETag: "etag",
|
|
43
|
+
/**
|
|
44
|
+
* If-None-Match.
|
|
45
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match
|
|
46
|
+
*/
|
|
47
|
+
IfNoneMatch: "if-none-match",
|
|
48
|
+
/**
|
|
49
|
+
* Last-Modified.
|
|
50
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
|
|
51
|
+
*/
|
|
52
|
+
LastModified: "last-modified",
|
|
53
|
+
/**
|
|
54
|
+
* If-Modified-Since.
|
|
55
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since
|
|
56
|
+
*/
|
|
57
|
+
IfModifiedSince: "if-modified-since",
|
|
20
58
|
/**
|
|
21
59
|
* Accept.
|
|
60
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept
|
|
22
61
|
*/
|
|
23
62
|
Accept: "accept",
|
|
63
|
+
/**
|
|
64
|
+
* Accept-Language.
|
|
65
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Language
|
|
66
|
+
*/
|
|
67
|
+
AcceptLanguage: "accept-language",
|
|
68
|
+
/**
|
|
69
|
+
* Accept-Encoding.
|
|
70
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding
|
|
71
|
+
*/
|
|
72
|
+
AcceptEncoding: "accept-encoding",
|
|
24
73
|
/**
|
|
25
74
|
* Authorization.
|
|
75
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization
|
|
26
76
|
*/
|
|
27
77
|
Authorization: "authorization",
|
|
78
|
+
/**
|
|
79
|
+
* WWW-Authenticate.
|
|
80
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate
|
|
81
|
+
*/
|
|
82
|
+
WwwAuthenticate: "www-authenticate",
|
|
28
83
|
/**
|
|
29
84
|
* Cookie.
|
|
85
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cookie
|
|
30
86
|
*/
|
|
31
87
|
Cookie: "cookie",
|
|
32
88
|
/**
|
|
33
89
|
* Set Cookie.
|
|
90
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie
|
|
34
91
|
*/
|
|
35
92
|
SetCookie: "set-cookie",
|
|
36
93
|
/**
|
|
37
94
|
* Location
|
|
95
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location
|
|
96
|
+
*/
|
|
97
|
+
Location: "location",
|
|
98
|
+
/**
|
|
99
|
+
* Origin.
|
|
100
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
|
|
101
|
+
*/
|
|
102
|
+
Origin: "origin",
|
|
103
|
+
/**
|
|
104
|
+
* Referer.
|
|
105
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer
|
|
106
|
+
*/
|
|
107
|
+
Referer: "referer",
|
|
108
|
+
/**
|
|
109
|
+
* Link
|
|
110
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
111
|
+
*/
|
|
112
|
+
Link: "link",
|
|
113
|
+
/**
|
|
114
|
+
* Vary.
|
|
115
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary
|
|
116
|
+
*/
|
|
117
|
+
Vary: "vary",
|
|
118
|
+
/**
|
|
119
|
+
* Access-Control-Allow-Origin.
|
|
120
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
|
|
121
|
+
*/
|
|
122
|
+
AccessControlAllowOrigin: "access-control-allow-origin",
|
|
123
|
+
/**
|
|
124
|
+
* Access-Control-Allow-Methods.
|
|
125
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods
|
|
126
|
+
*/
|
|
127
|
+
AccessControlAllowMethods: "access-control-allow-methods",
|
|
128
|
+
/**
|
|
129
|
+
* Access-Control-Allow-Headers.
|
|
130
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers
|
|
131
|
+
*/
|
|
132
|
+
AccessControlAllowHeaders: "access-control-allow-headers",
|
|
133
|
+
/**
|
|
134
|
+
* Access-Control-Expose-Headers.
|
|
135
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers
|
|
136
|
+
*/
|
|
137
|
+
AccessControlExposeHeaders: "access-control-expose-headers",
|
|
138
|
+
/**
|
|
139
|
+
* Access-Control-Max-Age.
|
|
140
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age
|
|
141
|
+
*/
|
|
142
|
+
AccessControlMaxAge: "access-control-max-age",
|
|
143
|
+
/**
|
|
144
|
+
* Access-Control-Allow-Credentials.
|
|
145
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials
|
|
146
|
+
*/
|
|
147
|
+
AccessControlAllowCredentials: "access-control-allow-credentials",
|
|
148
|
+
/**
|
|
149
|
+
* Range.
|
|
150
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range
|
|
151
|
+
*/
|
|
152
|
+
Range: "range",
|
|
153
|
+
/**
|
|
154
|
+
* Accept-Ranges.
|
|
155
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges
|
|
156
|
+
*/
|
|
157
|
+
AcceptRanges: "accept-ranges",
|
|
158
|
+
/**
|
|
159
|
+
* Content-Range.
|
|
160
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range
|
|
161
|
+
*/
|
|
162
|
+
ContentRange: "content-range",
|
|
163
|
+
/**
|
|
164
|
+
* User-Agent
|
|
165
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
|
|
38
166
|
*/
|
|
39
|
-
|
|
167
|
+
UserAgent: "user-agent"
|
|
40
168
|
};
|
|
41
169
|
//# sourceMappingURL=headerTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headerTypes.js","sourceRoot":"","sources":["../../../src/models/headerTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B
|
|
1
|
+
{"version":3,"file":"headerTypes.js","sourceRoot":"","sources":["../../../src/models/headerTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;;;OAGG;IACH,WAAW,EAAE,cAAc;IAE3B;;;OAGG;IACH,eAAe,EAAE,kBAAkB;IAEnC;;;OAGG;IACH,aAAa,EAAE,gBAAgB;IAE/B;;;OAGG;IACH,kBAAkB,EAAE,qBAAqB;IAEzC;;;OAGG;IACH,eAAe,EAAE,kBAAkB;IAEnC;;;OAGG;IACH,YAAY,EAAE,eAAe;IAE7B;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,WAAW,EAAE,eAAe;IAE5B;;;OAGG;IACH,YAAY,EAAE,eAAe;IAE7B;;;OAGG;IACH,eAAe,EAAE,mBAAmB;IAEpC;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;;OAGG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;;OAGG;IACH,aAAa,EAAE,eAAe;IAE9B;;;OAGG;IACH,eAAe,EAAE,kBAAkB;IAEnC;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,SAAS,EAAE,YAAY;IAEvB;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,OAAO,EAAE,SAAS;IAElB;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,wBAAwB,EAAE,6BAA6B;IAEvD;;;OAGG;IACH,yBAAyB,EAAE,8BAA8B;IAEzD;;;OAGG;IACH,yBAAyB,EAAE,8BAA8B;IAEzD;;;OAGG;IACH,0BAA0B,EAAE,+BAA+B;IAE3D;;;OAGG;IACH,mBAAmB,EAAE,wBAAwB;IAE7C;;;OAGG;IACH,6BAA6B,EAAE,kCAAkC;IAEjE;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,YAAY,EAAE,eAAe;IAE7B;;;OAGG;IACH,YAAY,EAAE,eAAe;IAE7B;;;OAGG;IACH,SAAS,EAAE,YAAY;CACd,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Common http header types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HeaderTypes = {\n\t/**\n\t * Content Type.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type\n\t */\n\tContentType: \"content-type\",\n\n\t/**\n\t * Content Language.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language\n\t */\n\tContentLanguage: \"content-language\",\n\n\t/**\n\t * Content Length.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length\n\t */\n\tContentLength: \"content-length\",\n\n\t/**\n\t * Content Disposition.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition\n\t */\n\tContentDisposition: \"content-disposition\",\n\n\t/**\n\t * Content Encoding.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding\n\t */\n\tContentEncoding: \"content-encoding\",\n\n\t/**\n\t * Cache Control.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control\n\t */\n\tCacheControl: \"cache-control\",\n\n\t/**\n\t * ETag.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag\n\t */\n\tETag: \"etag\",\n\n\t/**\n\t * If-None-Match.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match\n\t */\n\tIfNoneMatch: \"if-none-match\",\n\n\t/**\n\t * Last-Modified.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified\n\t */\n\tLastModified: \"last-modified\",\n\n\t/**\n\t * If-Modified-Since.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since\n\t */\n\tIfModifiedSince: \"if-modified-since\",\n\n\t/**\n\t * Accept.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept\n\t */\n\tAccept: \"accept\",\n\n\t/**\n\t * Accept-Language.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Language\n\t */\n\tAcceptLanguage: \"accept-language\",\n\n\t/**\n\t * Accept-Encoding.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding\n\t */\n\tAcceptEncoding: \"accept-encoding\",\n\n\t/**\n\t * Authorization.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization\n\t */\n\tAuthorization: \"authorization\",\n\n\t/**\n\t * WWW-Authenticate.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate\n\t */\n\tWwwAuthenticate: \"www-authenticate\",\n\n\t/**\n\t * Cookie.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cookie\n\t */\n\tCookie: \"cookie\",\n\n\t/**\n\t * Set Cookie.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\n\t */\n\tSetCookie: \"set-cookie\",\n\n\t/**\n\t * Location\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location\n\t */\n\tLocation: \"location\",\n\n\t/**\n\t * Origin.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin\n\t */\n\tOrigin: \"origin\",\n\n\t/**\n\t * Referer.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer\n\t */\n\tReferer: \"referer\",\n\n\t/**\n\t * Link\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link\n\t */\n\tLink: \"link\",\n\n\t/**\n\t * Vary.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary\n\t */\n\tVary: \"vary\",\n\n\t/**\n\t * Access-Control-Allow-Origin.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin\n\t */\n\tAccessControlAllowOrigin: \"access-control-allow-origin\",\n\n\t/**\n\t * Access-Control-Allow-Methods.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods\n\t */\n\tAccessControlAllowMethods: \"access-control-allow-methods\",\n\n\t/**\n\t * Access-Control-Allow-Headers.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers\n\t */\n\tAccessControlAllowHeaders: \"access-control-allow-headers\",\n\n\t/**\n\t * Access-Control-Expose-Headers.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers\n\t */\n\tAccessControlExposeHeaders: \"access-control-expose-headers\",\n\n\t/**\n\t * Access-Control-Max-Age.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age\n\t */\n\tAccessControlMaxAge: \"access-control-max-age\",\n\n\t/**\n\t * Access-Control-Allow-Credentials.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials\n\t */\n\tAccessControlAllowCredentials: \"access-control-allow-credentials\",\n\n\t/**\n\t * Range.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range\n\t */\n\tRange: \"range\",\n\n\t/**\n\t * Accept-Ranges.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges\n\t */\n\tAcceptRanges: \"accept-ranges\",\n\n\t/**\n\t * Content-Range.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range\n\t */\n\tContentRange: \"content-range\",\n\n\t/**\n\t * User-Agent\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent\n\t */\n\tUserAgent: \"user-agent\"\n} as const;\n\n/**\n * Common http header types.\n */\nexport type HeaderTypes = (typeof HeaderTypes)[keyof typeof HeaderTypes];\n"]}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Common HTML rel attribute values.
|
|
5
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const HttpLinkRelType = {
|
|
9
|
+
/**
|
|
10
|
+
* Alternate representation of the current document.
|
|
11
|
+
*/
|
|
12
|
+
alternate: "alternate",
|
|
13
|
+
/**
|
|
14
|
+
* Author of the current document or article.
|
|
15
|
+
*/
|
|
16
|
+
author: "author",
|
|
17
|
+
/**
|
|
18
|
+
* Permalink for the nearest ancestor section.
|
|
19
|
+
*/
|
|
20
|
+
bookmark: "bookmark",
|
|
21
|
+
/**
|
|
22
|
+
* Preferred URL for the current document.
|
|
23
|
+
*/
|
|
24
|
+
canonical: "canonical",
|
|
25
|
+
/**
|
|
26
|
+
* Compression dictionary for future downloads.
|
|
27
|
+
*/
|
|
28
|
+
compressionDictionary: "compression-dictionary",
|
|
29
|
+
/**
|
|
30
|
+
* Hint to perform DNS resolution in advance.
|
|
31
|
+
*/
|
|
32
|
+
dnsPrefetch: "dns-prefetch",
|
|
33
|
+
/**
|
|
34
|
+
* The referenced document is external to the current site.
|
|
35
|
+
*/
|
|
36
|
+
external: "external",
|
|
37
|
+
/**
|
|
38
|
+
* Allows render-blocking until essential parts are parsed.
|
|
39
|
+
*/
|
|
40
|
+
expect: "expect",
|
|
41
|
+
/**
|
|
42
|
+
* Link to context-sensitive help.
|
|
43
|
+
*/
|
|
44
|
+
help: "help",
|
|
45
|
+
/**
|
|
46
|
+
* Icon representing the current document.
|
|
47
|
+
*/
|
|
48
|
+
icon: "icon",
|
|
49
|
+
/**
|
|
50
|
+
* Licensing information for the current document.
|
|
51
|
+
*/
|
|
52
|
+
license: "license",
|
|
53
|
+
/**
|
|
54
|
+
* Web application manifest.
|
|
55
|
+
*/
|
|
56
|
+
manifest: "manifest",
|
|
57
|
+
/**
|
|
58
|
+
* Indicates the current document represents the linked identity.
|
|
59
|
+
*/
|
|
60
|
+
me: "me",
|
|
61
|
+
/**
|
|
62
|
+
* Pre-emptively fetch a module and optionally its dependencies.
|
|
63
|
+
*/
|
|
64
|
+
modulePreload: "modulepreload",
|
|
65
|
+
/**
|
|
66
|
+
* The next document in a series.
|
|
67
|
+
*/
|
|
68
|
+
next: "next",
|
|
69
|
+
/**
|
|
70
|
+
* The current document does not endorse the referenced document.
|
|
71
|
+
*/
|
|
72
|
+
nofollow: "nofollow",
|
|
73
|
+
/**
|
|
74
|
+
* Prevent access to the originating browsing context.
|
|
75
|
+
*/
|
|
76
|
+
noopener: "noopener",
|
|
77
|
+
/**
|
|
78
|
+
* Suppress the Referer header and implies noopener.
|
|
79
|
+
*/
|
|
80
|
+
noreferrer: "noreferrer",
|
|
81
|
+
/**
|
|
82
|
+
* Allow access to the originating browsing context.
|
|
83
|
+
*/
|
|
84
|
+
opener: "opener",
|
|
85
|
+
/**
|
|
86
|
+
* Address of the pingback server for the current document.
|
|
87
|
+
*/
|
|
88
|
+
pingback: "pingback",
|
|
89
|
+
/**
|
|
90
|
+
* Hint to connect to the target origin in advance.
|
|
91
|
+
*/
|
|
92
|
+
preconnect: "preconnect",
|
|
93
|
+
/**
|
|
94
|
+
* Hint to fetch and cache a likely next resource.
|
|
95
|
+
*/
|
|
96
|
+
prefetch: "prefetch",
|
|
97
|
+
/**
|
|
98
|
+
* Hint to fetch and cache a resource for the current navigation.
|
|
99
|
+
*/
|
|
100
|
+
preload: "preload",
|
|
101
|
+
/**
|
|
102
|
+
* Deprecated hint to fetch and process a target in advance.
|
|
103
|
+
*/
|
|
104
|
+
prerender: "prerender",
|
|
105
|
+
/**
|
|
106
|
+
* The previous document in a series.
|
|
107
|
+
*/
|
|
108
|
+
prev: "prev",
|
|
109
|
+
/**
|
|
110
|
+
* Privacy policy for the current document.
|
|
111
|
+
*/
|
|
112
|
+
privacyPolicy: "privacy-policy",
|
|
113
|
+
/**
|
|
114
|
+
* Search resource for the current document or related resources.
|
|
115
|
+
*/
|
|
116
|
+
search: "search",
|
|
117
|
+
/**
|
|
118
|
+
* External stylesheet for the current document.
|
|
119
|
+
*/
|
|
120
|
+
stylesheet: "stylesheet",
|
|
121
|
+
/**
|
|
122
|
+
* Tag applying to the current document.
|
|
123
|
+
*/
|
|
124
|
+
tag: "tag",
|
|
125
|
+
/**
|
|
126
|
+
* Terms of service for the current document.
|
|
127
|
+
*/
|
|
128
|
+
termsOfService: "terms-of-service"
|
|
129
|
+
};
|
|
130
|
+
//# sourceMappingURL=httpLinkRelType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpLinkRelType.js","sourceRoot":"","sources":["../../../src/models/httpLinkRelType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,qBAAqB,EAAE,wBAAwB;IAE/C;;OAEG;IACH,WAAW,EAAE,cAAc;IAE3B;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,EAAE,EAAE,IAAI;IAER;;OAEG;IACH,aAAa,EAAE,eAAe;IAE9B;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,aAAa,EAAE,gBAAgB;IAE/B;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,GAAG,EAAE,KAAK;IAEV;;OAEG;IACH,cAAc,EAAE,kBAAkB;CACzB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Common HTML rel attribute values.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HttpLinkRelType = {\n\t/**\n\t * Alternate representation of the current document.\n\t */\n\talternate: \"alternate\",\n\n\t/**\n\t * Author of the current document or article.\n\t */\n\tauthor: \"author\",\n\n\t/**\n\t * Permalink for the nearest ancestor section.\n\t */\n\tbookmark: \"bookmark\",\n\n\t/**\n\t * Preferred URL for the current document.\n\t */\n\tcanonical: \"canonical\",\n\n\t/**\n\t * Compression dictionary for future downloads.\n\t */\n\tcompressionDictionary: \"compression-dictionary\",\n\n\t/**\n\t * Hint to perform DNS resolution in advance.\n\t */\n\tdnsPrefetch: \"dns-prefetch\",\n\n\t/**\n\t * The referenced document is external to the current site.\n\t */\n\texternal: \"external\",\n\n\t/**\n\t * Allows render-blocking until essential parts are parsed.\n\t */\n\texpect: \"expect\",\n\n\t/**\n\t * Link to context-sensitive help.\n\t */\n\thelp: \"help\",\n\n\t/**\n\t * Icon representing the current document.\n\t */\n\ticon: \"icon\",\n\n\t/**\n\t * Licensing information for the current document.\n\t */\n\tlicense: \"license\",\n\n\t/**\n\t * Web application manifest.\n\t */\n\tmanifest: \"manifest\",\n\n\t/**\n\t * Indicates the current document represents the linked identity.\n\t */\n\tme: \"me\",\n\n\t/**\n\t * Pre-emptively fetch a module and optionally its dependencies.\n\t */\n\tmodulePreload: \"modulepreload\",\n\n\t/**\n\t * The next document in a series.\n\t */\n\tnext: \"next\",\n\n\t/**\n\t * The current document does not endorse the referenced document.\n\t */\n\tnofollow: \"nofollow\",\n\n\t/**\n\t * Prevent access to the originating browsing context.\n\t */\n\tnoopener: \"noopener\",\n\n\t/**\n\t * Suppress the Referer header and implies noopener.\n\t */\n\tnoreferrer: \"noreferrer\",\n\n\t/**\n\t * Allow access to the originating browsing context.\n\t */\n\topener: \"opener\",\n\n\t/**\n\t * Address of the pingback server for the current document.\n\t */\n\tpingback: \"pingback\",\n\n\t/**\n\t * Hint to connect to the target origin in advance.\n\t */\n\tpreconnect: \"preconnect\",\n\n\t/**\n\t * Hint to fetch and cache a likely next resource.\n\t */\n\tprefetch: \"prefetch\",\n\n\t/**\n\t * Hint to fetch and cache a resource for the current navigation.\n\t */\n\tpreload: \"preload\",\n\n\t/**\n\t * Deprecated hint to fetch and process a target in advance.\n\t */\n\tprerender: \"prerender\",\n\n\t/**\n\t * The previous document in a series.\n\t */\n\tprev: \"prev\",\n\n\t/**\n\t * Privacy policy for the current document.\n\t */\n\tprivacyPolicy: \"privacy-policy\",\n\n\t/**\n\t * Search resource for the current document or related resources.\n\t */\n\tsearch: \"search\",\n\n\t/**\n\t * External stylesheet for the current document.\n\t */\n\tstylesheet: \"stylesheet\",\n\n\t/**\n\t * Tag applying to the current document.\n\t */\n\ttag: \"tag\",\n\n\t/**\n\t * Terms of service for the current document.\n\t */\n\ttermsOfService: \"terms-of-service\"\n} as const;\n\n/**\n * Common HTML rel attribute values.\n */\nexport type HttpLinkRelType = (typeof HttpLinkRelType)[keyof typeof HttpLinkRelType];\n"]}
|
|
@@ -5,14 +5,50 @@
|
|
|
5
5
|
*/
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const HttpMethod = {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve a representation of the resource.
|
|
10
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET
|
|
11
|
+
*/
|
|
8
12
|
GET: "GET",
|
|
13
|
+
/**
|
|
14
|
+
* Submit an entity to the specified resource.
|
|
15
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST
|
|
16
|
+
*/
|
|
9
17
|
POST: "POST",
|
|
18
|
+
/**
|
|
19
|
+
* Replace all current representations of the target resource.
|
|
20
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT
|
|
21
|
+
*/
|
|
10
22
|
PUT: "PUT",
|
|
23
|
+
/**
|
|
24
|
+
* Apply partial modifications to a resource.
|
|
25
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH
|
|
26
|
+
*/
|
|
11
27
|
PATCH: "PATCH",
|
|
28
|
+
/**
|
|
29
|
+
* Delete the specified resource.
|
|
30
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE
|
|
31
|
+
*/
|
|
12
32
|
DELETE: "DELETE",
|
|
33
|
+
/**
|
|
34
|
+
* Describe the communication options for the target resource.
|
|
35
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS
|
|
36
|
+
*/
|
|
13
37
|
OPTIONS: "OPTIONS",
|
|
38
|
+
/**
|
|
39
|
+
* Ask for a response identical to GET, but without the response body.
|
|
40
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD
|
|
41
|
+
*/
|
|
14
42
|
HEAD: "HEAD",
|
|
43
|
+
/**
|
|
44
|
+
* Establish a tunnel to the server identified by the target resource.
|
|
45
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT
|
|
46
|
+
*/
|
|
15
47
|
CONNECT: "CONNECT",
|
|
48
|
+
/**
|
|
49
|
+
* Perform a message loop-back test along the path to the target resource.
|
|
50
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/TRACE
|
|
51
|
+
*/
|
|
16
52
|
TRACE: "TRACE"
|
|
17
53
|
};
|
|
18
54
|
//# sourceMappingURL=httpMethod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpMethod.js","sourceRoot":"","sources":["../../../src/models/httpMethod.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACL,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The names of the HTTP Methods.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HttpMethod = {\n\tGET: \"GET\",\n\tPOST: \"POST\",\n\tPUT: \"PUT\",\n\tPATCH: \"PATCH\",\n\tDELETE: \"DELETE\",\n\tOPTIONS: \"OPTIONS\",\n\tHEAD: \"HEAD\",\n\tCONNECT: \"CONNECT\",\n\tTRACE: \"TRACE\"\n} as const;\n\n/**\n * The HTTP Methods.\n */\nexport type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];\n"]}
|
|
1
|
+
{"version":3,"file":"httpMethod.js","sourceRoot":"","sources":["../../../src/models/httpMethod.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB;;;OAGG;IACH,GAAG,EAAE,KAAK;IACV;;;OAGG;IACH,IAAI,EAAE,MAAM;IACZ;;;OAGG;IACH,GAAG,EAAE,KAAK;IACV;;;OAGG;IACH,KAAK,EAAE,OAAO;IACd;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAChB;;;OAGG;IACH,OAAO,EAAE,SAAS;IAClB;;;OAGG;IACH,IAAI,EAAE,MAAM;IACZ;;;OAGG;IACH,OAAO,EAAE,SAAS;IAClB;;;OAGG;IACH,KAAK,EAAE,OAAO;CACL,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The names of the HTTP Methods.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HttpMethod = {\n\t/**\n\t * Retrieve a representation of the resource.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET\n\t */\n\tGET: \"GET\",\n\t/**\n\t * Submit an entity to the specified resource.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST\n\t */\n\tPOST: \"POST\",\n\t/**\n\t * Replace all current representations of the target resource.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT\n\t */\n\tPUT: \"PUT\",\n\t/**\n\t * Apply partial modifications to a resource.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH\n\t */\n\tPATCH: \"PATCH\",\n\t/**\n\t * Delete the specified resource.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE\n\t */\n\tDELETE: \"DELETE\",\n\t/**\n\t * Describe the communication options for the target resource.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS\n\t */\n\tOPTIONS: \"OPTIONS\",\n\t/**\n\t * Ask for a response identical to GET, but without the response body.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD\n\t */\n\tHEAD: \"HEAD\",\n\t/**\n\t * Establish a tunnel to the server identified by the target resource.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT\n\t */\n\tCONNECT: \"CONNECT\",\n\t/**\n\t * Perform a message loop-back test along the path to the target resource.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/TRACE\n\t */\n\tTRACE: \"TRACE\"\n} as const;\n\n/**\n * The HTTP Methods.\n */\nexport type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];\n"]}
|