@twin.org/web 0.0.3-next.13 → 0.0.3-next.14
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/models/headerTypes.js +95 -0
- 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/mimeTypeHelper.js +42 -1
- package/dist/es/utils/mimeTypeHelper.js.map +1 -1
- package/dist/types/models/headerTypes.d.ts +95 -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/docs/changelog.md +20 -0
- package/docs/reference/variables/HeaderTypes.md +190 -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/package.json +4 -4
|
@@ -10,6 +10,11 @@ export const HeaderTypes = {
|
|
|
10
10
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
|
|
11
11
|
*/
|
|
12
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",
|
|
13
18
|
/**
|
|
14
19
|
* Content Length.
|
|
15
20
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length
|
|
@@ -25,6 +30,31 @@ export const HeaderTypes = {
|
|
|
25
30
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
|
|
26
31
|
*/
|
|
27
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",
|
|
28
58
|
/**
|
|
29
59
|
* Accept.
|
|
30
60
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept
|
|
@@ -45,6 +75,11 @@ export const HeaderTypes = {
|
|
|
45
75
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization
|
|
46
76
|
*/
|
|
47
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",
|
|
48
83
|
/**
|
|
49
84
|
* Cookie.
|
|
50
85
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cookie
|
|
@@ -60,11 +95,71 @@ export const HeaderTypes = {
|
|
|
60
95
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location
|
|
61
96
|
*/
|
|
62
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",
|
|
63
108
|
/**
|
|
64
109
|
* Link
|
|
65
110
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
66
111
|
*/
|
|
67
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",
|
|
68
163
|
/**
|
|
69
164
|
* User-Agent
|
|
70
165
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
|
|
@@ -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;;;OAGG;IACH,WAAW,EAAE,cAAc;IAE3B;;;OAGG;IACH,aAAa,EAAE,gBAAgB;IAE/B;;;OAGG;IACH,kBAAkB,EAAE,qBAAqB;IAEzC;;;OAGG;IACH,eAAe,EAAE,kBAAkB;IAEnC;;;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,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,SAAS,EAAE,YAAY;IAEvB;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;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 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 * 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 * 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 * 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 * 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"]}
|
|
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"]}
|
|
@@ -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"]}
|
|
@@ -2,255 +2,318 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
/**
|
|
4
4
|
* Standard HTTP status codes.
|
|
5
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status
|
|
5
6
|
*/
|
|
6
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
8
|
export const HttpStatusCode = {
|
|
8
9
|
/**
|
|
9
10
|
* Continue status code.
|
|
11
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100
|
|
10
12
|
*/
|
|
11
13
|
continue: 100,
|
|
12
14
|
/**
|
|
13
15
|
* Switching Protocols status code.
|
|
16
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101
|
|
14
17
|
*/
|
|
15
18
|
switchingProtocols: 101,
|
|
16
19
|
/**
|
|
17
20
|
* Processing status code.
|
|
21
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102
|
|
18
22
|
*/
|
|
19
23
|
processing: 102,
|
|
20
24
|
/**
|
|
21
25
|
* Early Hints status code.
|
|
26
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103
|
|
22
27
|
*/
|
|
23
28
|
earlyHints: 103,
|
|
24
29
|
/**
|
|
25
30
|
* OK status code.
|
|
31
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200
|
|
26
32
|
*/
|
|
27
33
|
ok: 200,
|
|
28
34
|
/**
|
|
29
35
|
* Created status code.
|
|
36
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201
|
|
30
37
|
*/
|
|
31
38
|
created: 201,
|
|
32
39
|
/**
|
|
33
40
|
* Accepted status code.
|
|
41
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202
|
|
34
42
|
*/
|
|
35
43
|
accepted: 202,
|
|
36
44
|
/**
|
|
37
45
|
* Non-Authoritative Information status code.
|
|
46
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203
|
|
38
47
|
*/
|
|
39
48
|
nonAuthoritativeInformation: 203,
|
|
40
49
|
/**
|
|
41
50
|
* No Content status code.
|
|
51
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204
|
|
42
52
|
*/
|
|
43
53
|
noContent: 204,
|
|
44
54
|
/**
|
|
45
55
|
* Reset Content status code.
|
|
56
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205
|
|
46
57
|
*/
|
|
47
58
|
resetContent: 205,
|
|
48
59
|
/**
|
|
49
60
|
* Partial Content status code.
|
|
61
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206
|
|
50
62
|
*/
|
|
51
63
|
partialContent: 206,
|
|
52
64
|
/**
|
|
53
65
|
* Multi-Status status code.
|
|
66
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/207
|
|
54
67
|
*/
|
|
55
68
|
multiStatus: 207,
|
|
56
69
|
/**
|
|
57
70
|
* Already Reported status code.
|
|
71
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208
|
|
58
72
|
*/
|
|
59
73
|
alreadyReported: 208,
|
|
60
74
|
/**
|
|
61
75
|
* IM Used status code.
|
|
76
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226
|
|
62
77
|
*/
|
|
63
78
|
imUsed: 226,
|
|
64
79
|
/**
|
|
65
80
|
* Multiple Choices status code.
|
|
81
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300
|
|
66
82
|
*/
|
|
67
83
|
multipleChoices: 300,
|
|
68
84
|
/**
|
|
69
85
|
* Moved Permanently status code.
|
|
86
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301
|
|
70
87
|
*/
|
|
71
88
|
movedPermanently: 301,
|
|
72
89
|
/**
|
|
73
90
|
* Found status code.
|
|
91
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302
|
|
74
92
|
*/
|
|
75
93
|
found: 302,
|
|
76
94
|
/**
|
|
77
95
|
* See Other status code.
|
|
96
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303
|
|
78
97
|
*/
|
|
79
98
|
seeOther: 303,
|
|
80
99
|
/**
|
|
81
100
|
* Not Modified status code.
|
|
101
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304
|
|
82
102
|
*/
|
|
83
103
|
notModified: 304,
|
|
84
104
|
/**
|
|
85
105
|
* Use Proxy status code.
|
|
106
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/305
|
|
86
107
|
*/
|
|
87
108
|
useProxy: 305,
|
|
88
109
|
/**
|
|
89
110
|
* Temporary Redirect status code.
|
|
111
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307
|
|
90
112
|
*/
|
|
91
113
|
temporaryRedirect: 307,
|
|
92
114
|
/**
|
|
93
115
|
* Permanent Redirect status code.
|
|
116
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308
|
|
94
117
|
*/
|
|
95
118
|
permanentRedirect: 308,
|
|
96
119
|
/**
|
|
97
120
|
* Bad Request status code.
|
|
121
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
|
|
98
122
|
*/
|
|
99
123
|
badRequest: 400,
|
|
100
124
|
/**
|
|
101
125
|
* Unauthorized status code.
|
|
126
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
|
|
102
127
|
*/
|
|
103
128
|
unauthorized: 401,
|
|
104
129
|
/**
|
|
105
130
|
* Payment Required status code.
|
|
131
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402
|
|
106
132
|
*/
|
|
107
133
|
paymentRequired: 402,
|
|
108
134
|
/**
|
|
109
135
|
* Forbidden status code.
|
|
136
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
|
|
110
137
|
*/
|
|
111
138
|
forbidden: 403,
|
|
112
139
|
/**
|
|
113
140
|
* Not Found status code.
|
|
141
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
|
|
114
142
|
*/
|
|
115
143
|
notFound: 404,
|
|
116
144
|
/**
|
|
117
145
|
* Method Not Allowed status code.
|
|
146
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
|
|
118
147
|
*/
|
|
119
148
|
methodNotAllowed: 405,
|
|
120
149
|
/**
|
|
121
150
|
* Not Acceptable status code.
|
|
151
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406
|
|
122
152
|
*/
|
|
123
153
|
notAcceptable: 406,
|
|
124
154
|
/**
|
|
125
155
|
* Proxy Authentication Required status code.
|
|
156
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407
|
|
126
157
|
*/
|
|
127
158
|
proxyAuthenticationRequired: 407,
|
|
128
159
|
/**
|
|
129
160
|
* Request Timeout status code.
|
|
161
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408
|
|
130
162
|
*/
|
|
131
163
|
requestTimeout: 408,
|
|
132
164
|
/**
|
|
133
165
|
* Conflict status code.
|
|
166
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409
|
|
134
167
|
*/
|
|
135
168
|
conflict: 409,
|
|
136
169
|
/**
|
|
137
170
|
* Gone status code.
|
|
171
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410
|
|
138
172
|
*/
|
|
139
173
|
gone: 410,
|
|
140
174
|
/**
|
|
141
175
|
* Length Required status code.
|
|
176
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411
|
|
142
177
|
*/
|
|
143
178
|
lengthRequired: 411,
|
|
144
179
|
/**
|
|
145
180
|
* Precondition Failed status code.
|
|
181
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412
|
|
146
182
|
*/
|
|
147
183
|
preconditionFailed: 412,
|
|
148
184
|
/**
|
|
149
185
|
* Payload Too Large status code.
|
|
186
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413
|
|
150
187
|
*/
|
|
151
188
|
payloadTooLarge: 413,
|
|
152
189
|
/**
|
|
153
190
|
* URI Too Long status code.
|
|
191
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414
|
|
154
192
|
*/
|
|
155
193
|
uriTooLong: 414,
|
|
156
194
|
/**
|
|
157
195
|
* Unsupported Media Type status code.
|
|
196
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415
|
|
158
197
|
*/
|
|
159
198
|
unsupportedMediaType: 415,
|
|
160
199
|
/**
|
|
161
200
|
* Range Not Satisfiable status code.
|
|
201
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416
|
|
162
202
|
*/
|
|
163
203
|
rangeNotSatisfiable: 416,
|
|
164
204
|
/**
|
|
165
205
|
* Expectation Failed status code.
|
|
206
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417
|
|
166
207
|
*/
|
|
167
208
|
expectationFailed: 417,
|
|
168
209
|
/**
|
|
169
210
|
* I'm a Teapot status code.
|
|
211
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418
|
|
170
212
|
*/
|
|
171
213
|
imATeapot: 418,
|
|
172
214
|
/**
|
|
173
215
|
* Misdirected Request status code.
|
|
216
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421
|
|
174
217
|
*/
|
|
175
218
|
misdirectedRequest: 421,
|
|
176
219
|
/**
|
|
177
220
|
* Unprocessable Entity status code.
|
|
221
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422
|
|
178
222
|
*/
|
|
179
223
|
unprocessableEntity: 422,
|
|
180
224
|
/**
|
|
181
225
|
* Locked status code.
|
|
226
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423
|
|
182
227
|
*/
|
|
183
228
|
locked: 423,
|
|
184
229
|
/**
|
|
185
230
|
* Failed Dependency status code.
|
|
231
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/424
|
|
186
232
|
*/
|
|
187
233
|
failedDependency: 424,
|
|
188
234
|
/**
|
|
189
235
|
* Too Early status code.
|
|
236
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425
|
|
190
237
|
*/
|
|
191
238
|
tooEarly: 425,
|
|
192
239
|
/**
|
|
193
240
|
* Upgrade Required status code.
|
|
241
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426
|
|
194
242
|
*/
|
|
195
243
|
upgradeRequired: 426,
|
|
196
244
|
/**
|
|
197
245
|
* Precondition Required status code.
|
|
246
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428
|
|
198
247
|
*/
|
|
199
248
|
preconditionRequired: 428,
|
|
200
249
|
/**
|
|
201
250
|
* Too Many Requests status code.
|
|
251
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429
|
|
202
252
|
*/
|
|
203
253
|
tooManyRequests: 429,
|
|
204
254
|
/**
|
|
205
255
|
* Request Header Fields Too Large status code.
|
|
256
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431
|
|
206
257
|
*/
|
|
207
258
|
requestHeaderFieldsTooLarge: 431,
|
|
208
259
|
/**
|
|
209
260
|
* Unavailable For Legal Reasons status code.
|
|
261
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451
|
|
210
262
|
*/
|
|
211
263
|
unavailableForLegalReasons: 451,
|
|
212
264
|
/**
|
|
213
265
|
* Internal Server Error status code.
|
|
266
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
|
|
214
267
|
*/
|
|
215
268
|
internalServerError: 500,
|
|
216
269
|
/**
|
|
217
270
|
* Not Implemented status code.
|
|
271
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501
|
|
218
272
|
*/
|
|
219
273
|
notImplemented: 501,
|
|
220
274
|
/**
|
|
221
275
|
* Bad Gateway status code.
|
|
276
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
|
|
222
277
|
*/
|
|
223
278
|
badGateway: 502,
|
|
224
279
|
/**
|
|
225
280
|
* Service Unavailable status code.
|
|
281
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503
|
|
226
282
|
*/
|
|
227
283
|
serviceUnavailable: 503,
|
|
228
284
|
/**
|
|
229
285
|
* Gateway Timeout status code.
|
|
286
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504
|
|
230
287
|
*/
|
|
231
288
|
gatewayTimeout: 504,
|
|
232
289
|
/**
|
|
233
290
|
* HTTP Version Not Supported status code.
|
|
291
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505
|
|
234
292
|
*/
|
|
235
293
|
httpVersionNotSupported: 505,
|
|
236
294
|
/**
|
|
237
295
|
* Variant Also Negotiates status code.
|
|
296
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506
|
|
238
297
|
*/
|
|
239
298
|
variantAlsoNegotiates: 506,
|
|
240
299
|
/**
|
|
241
300
|
* Insufficient Storage status code.
|
|
301
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507
|
|
242
302
|
*/
|
|
243
303
|
insufficientStorage: 507,
|
|
244
304
|
/**
|
|
245
305
|
* Loop Detected status code.
|
|
306
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508
|
|
246
307
|
*/
|
|
247
308
|
loopDetected: 508,
|
|
248
309
|
/**
|
|
249
310
|
* Not Extended status code.
|
|
311
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510
|
|
250
312
|
*/
|
|
251
313
|
notExtended: 510,
|
|
252
314
|
/**
|
|
253
315
|
* Network Authentication Required status code.
|
|
316
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511
|
|
254
317
|
*/
|
|
255
318
|
networkAuthenticationRequired: 511
|
|
256
319
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpStatusCode.js","sourceRoot":"","sources":["../../../src/models/httpStatusCode.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Standard HTTP status codes.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HttpStatusCode = {\n\t/**\n\t * Continue status code.\n\t */\n\tcontinue: 100,\n\n\t/**\n\t * Switching Protocols status code.\n\t */\n\tswitchingProtocols: 101,\n\n\t/**\n\t * Processing status code.\n\t */\n\tprocessing: 102,\n\n\t/**\n\t * Early Hints status code.\n\t */\n\tearlyHints: 103,\n\n\t/**\n\t * OK status code.\n\t */\n\tok: 200,\n\n\t/**\n\t * Created status code.\n\t */\n\tcreated: 201,\n\n\t/**\n\t * Accepted status code.\n\t */\n\taccepted: 202,\n\n\t/**\n\t * Non-Authoritative Information status code.\n\t */\n\tnonAuthoritativeInformation: 203,\n\n\t/**\n\t * No Content status code.\n\t */\n\tnoContent: 204,\n\n\t/**\n\t * Reset Content status code.\n\t */\n\tresetContent: 205,\n\n\t/**\n\t * Partial Content status code.\n\t */\n\tpartialContent: 206,\n\n\t/**\n\t * Multi-Status status code.\n\t */\n\tmultiStatus: 207,\n\n\t/**\n\t * Already Reported status code.\n\t */\n\talreadyReported: 208,\n\n\t/**\n\t * IM Used status code.\n\t */\n\timUsed: 226,\n\n\t/**\n\t * Multiple Choices status code.\n\t */\n\tmultipleChoices: 300,\n\n\t/**\n\t * Moved Permanently status code.\n\t */\n\tmovedPermanently: 301,\n\n\t/**\n\t * Found status code.\n\t */\n\tfound: 302,\n\n\t/**\n\t * See Other status code.\n\t */\n\tseeOther: 303,\n\n\t/**\n\t * Not Modified status code.\n\t */\n\tnotModified: 304,\n\n\t/**\n\t * Use Proxy status code.\n\t */\n\tuseProxy: 305,\n\n\t/**\n\t * Temporary Redirect status code.\n\t */\n\ttemporaryRedirect: 307,\n\n\t/**\n\t * Permanent Redirect status code.\n\t */\n\tpermanentRedirect: 308,\n\n\t/**\n\t * Bad Request status code.\n\t */\n\tbadRequest: 400,\n\n\t/**\n\t * Unauthorized status code.\n\t */\n\tunauthorized: 401,\n\n\t/**\n\t * Payment Required status code.\n\t */\n\tpaymentRequired: 402,\n\n\t/**\n\t * Forbidden status code.\n\t */\n\tforbidden: 403,\n\n\t/**\n\t * Not Found status code.\n\t */\n\tnotFound: 404,\n\n\t/**\n\t * Method Not Allowed status code.\n\t */\n\tmethodNotAllowed: 405,\n\n\t/**\n\t * Not Acceptable status code.\n\t */\n\tnotAcceptable: 406,\n\n\t/**\n\t * Proxy Authentication Required status code.\n\t */\n\tproxyAuthenticationRequired: 407,\n\n\t/**\n\t * Request Timeout status code.\n\t */\n\trequestTimeout: 408,\n\n\t/**\n\t * Conflict status code.\n\t */\n\tconflict: 409,\n\n\t/**\n\t * Gone status code.\n\t */\n\tgone: 410,\n\n\t/**\n\t * Length Required status code.\n\t */\n\tlengthRequired: 411,\n\n\t/**\n\t * Precondition Failed status code.\n\t */\n\tpreconditionFailed: 412,\n\n\t/**\n\t * Payload Too Large status code.\n\t */\n\tpayloadTooLarge: 413,\n\n\t/**\n\t * URI Too Long status code.\n\t */\n\turiTooLong: 414,\n\n\t/**\n\t * Unsupported Media Type status code.\n\t */\n\tunsupportedMediaType: 415,\n\n\t/**\n\t * Range Not Satisfiable status code.\n\t */\n\trangeNotSatisfiable: 416,\n\n\t/**\n\t * Expectation Failed status code.\n\t */\n\texpectationFailed: 417,\n\n\t/**\n\t * I'm a Teapot status code.\n\t */\n\timATeapot: 418,\n\n\t/**\n\t * Misdirected Request status code.\n\t */\n\tmisdirectedRequest: 421,\n\n\t/**\n\t * Unprocessable Entity status code.\n\t */\n\tunprocessableEntity: 422,\n\n\t/**\n\t * Locked status code.\n\t */\n\tlocked: 423,\n\n\t/**\n\t * Failed Dependency status code.\n\t */\n\tfailedDependency: 424,\n\n\t/**\n\t * Too Early status code.\n\t */\n\ttooEarly: 425,\n\n\t/**\n\t * Upgrade Required status code.\n\t */\n\tupgradeRequired: 426,\n\n\t/**\n\t * Precondition Required status code.\n\t */\n\tpreconditionRequired: 428,\n\n\t/**\n\t * Too Many Requests status code.\n\t */\n\ttooManyRequests: 429,\n\n\t/**\n\t * Request Header Fields Too Large status code.\n\t */\n\trequestHeaderFieldsTooLarge: 431,\n\n\t/**\n\t * Unavailable For Legal Reasons status code.\n\t */\n\tunavailableForLegalReasons: 451,\n\n\t/**\n\t * Internal Server Error status code.\n\t */\n\tinternalServerError: 500,\n\n\t/**\n\t * Not Implemented status code.\n\t */\n\tnotImplemented: 501,\n\n\t/**\n\t * Bad Gateway status code.\n\t */\n\tbadGateway: 502,\n\n\t/**\n\t * Service Unavailable status code.\n\t */\n\tserviceUnavailable: 503,\n\n\t/**\n\t * Gateway Timeout status code.\n\t */\n\tgatewayTimeout: 504,\n\n\t/**\n\t * HTTP Version Not Supported status code.\n\t */\n\thttpVersionNotSupported: 505,\n\n\t/**\n\t * Variant Also Negotiates status code.\n\t */\n\tvariantAlsoNegotiates: 506,\n\n\t/**\n\t * Insufficient Storage status code.\n\t */\n\tinsufficientStorage: 507,\n\n\t/**\n\t * Loop Detected status code.\n\t */\n\tloopDetected: 508,\n\n\t/**\n\t * Not Extended status code.\n\t */\n\tnotExtended: 510,\n\n\t/**\n\t * Network Authentication Required status code.\n\t */\n\tnetworkAuthenticationRequired: 511\n} as const;\n\n/**\n * Standard HTTP status codes.\n */\nexport type HttpStatusCode = (typeof HttpStatusCode)[keyof typeof HttpStatusCode];\n"]}
|
|
1
|
+
{"version":3,"file":"httpStatusCode.js","sourceRoot":"","sources":["../../../src/models/httpStatusCode.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Standard HTTP status codes.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HttpStatusCode = {\n\t/**\n\t * Continue status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100\n\t */\n\tcontinue: 100,\n\n\t/**\n\t * Switching Protocols status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101\n\t */\n\tswitchingProtocols: 101,\n\n\t/**\n\t * Processing status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102\n\t */\n\tprocessing: 102,\n\n\t/**\n\t * Early Hints status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103\n\t */\n\tearlyHints: 103,\n\n\t/**\n\t * OK status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200\n\t */\n\tok: 200,\n\n\t/**\n\t * Created status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201\n\t */\n\tcreated: 201,\n\n\t/**\n\t * Accepted status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202\n\t */\n\taccepted: 202,\n\n\t/**\n\t * Non-Authoritative Information status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203\n\t */\n\tnonAuthoritativeInformation: 203,\n\n\t/**\n\t * No Content status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204\n\t */\n\tnoContent: 204,\n\n\t/**\n\t * Reset Content status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205\n\t */\n\tresetContent: 205,\n\n\t/**\n\t * Partial Content status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206\n\t */\n\tpartialContent: 206,\n\n\t/**\n\t * Multi-Status status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/207\n\t */\n\tmultiStatus: 207,\n\n\t/**\n\t * Already Reported status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208\n\t */\n\talreadyReported: 208,\n\n\t/**\n\t * IM Used status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226\n\t */\n\timUsed: 226,\n\n\t/**\n\t * Multiple Choices status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300\n\t */\n\tmultipleChoices: 300,\n\n\t/**\n\t * Moved Permanently status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301\n\t */\n\tmovedPermanently: 301,\n\n\t/**\n\t * Found status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302\n\t */\n\tfound: 302,\n\n\t/**\n\t * See Other status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303\n\t */\n\tseeOther: 303,\n\n\t/**\n\t * Not Modified status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304\n\t */\n\tnotModified: 304,\n\n\t/**\n\t * Use Proxy status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/305\n\t */\n\tuseProxy: 305,\n\n\t/**\n\t * Temporary Redirect status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307\n\t */\n\ttemporaryRedirect: 307,\n\n\t/**\n\t * Permanent Redirect status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308\n\t */\n\tpermanentRedirect: 308,\n\n\t/**\n\t * Bad Request status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400\n\t */\n\tbadRequest: 400,\n\n\t/**\n\t * Unauthorized status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401\n\t */\n\tunauthorized: 401,\n\n\t/**\n\t * Payment Required status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402\n\t */\n\tpaymentRequired: 402,\n\n\t/**\n\t * Forbidden status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403\n\t */\n\tforbidden: 403,\n\n\t/**\n\t * Not Found status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404\n\t */\n\tnotFound: 404,\n\n\t/**\n\t * Method Not Allowed status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405\n\t */\n\tmethodNotAllowed: 405,\n\n\t/**\n\t * Not Acceptable status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406\n\t */\n\tnotAcceptable: 406,\n\n\t/**\n\t * Proxy Authentication Required status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407\n\t */\n\tproxyAuthenticationRequired: 407,\n\n\t/**\n\t * Request Timeout status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408\n\t */\n\trequestTimeout: 408,\n\n\t/**\n\t * Conflict status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409\n\t */\n\tconflict: 409,\n\n\t/**\n\t * Gone status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410\n\t */\n\tgone: 410,\n\n\t/**\n\t * Length Required status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411\n\t */\n\tlengthRequired: 411,\n\n\t/**\n\t * Precondition Failed status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412\n\t */\n\tpreconditionFailed: 412,\n\n\t/**\n\t * Payload Too Large status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413\n\t */\n\tpayloadTooLarge: 413,\n\n\t/**\n\t * URI Too Long status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414\n\t */\n\turiTooLong: 414,\n\n\t/**\n\t * Unsupported Media Type status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415\n\t */\n\tunsupportedMediaType: 415,\n\n\t/**\n\t * Range Not Satisfiable status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416\n\t */\n\trangeNotSatisfiable: 416,\n\n\t/**\n\t * Expectation Failed status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417\n\t */\n\texpectationFailed: 417,\n\n\t/**\n\t * I'm a Teapot status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418\n\t */\n\timATeapot: 418,\n\n\t/**\n\t * Misdirected Request status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421\n\t */\n\tmisdirectedRequest: 421,\n\n\t/**\n\t * Unprocessable Entity status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422\n\t */\n\tunprocessableEntity: 422,\n\n\t/**\n\t * Locked status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423\n\t */\n\tlocked: 423,\n\n\t/**\n\t * Failed Dependency status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/424\n\t */\n\tfailedDependency: 424,\n\n\t/**\n\t * Too Early status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425\n\t */\n\ttooEarly: 425,\n\n\t/**\n\t * Upgrade Required status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426\n\t */\n\tupgradeRequired: 426,\n\n\t/**\n\t * Precondition Required status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428\n\t */\n\tpreconditionRequired: 428,\n\n\t/**\n\t * Too Many Requests status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429\n\t */\n\ttooManyRequests: 429,\n\n\t/**\n\t * Request Header Fields Too Large status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431\n\t */\n\trequestHeaderFieldsTooLarge: 431,\n\n\t/**\n\t * Unavailable For Legal Reasons status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451\n\t */\n\tunavailableForLegalReasons: 451,\n\n\t/**\n\t * Internal Server Error status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500\n\t */\n\tinternalServerError: 500,\n\n\t/**\n\t * Not Implemented status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501\n\t */\n\tnotImplemented: 501,\n\n\t/**\n\t * Bad Gateway status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502\n\t */\n\tbadGateway: 502,\n\n\t/**\n\t * Service Unavailable status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503\n\t */\n\tserviceUnavailable: 503,\n\n\t/**\n\t * Gateway Timeout status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504\n\t */\n\tgatewayTimeout: 504,\n\n\t/**\n\t * HTTP Version Not Supported status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505\n\t */\n\thttpVersionNotSupported: 505,\n\n\t/**\n\t * Variant Also Negotiates status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506\n\t */\n\tvariantAlsoNegotiates: 506,\n\n\t/**\n\t * Insufficient Storage status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507\n\t */\n\tinsufficientStorage: 507,\n\n\t/**\n\t * Loop Detected status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508\n\t */\n\tloopDetected: 508,\n\n\t/**\n\t * Not Extended status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510\n\t */\n\tnotExtended: 510,\n\n\t/**\n\t * Network Authentication Required status code.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511\n\t */\n\tnetworkAuthenticationRequired: 511\n} as const;\n\n/**\n * Standard HTTP status codes.\n */\nexport type HttpStatusCode = (typeof HttpStatusCode)[keyof typeof HttpStatusCode];\n"]}
|