@celljs/http 3.7.8 → 3.9.0
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/esm/common/client/client-protocol.d.ts +18 -0
- package/esm/common/client/client-protocol.js +26 -0
- package/esm/common/client/client-protocol.js.map +1 -0
- package/esm/common/client/index.d.ts +2 -0
- package/esm/common/client/index.js +3 -0
- package/esm/common/client/index.js.map +1 -0
- package/esm/common/client/rest-operations-factory.d.ts +6 -0
- package/esm/common/client/rest-operations-factory.js +26 -0
- package/esm/common/client/rest-operations-factory.js.map +1 -0
- package/esm/common/http/http-headers.d.ts +306 -0
- package/esm/common/http/http-headers.js +307 -0
- package/esm/common/http/http-headers.js.map +1 -0
- package/esm/common/http/http-protocol.d.ts +155 -0
- package/esm/common/http/http-protocol.js +163 -0
- package/esm/common/http/http-protocol.js.map +1 -0
- package/esm/common/http/index.d.ts +2 -0
- package/esm/common/http/index.js +3 -0
- package/esm/common/http/index.js.map +1 -0
- package/esm/common/index.d.ts +2 -0
- package/esm/common/index.js +3 -0
- package/esm/common/index.js.map +1 -0
- package/esm/common/module.d.ts +2 -0
- package/esm/common/module.js +9 -0
- package/esm/common/module.js.map +1 -0
- package/esm/package.json +3 -0
- package/lib/common/client/client-protocol.d.ts.map +1 -1
- package/lib/common/client/client-protocol.js.map +1 -1
- package/lib/common/client/rest-operations-factory.d.ts.map +1 -1
- package/lib/common/client/rest-operations-factory.js +4 -1
- package/lib/common/client/rest-operations-factory.js.map +1 -1
- package/lib/common/http/http-headers.js.map +1 -1
- package/lib/common/http/http-protocol.js.map +1 -1
- package/lib/common/module.d.ts.map +1 -1
- package/lib/common/module.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +5 -2
- package/lib/package.spec.js.map +1 -1
- package/package.json +41 -11
- package/src/package.spec.ts +1 -0
- package/LICENSE +0 -21
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
export class HttpHeaders {
|
|
2
|
+
}
|
|
3
|
+
/**
|
|
4
|
+
* The HTTP `Accept` header field name.
|
|
5
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.2 Section 5.3.2 of RFC 7231}
|
|
6
|
+
*/
|
|
7
|
+
HttpHeaders.ACCEPT = 'Accept';
|
|
8
|
+
/**
|
|
9
|
+
* The HTTP `Accept-Charset` header field name.
|
|
10
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.3 Section 5.3.3 of RFC 7231}
|
|
11
|
+
*/
|
|
12
|
+
HttpHeaders.ACCEPT_CHARSET = 'Accept-Charset';
|
|
13
|
+
/**
|
|
14
|
+
* The HTTP `Accept-Encoding` header field name.
|
|
15
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.4 Section 5.3.4 of RFC 7231}
|
|
16
|
+
*/
|
|
17
|
+
HttpHeaders.ACCEPT_ENCODING = 'Accept-Encoding';
|
|
18
|
+
/**
|
|
19
|
+
* The HTTP `Accept-Language` header field name.
|
|
20
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.5 Section 5.3.5 of RFC 7231}
|
|
21
|
+
*/
|
|
22
|
+
HttpHeaders.ACCEPT_LANGUAGE = 'Accept-Language';
|
|
23
|
+
/**
|
|
24
|
+
* The HTTP `Accept-Ranges` header field name.
|
|
25
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-2.3 Section 5.3.5 of RFC 7233}
|
|
26
|
+
*/
|
|
27
|
+
HttpHeaders.ACCEPT_RANGES = 'Accept-Ranges';
|
|
28
|
+
/**
|
|
29
|
+
* The CORS `Access-Control-Allow-Credentials` response header field name.
|
|
30
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
31
|
+
*/
|
|
32
|
+
HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS = 'Access-Control-Allow-Credentials';
|
|
33
|
+
/**
|
|
34
|
+
* The CORS `Access-Control-Allow-Headers` response header field name.
|
|
35
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
36
|
+
*/
|
|
37
|
+
HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS = 'Access-Control-Allow-Headers';
|
|
38
|
+
/**
|
|
39
|
+
* The CORS `Access-Control-Allow-Methods` response header field name.
|
|
40
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
41
|
+
*/
|
|
42
|
+
HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS = 'Access-Control-Allow-Methods';
|
|
43
|
+
/**
|
|
44
|
+
* The CORS `Access-Control-Allow-Origin` response header field name.
|
|
45
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
46
|
+
*/
|
|
47
|
+
HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN = 'Access-Control-Allow-Origin';
|
|
48
|
+
/**
|
|
49
|
+
* The CORS `Access-Control-Expose-Headers` response header field name.
|
|
50
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
51
|
+
*/
|
|
52
|
+
HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS = 'Access-Control-Expose-Headers';
|
|
53
|
+
/**
|
|
54
|
+
* The CORS `Access-Control-Max-Age` response header field name.
|
|
55
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
56
|
+
*/
|
|
57
|
+
HttpHeaders.ACCESS_CONTROL_MAX_AGE = 'Access-Control-Max-Age';
|
|
58
|
+
/**
|
|
59
|
+
* The CORS `Access-Control-Request-Headers` request header field name.
|
|
60
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
61
|
+
*/
|
|
62
|
+
HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS = 'Access-Control-Request-Headers';
|
|
63
|
+
/**
|
|
64
|
+
* The CORS `Access-Control-Request-Method` request header field name.
|
|
65
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
66
|
+
*/
|
|
67
|
+
HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD = 'Access-Control-Request-Method';
|
|
68
|
+
/**
|
|
69
|
+
* The HTTP `Age` header field name.
|
|
70
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.1 Section 5.1 of RFC 7234}
|
|
71
|
+
*/
|
|
72
|
+
HttpHeaders.AGE = 'Age';
|
|
73
|
+
/**
|
|
74
|
+
* The HTTP `Allow` header field name.
|
|
75
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.4.1 Section 7.4.1 of RFC 7231}
|
|
76
|
+
*/
|
|
77
|
+
HttpHeaders.ALLOW = 'Allow';
|
|
78
|
+
/**
|
|
79
|
+
* The HTTP `Authorization` header field name.
|
|
80
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.2 Section 4.2 of RFC 7235}
|
|
81
|
+
*/
|
|
82
|
+
HttpHeaders.AUTHORIZATION = 'Authorization';
|
|
83
|
+
/**
|
|
84
|
+
* The HTTP `Cache-Control` header field name.
|
|
85
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.2 Section 5.2 of RFC 7234}
|
|
86
|
+
*/
|
|
87
|
+
HttpHeaders.CACHE_CONTROL = 'Cache-Control';
|
|
88
|
+
/**
|
|
89
|
+
* The HTTP `Connection` header field name.
|
|
90
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-6.1 Section 6.1 of RFC 7230}
|
|
91
|
+
*/
|
|
92
|
+
HttpHeaders.CONNECTION = 'Connection';
|
|
93
|
+
/**
|
|
94
|
+
* The HTTP `Content-Encoding` header field name.
|
|
95
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.2.2 Section 3.1.2.2 of RFC 7231}
|
|
96
|
+
*/
|
|
97
|
+
HttpHeaders.CONTENT_ENCODING = 'Content-Encoding';
|
|
98
|
+
/**
|
|
99
|
+
* The HTTP `Content-Disposition` header field name.
|
|
100
|
+
* @see {@link https://tools.ietf.org/html/rfc6266 RFC 6266}
|
|
101
|
+
*/
|
|
102
|
+
HttpHeaders.CONTENT_DISPOSITION = 'Content-Disposition';
|
|
103
|
+
/**
|
|
104
|
+
* The HTTP `Content-Language` header field name.
|
|
105
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.3.2 Section 3.1.3.2 of RFC 7231}
|
|
106
|
+
*/
|
|
107
|
+
HttpHeaders.CONTENT_LANGUAGE = 'Content-Language';
|
|
108
|
+
/**
|
|
109
|
+
* The HTTP `Content-Length` header field name.
|
|
110
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-3.3.2 Section 3.3.2 of RFC 7230}
|
|
111
|
+
*/
|
|
112
|
+
HttpHeaders.CONTENT_LENGTH = 'Content-Length';
|
|
113
|
+
/**
|
|
114
|
+
* The HTTP `Content-Location` header field name.
|
|
115
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.4.2 Section 3.1.4.2 of RFC 7231}
|
|
116
|
+
*/
|
|
117
|
+
HttpHeaders.CONTENT_LOCATION = 'Content-Location';
|
|
118
|
+
/**
|
|
119
|
+
* The HTTP `Content-Range` header field name.
|
|
120
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-4.2 Section 4.2 of RFC 7233}
|
|
121
|
+
*/
|
|
122
|
+
HttpHeaders.CONTENT_RANGE = 'Content-Range';
|
|
123
|
+
/**
|
|
124
|
+
* The HTTP `Content-Type` header field name.
|
|
125
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.1.5 Section 3.1.1.5 of RFC 7231}
|
|
126
|
+
*/
|
|
127
|
+
HttpHeaders.CONTENT_TYPE = 'Content-Type';
|
|
128
|
+
/**
|
|
129
|
+
* The HTTP `Cookie` header field name.
|
|
130
|
+
* @see {@link https://tools.ietf.org/html/rfc2109#section-4.3.4 Section 4.3.4 of RFC 2109}
|
|
131
|
+
*/
|
|
132
|
+
HttpHeaders.COOKIE = 'Cookie';
|
|
133
|
+
/**
|
|
134
|
+
* The HTTP `Date` header field name.
|
|
135
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.1.2 Section 7.1.1.2 of RFC 7231}
|
|
136
|
+
*/
|
|
137
|
+
HttpHeaders.DATE = 'Date';
|
|
138
|
+
/**
|
|
139
|
+
* The HTTP `ETag` header field name.
|
|
140
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-2.3 Section 2.3 of RFC 7232}
|
|
141
|
+
*/
|
|
142
|
+
HttpHeaders.ETAG = 'ETag';
|
|
143
|
+
/**
|
|
144
|
+
* The HTTP `Expect` header field name.
|
|
145
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.1.1 Section 5.1.1 of RFC 7231}
|
|
146
|
+
*/
|
|
147
|
+
HttpHeaders.EXPECT = 'Expect';
|
|
148
|
+
/**
|
|
149
|
+
* The HTTP `Expires` header field name.
|
|
150
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.3 Section 5.3 of RFC 7234}
|
|
151
|
+
*/
|
|
152
|
+
HttpHeaders.EXPIRES = 'Expires';
|
|
153
|
+
/**
|
|
154
|
+
* The HTTP `From` header field name.
|
|
155
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.1 Section 5.5.1 of RFC 7231}
|
|
156
|
+
*/
|
|
157
|
+
HttpHeaders.FROM = 'From';
|
|
158
|
+
/**
|
|
159
|
+
* The HTTP `Host` header field name.
|
|
160
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-5.4 Section 5.4 of RFC 7230}
|
|
161
|
+
*/
|
|
162
|
+
HttpHeaders.HOST = 'Host';
|
|
163
|
+
/**
|
|
164
|
+
* The HTTP `If-Match` header field name.
|
|
165
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.1 Section 3.1 of RFC 7232}
|
|
166
|
+
*/
|
|
167
|
+
HttpHeaders.IF_MATCH = 'If-Match';
|
|
168
|
+
/**
|
|
169
|
+
* The HTTP `If-Modified-Since` header field name.
|
|
170
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.3 Section 3.3 of RFC 7232}
|
|
171
|
+
*/
|
|
172
|
+
HttpHeaders.IF_MODIFIED_SINCE = 'If-Modified-Since';
|
|
173
|
+
/**
|
|
174
|
+
* The HTTP `If-None-Match` header field name.
|
|
175
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.2 Section 3.2 of RFC 7232}
|
|
176
|
+
*/
|
|
177
|
+
HttpHeaders.IF_NONE_MATCH = 'If-None-Match';
|
|
178
|
+
/**
|
|
179
|
+
* The HTTP `If-Range` header field name.
|
|
180
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-3.2 Section 3.2 of RFC 7233}
|
|
181
|
+
*/
|
|
182
|
+
HttpHeaders.IF_RANGE = 'If-Range';
|
|
183
|
+
/**
|
|
184
|
+
* The HTTP `If-Unmodified-Since` header field name.
|
|
185
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.4 Section 3.4 of RFC 7232}
|
|
186
|
+
*/
|
|
187
|
+
HttpHeaders.IF_UNMODIFIED_SINCE = 'If-Unmodified-Since';
|
|
188
|
+
/**
|
|
189
|
+
* The HTTP `Last-Modified` header field name.
|
|
190
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-2.2 Section 2.2 of RFC 7232}
|
|
191
|
+
*/
|
|
192
|
+
HttpHeaders.LAST_MODIFIED = 'Last-Modified';
|
|
193
|
+
/**
|
|
194
|
+
* The HTTP `Link` header field name.
|
|
195
|
+
* @see {@link https://tools.ietf.org/html/rfc5988 RFC 5988}
|
|
196
|
+
*/
|
|
197
|
+
HttpHeaders.LINK = 'Link';
|
|
198
|
+
/**
|
|
199
|
+
* The HTTP `Location` header field name.
|
|
200
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.2 Section 7.1.2 of RFC 7231}
|
|
201
|
+
*/
|
|
202
|
+
HttpHeaders.LOCATION = 'Location';
|
|
203
|
+
/**
|
|
204
|
+
* The HTTP `Max-Forwards` header field name.
|
|
205
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.1.2 Section 5.1.2 of RFC 7231}
|
|
206
|
+
*/
|
|
207
|
+
HttpHeaders.MAX_FORWARDS = 'Max-Forwards';
|
|
208
|
+
/**
|
|
209
|
+
* The HTTP `Origin` header field name.
|
|
210
|
+
* @see {@link https://tools.ietf.org/html/rfc6454 RFC 6454}
|
|
211
|
+
*/
|
|
212
|
+
HttpHeaders.ORIGIN = 'Origin';
|
|
213
|
+
/**
|
|
214
|
+
* The HTTP `Pragma` header field name.
|
|
215
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.4 Section 5.4 of RFC 7234}
|
|
216
|
+
*/
|
|
217
|
+
HttpHeaders.PRAGMA = 'Pragma';
|
|
218
|
+
/**
|
|
219
|
+
* The HTTP `Proxy-Authenticate` header field name.
|
|
220
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.3 Section 4.3 of RFC 7235}
|
|
221
|
+
*/
|
|
222
|
+
HttpHeaders.PROXY_AUTHENTICATE = 'Proxy-Authenticate';
|
|
223
|
+
/**
|
|
224
|
+
* The HTTP `Proxy-Authorization` header field name.
|
|
225
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.4 Section 4.4 of RFC 7235}
|
|
226
|
+
*/
|
|
227
|
+
HttpHeaders.PROXY_AUTHORIZATION = 'Proxy-Authorization';
|
|
228
|
+
/**
|
|
229
|
+
* The HTTP `Range` header field name.
|
|
230
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-3.1 Section 3.1 of RFC 7233}
|
|
231
|
+
*/
|
|
232
|
+
HttpHeaders.RANGE = 'Range';
|
|
233
|
+
/**
|
|
234
|
+
* The HTTP `Referer` header field name.
|
|
235
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.2 Section 5.5.2 of RFC 7231}
|
|
236
|
+
*/
|
|
237
|
+
HttpHeaders.REFERER = 'Referer';
|
|
238
|
+
/**
|
|
239
|
+
* The HTTP `Retry-After` header field name.
|
|
240
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.3 Section 7.1.3 of RFC 7231}
|
|
241
|
+
*/
|
|
242
|
+
HttpHeaders.RETRY_AFTER = 'Retry-After';
|
|
243
|
+
/**
|
|
244
|
+
* The HTTP `Server` header field name.
|
|
245
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.4.2 Section 7.4.2 of RFC 7231}
|
|
246
|
+
*/
|
|
247
|
+
HttpHeaders.SERVER = 'Server';
|
|
248
|
+
/**
|
|
249
|
+
* The HTTP `Set-Cookie` header field name.
|
|
250
|
+
* @see {@link https://tools.ietf.org/html/rfc2109#section-4.2.2 Section 4.2.2 of RFC 2109}
|
|
251
|
+
*/
|
|
252
|
+
HttpHeaders.SET_COOKIE = 'Set-Cookie';
|
|
253
|
+
/**
|
|
254
|
+
* The HTTP `Set-Cookie2` header field name.
|
|
255
|
+
* @see {@link https://tools.ietf.org/html/rfc2965 RFC 2965}
|
|
256
|
+
*/
|
|
257
|
+
HttpHeaders.SET_COOKIE2 = 'Set-Cookie2';
|
|
258
|
+
/**
|
|
259
|
+
* The HTTP `TE` header field name.
|
|
260
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-4.3 Section 4.3 of RFC 7230}
|
|
261
|
+
*/
|
|
262
|
+
HttpHeaders.TE = 'TE';
|
|
263
|
+
/**
|
|
264
|
+
* The HTTP `Trailer` header field name.
|
|
265
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-4.4 Section 4.4 of RFC 7230}
|
|
266
|
+
*/
|
|
267
|
+
HttpHeaders.TRAILER = 'Trailer';
|
|
268
|
+
/**
|
|
269
|
+
* The HTTP `Transfer-Encoding` header field name.
|
|
270
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-3.3.1 Section 3.3.1 of RFC 7230}
|
|
271
|
+
*/
|
|
272
|
+
HttpHeaders.TRANSFER_ENCODING = 'Transfer-Encoding';
|
|
273
|
+
/**
|
|
274
|
+
* The HTTP `Upgrade` header field name.
|
|
275
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-6.7 Section 6.7 of RFC 7230}
|
|
276
|
+
*/
|
|
277
|
+
HttpHeaders.UPGRADE = 'Upgrade';
|
|
278
|
+
/**
|
|
279
|
+
* The HTTP `User-Agent` header field name.
|
|
280
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.3 Section 5.5.3 of RFC 7231}
|
|
281
|
+
*/
|
|
282
|
+
HttpHeaders.USER_AGENT = 'User-Agent';
|
|
283
|
+
/**
|
|
284
|
+
* The HTTP `Vary` header field name.
|
|
285
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.4 Section 7.1.4 of RFC 7231}
|
|
286
|
+
*/
|
|
287
|
+
HttpHeaders.VARY = 'Vary';
|
|
288
|
+
/**
|
|
289
|
+
* The HTTP `Via` header field name.
|
|
290
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-5.7.1 Section 5.7.1 of RFC 7230}
|
|
291
|
+
*/
|
|
292
|
+
HttpHeaders.VIA = 'Via';
|
|
293
|
+
/**
|
|
294
|
+
* The HTTP `Warning` header field name.
|
|
295
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.5 Section 5.5 of RFC 7234}
|
|
296
|
+
*/
|
|
297
|
+
HttpHeaders.WARNING = 'Warning';
|
|
298
|
+
/**
|
|
299
|
+
* The HTTP `WWW-Authenticate` header field name.
|
|
300
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.1 Section 4.1 of RFC 7235}
|
|
301
|
+
*/
|
|
302
|
+
HttpHeaders.WWW_AUTHENTICATE = 'WWW-Authenticate';
|
|
303
|
+
/**
|
|
304
|
+
* The HTTP `X-Requested-With` header field name.
|
|
305
|
+
*/
|
|
306
|
+
HttpHeaders.X_REQUESTED_WITH = 'X-Requested-With';
|
|
307
|
+
//# sourceMappingURL=http-headers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-headers.js","sourceRoot":"","sources":["../../../src/common/http/http-headers.ts"],"names":[],"mappings":"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,IAAI,CAAC;AAExB;;;GAGG;AACW,mBAAO,GAAG,SAAS,CAAC;AAElC;;;GAGG;AACW,6BAAiB,GAAG,mBAAmB,CAAC;AAEtD;;;GAGG;AACW,mBAAO,GAAG,SAAS,CAAC;AAElC;;;GAGG;AACW,sBAAU,GAAG,YAAY,CAAC;AAExC;;;GAGG;AACW,gBAAI,GAAG,MAAM,CAAC;AAE5B;;;GAGG;AACW,eAAG,GAAG,KAAK,CAAC;AAE1B;;;GAGG;AACW,mBAAO,GAAG,SAAS,CAAC;AAElC;;;GAGG;AACW,4BAAgB,GAAG,kBAAkB,CAAC;AAEpD;;GAEG;AACW,4BAAgB,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export declare enum HttpStatus {
|
|
2
|
+
CONTINUE = 100,
|
|
3
|
+
SWITCHING_PROTOCOLS = 101,
|
|
4
|
+
PROCESSING = 102,
|
|
5
|
+
OK = 200,
|
|
6
|
+
CREATED = 201,
|
|
7
|
+
ACCEPTED = 202,
|
|
8
|
+
NON_AUTHORITATIVE_INFORMATION = 203,
|
|
9
|
+
NO_CONTENT = 204,
|
|
10
|
+
RESET_CONTENT = 205,
|
|
11
|
+
PARTIAL_CONTENT = 206,
|
|
12
|
+
AMBIGUOUS = 300,
|
|
13
|
+
MOVED_PERMANENTLY = 301,
|
|
14
|
+
FOUND = 302,
|
|
15
|
+
SEE_OTHER = 303,
|
|
16
|
+
NOT_MODIFIED = 304,
|
|
17
|
+
TEMPORARY_REDIRECT = 307,
|
|
18
|
+
PERMANENT_REDIRECT = 308,
|
|
19
|
+
BAD_REQUEST = 400,
|
|
20
|
+
UNAUTHORIZED = 401,
|
|
21
|
+
PAYMENT_REQUIRED = 402,
|
|
22
|
+
FORBIDDEN = 403,
|
|
23
|
+
NOT_FOUND = 404,
|
|
24
|
+
METHOD_NOT_ALLOWED = 405,
|
|
25
|
+
NOT_ACCEPTABLE = 406,
|
|
26
|
+
PROXY_AUTHENTICATION_REQUIRED = 407,
|
|
27
|
+
REQUEST_TIMEOUT = 408,
|
|
28
|
+
CONFLICT = 409,
|
|
29
|
+
GONE = 410,
|
|
30
|
+
LENGTH_REQUIRED = 411,
|
|
31
|
+
PRECONDITION_FAILED = 412,
|
|
32
|
+
PAYLOAD_TOO_LARGE = 413,
|
|
33
|
+
URI_TOO_LONG = 414,
|
|
34
|
+
UNSUPPORTED_MEDIA_TYPE = 415,
|
|
35
|
+
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
|
|
36
|
+
EXPECTATION_FAILED = 417,
|
|
37
|
+
I_AM_A_TEAPOT = 418,
|
|
38
|
+
UNPROCESSABLE_ENTITY = 422,
|
|
39
|
+
FAILED_DEPENDENCY = 424,
|
|
40
|
+
TOO_MANY_REQUESTS = 429,
|
|
41
|
+
INTERNAL_SERVER_ERROR = 500,
|
|
42
|
+
NOT_IMPLEMENTED = 501,
|
|
43
|
+
BAD_GATEWAY = 502,
|
|
44
|
+
SERVICE_UNAVAILABLE = 503,
|
|
45
|
+
GATEWAY_TIMEOUT = 504,
|
|
46
|
+
HTTP_VERSION_NOT_SUPPORTED = 505,
|
|
47
|
+
VARIANT_ALSO_NEGOTIATES = 506,
|
|
48
|
+
INSUFFICIENT_STORAGE = 507,
|
|
49
|
+
LOOP_DETECTED = 508,
|
|
50
|
+
BANDWIDTH_LIMIT_EXCEEDED = 509,
|
|
51
|
+
NOT_EXTENDED = 510,
|
|
52
|
+
NETWORK_AUTHENTICATION_REQUIRED = 511,
|
|
53
|
+
CONTINUE_REASON_PHRASE = "Continue",
|
|
54
|
+
SWITCHING_PROTOCOLS_REASON_PHRASE = "Switching Protocols",
|
|
55
|
+
PROCESSING_REASON_PHRASE = "Processing",
|
|
56
|
+
CHECKPOINT_REASON_PHRASE = "Checkpoint",
|
|
57
|
+
OK_REASON_PHRASE = "OK",
|
|
58
|
+
CREATED_REASON_PHRASE = "Created",
|
|
59
|
+
ACCEPTED_REASON_PHRASE = "Accepted",
|
|
60
|
+
NON_AUTHORITATIVE_INFORMATION_REASON_PHRASE = "Non-Authoritative Information",
|
|
61
|
+
NO_CONTENT_REASON_PHRASE = "No Content",
|
|
62
|
+
RESET_CONTENT_REASON_PHRASE = "Reset Content",
|
|
63
|
+
PARTIAL_CONTENT_REASON_PHRASE = "Partial Content",
|
|
64
|
+
MULTI_STATUS_REASON_PHRASE = "Multi-Status",
|
|
65
|
+
ALREADY_REPORTED_REASON_PHRASE = "Already Reported",
|
|
66
|
+
IM_USED_REASON_PHRASE = "IM Used",
|
|
67
|
+
MULTIPLE_CHOICES_REASON_PHRASE = "Multiple Choices",
|
|
68
|
+
MOVED_PERMANENTLY_REASON_PHRASE = "Moved Permanently",
|
|
69
|
+
FOUND_REASON_PHRASE = "Found",
|
|
70
|
+
MOVED_TEMPORARILY_REASON_PHRASE = "Moved Temporarily",
|
|
71
|
+
SEE_OTHER_REASON_PHRASE = "See Other",
|
|
72
|
+
NOT_MODIFIED_REASON_PHRASE = "Not Modified",
|
|
73
|
+
USE_PROXY_REASON_PHRASE = "Use Proxy",
|
|
74
|
+
TEMPORARY_REDIRECT_REASON_PHRASE = "Temporary Redirect",
|
|
75
|
+
PERMANENT_REDIRECT_REASON_PHRASE = "Permanent Redirect",
|
|
76
|
+
BAD_REQUEST_REASON_PHRASE = "Bad Request",
|
|
77
|
+
UNAUTHORIZED_REASON_PHRASE = "Unauthorized",
|
|
78
|
+
PAYMENT_REQUIRED_REASON_PHRASE = "Payment Required",
|
|
79
|
+
FORBIDDEN_REASON_PHRASE = "Forbidden",
|
|
80
|
+
NOT_FOUND_REASON_PHRASE = "Not Found",
|
|
81
|
+
METHOD_NOT_ALLOWED_REASON_PHRASE = "Method Not Allowed",
|
|
82
|
+
NOT_ACCEPTABLE_REASON_PHRASE = "Not Acceptable",
|
|
83
|
+
PROXY_AUTHENTICATION_REQUIRED_REASON_PHRASE = "Proxy Authentication Required",
|
|
84
|
+
REQUEST_TIMEOUT_REASON_PHRASE = "Request Timeout",
|
|
85
|
+
CONFLICT_REASON_PHRASE = "Conflict",
|
|
86
|
+
GONE_REASON_PHRASE = "Gone",
|
|
87
|
+
LENGTH_REQUIRED_REASON_PHRASE = "Length Required",
|
|
88
|
+
PRECONDITION_FAILED_REASON_PHRASE = "Precondition Failed",
|
|
89
|
+
PAYLOAD_TOO_LARGE_REASON_PHRASE = "Payload Too Large",
|
|
90
|
+
REQUEST_ENTITY_TOO_LARGE_REASON_PHRASE = "Request Entity Too Large",
|
|
91
|
+
URI_TOO_LONG_REASON_PHRASE = "URI Too Long",
|
|
92
|
+
REQUEST_URI_TOO_LONG_REASON_PHRASE = "Request-URI Too Long",
|
|
93
|
+
UNSUPPORTED_MEDIA_TYPE_REASON_PHRASE = "Unsupported Media Type",
|
|
94
|
+
REQUESTED_RANGE_NOT_SATISFIABLE_REASON_PHRASE = "Requested range not satisfiable",
|
|
95
|
+
EXPECTATION_FAILED_REASON_PHRASE = "Expectation Failed",
|
|
96
|
+
I_AM_A_TEAPOT_REASON_PHRASE = "I'm a teapot",
|
|
97
|
+
INSUFFICIENT_SPACE_ON_RESOURCE_REASON_PHRASE = "Insufficient Space On Resource",
|
|
98
|
+
METHOD_FAILURE_REASON_PHRASE = "Method Failure",
|
|
99
|
+
DESTINATION_LOCKED_REASON_PHRASE = "Destination Locked",
|
|
100
|
+
UNPROCESSABLE_ENTITY_REASON_PHRASE = "Unprocessable Entity",
|
|
101
|
+
LOCKED_REASON_PHRASE = "Locked",
|
|
102
|
+
FAILED_DEPENDENCY_REASON_PHRASE = "Failed Dependency",
|
|
103
|
+
UPGRADE_REQUIRED_REASON_PHRASE = "Upgrade Required",
|
|
104
|
+
PRECONDITION_REQUIRED_REASON_PHRASE = "Precondition Required",
|
|
105
|
+
TOO_MANY_REQUESTS_REASON_PHRASE = "Too Many Requests",
|
|
106
|
+
REQUEST_HEADER_FIELDS_TOO_LARGE_REASON_PHRASE = "Request Header Fields Too Large",
|
|
107
|
+
UNAVAILABLE_FOR_LEGAL_REASONS_REASON_PHRASE = "Unavailable For Legal Reasons",
|
|
108
|
+
INTERNAL_SERVER_ERROR_REASON_PHRASE = "Internal Server Error",
|
|
109
|
+
NOT_IMPLEMENTED_REASON_PHRASE = "Not Implemented",
|
|
110
|
+
BAD_GATEWAY_REASON_PHRASE = "Bad Gateway",
|
|
111
|
+
SERVICE_UNAVAILABLE_REASON_PHRASE = "Service Unavailable",
|
|
112
|
+
GATEWAY_TIMEOUT_REASON_PHRASE = "Gateway Timeout",
|
|
113
|
+
HTTP_VERSION_NOT_SUPPORTED_REASON_PHRASE = "HTTP Version not supported",
|
|
114
|
+
VARIANT_ALSO_NEGOTIATES_REASON_PHRASE = "Variant Also Negotiates",
|
|
115
|
+
INSUFFICIENT_STORAGE_REASON_PHRASE = "Insufficient Storage",
|
|
116
|
+
LOOP_DETECTED_REASON_PHRASE = "Loop Detected",
|
|
117
|
+
BANDWIDTH_LIMIT_EXCEEDED_REASON_PHRASE = "Bandwidth Limit Exceeded",
|
|
118
|
+
NOT_EXTENDED_REASON_PHRASE = "Not Extended"
|
|
119
|
+
}
|
|
120
|
+
export declare enum MediaType {
|
|
121
|
+
ALL = "*/*",
|
|
122
|
+
APPLICATION_ATOM_XML = "application/atom+xml",
|
|
123
|
+
APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded",
|
|
124
|
+
APPLICATION_JSON = "application/json",
|
|
125
|
+
APPLICATION_JSON_UTF8 = "application/json;charset=UTF-8",
|
|
126
|
+
APPLICATION_OCTET_STREAM = "application/octet-stream",
|
|
127
|
+
APPLICATION_PDF = "application/pdf",
|
|
128
|
+
APPLICATION_PROBLEM_JSON = "application/problem+json",
|
|
129
|
+
APPLICATION_PROBLEM_JSON_UTF8 = "application/problem+json;charset=UTF-8",
|
|
130
|
+
APPLICATION_PROBLEM_XML = "application/problem+xml",
|
|
131
|
+
APPLICATION_RSS_XML = "application/rss+xml",
|
|
132
|
+
APPLICATION_STREAM_JSON = "application/stream+json",
|
|
133
|
+
APPLICATION_XHTML_XML = "application/xhtml+xml",
|
|
134
|
+
APPLICATION_XML = "application/xml",
|
|
135
|
+
IMAGE_GIF = "image/gif",
|
|
136
|
+
IMAGE_JPEG = "image/jpeg",
|
|
137
|
+
IMAGE_PNG = "image/png",
|
|
138
|
+
MULTIPART_FORM_DATA = "multipart/form-data",
|
|
139
|
+
TEXT_EVENT_STREAM = "text/event-stream",
|
|
140
|
+
TEXT_HTML = "text/html",
|
|
141
|
+
TEXT_MARKDOWN = "text/markdown",
|
|
142
|
+
TEXT_PLAIN = "text/plain",
|
|
143
|
+
TEXT_XML = "text/xml"
|
|
144
|
+
}
|
|
145
|
+
export declare enum HttpMethod {
|
|
146
|
+
GET = "GET",
|
|
147
|
+
HEAD = "HEAD",
|
|
148
|
+
POST = "POST",
|
|
149
|
+
PUT = "PUT",
|
|
150
|
+
PATCH = "PATCH",
|
|
151
|
+
DELETE = "DELETE",
|
|
152
|
+
OPTIONS = "OPTIONS",
|
|
153
|
+
TRACE = "TRACE"
|
|
154
|
+
}
|
|
155
|
+
export declare const XML_HTTP_REQUEST = "XMLHttpRequest";
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export var HttpStatus;
|
|
2
|
+
(function (HttpStatus) {
|
|
3
|
+
HttpStatus[HttpStatus["CONTINUE"] = 100] = "CONTINUE";
|
|
4
|
+
HttpStatus[HttpStatus["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
5
|
+
HttpStatus[HttpStatus["PROCESSING"] = 102] = "PROCESSING";
|
|
6
|
+
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
7
|
+
HttpStatus[HttpStatus["CREATED"] = 201] = "CREATED";
|
|
8
|
+
HttpStatus[HttpStatus["ACCEPTED"] = 202] = "ACCEPTED";
|
|
9
|
+
HttpStatus[HttpStatus["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
10
|
+
HttpStatus[HttpStatus["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
11
|
+
HttpStatus[HttpStatus["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
12
|
+
HttpStatus[HttpStatus["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
13
|
+
HttpStatus[HttpStatus["AMBIGUOUS"] = 300] = "AMBIGUOUS";
|
|
14
|
+
HttpStatus[HttpStatus["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
15
|
+
HttpStatus[HttpStatus["FOUND"] = 302] = "FOUND";
|
|
16
|
+
HttpStatus[HttpStatus["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
17
|
+
HttpStatus[HttpStatus["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
18
|
+
HttpStatus[HttpStatus["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
19
|
+
HttpStatus[HttpStatus["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
20
|
+
HttpStatus[HttpStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
21
|
+
HttpStatus[HttpStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
22
|
+
HttpStatus[HttpStatus["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
23
|
+
HttpStatus[HttpStatus["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
24
|
+
HttpStatus[HttpStatus["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
25
|
+
HttpStatus[HttpStatus["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
26
|
+
HttpStatus[HttpStatus["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
27
|
+
HttpStatus[HttpStatus["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
28
|
+
HttpStatus[HttpStatus["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
29
|
+
HttpStatus[HttpStatus["CONFLICT"] = 409] = "CONFLICT";
|
|
30
|
+
HttpStatus[HttpStatus["GONE"] = 410] = "GONE";
|
|
31
|
+
HttpStatus[HttpStatus["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
32
|
+
HttpStatus[HttpStatus["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
33
|
+
HttpStatus[HttpStatus["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
34
|
+
HttpStatus[HttpStatus["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
35
|
+
HttpStatus[HttpStatus["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
36
|
+
HttpStatus[HttpStatus["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
37
|
+
HttpStatus[HttpStatus["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
38
|
+
HttpStatus[HttpStatus["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
39
|
+
HttpStatus[HttpStatus["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
40
|
+
HttpStatus[HttpStatus["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
41
|
+
HttpStatus[HttpStatus["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
42
|
+
HttpStatus[HttpStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
43
|
+
HttpStatus[HttpStatus["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
44
|
+
HttpStatus[HttpStatus["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
45
|
+
HttpStatus[HttpStatus["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
46
|
+
HttpStatus[HttpStatus["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
47
|
+
HttpStatus[HttpStatus["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
48
|
+
HttpStatus[HttpStatus["VARIANT_ALSO_NEGOTIATES"] = 506] = "VARIANT_ALSO_NEGOTIATES";
|
|
49
|
+
HttpStatus[HttpStatus["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
50
|
+
HttpStatus[HttpStatus["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
51
|
+
HttpStatus[HttpStatus["BANDWIDTH_LIMIT_EXCEEDED"] = 509] = "BANDWIDTH_LIMIT_EXCEEDED";
|
|
52
|
+
HttpStatus[HttpStatus["NOT_EXTENDED"] = 510] = "NOT_EXTENDED";
|
|
53
|
+
HttpStatus[HttpStatus["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
54
|
+
HttpStatus["CONTINUE_REASON_PHRASE"] = "Continue";
|
|
55
|
+
HttpStatus["SWITCHING_PROTOCOLS_REASON_PHRASE"] = "Switching Protocols";
|
|
56
|
+
HttpStatus["PROCESSING_REASON_PHRASE"] = "Processing";
|
|
57
|
+
HttpStatus["CHECKPOINT_REASON_PHRASE"] = "Checkpoint";
|
|
58
|
+
// 2xx Success
|
|
59
|
+
HttpStatus["OK_REASON_PHRASE"] = "OK";
|
|
60
|
+
HttpStatus["CREATED_REASON_PHRASE"] = "Created";
|
|
61
|
+
HttpStatus["ACCEPTED_REASON_PHRASE"] = "Accepted";
|
|
62
|
+
HttpStatus["NON_AUTHORITATIVE_INFORMATION_REASON_PHRASE"] = "Non-Authoritative Information";
|
|
63
|
+
HttpStatus["NO_CONTENT_REASON_PHRASE"] = "No Content";
|
|
64
|
+
HttpStatus["RESET_CONTENT_REASON_PHRASE"] = "Reset Content";
|
|
65
|
+
HttpStatus["PARTIAL_CONTENT_REASON_PHRASE"] = "Partial Content";
|
|
66
|
+
HttpStatus["MULTI_STATUS_REASON_PHRASE"] = "Multi-Status";
|
|
67
|
+
HttpStatus["ALREADY_REPORTED_REASON_PHRASE"] = "Already Reported";
|
|
68
|
+
HttpStatus["IM_USED_REASON_PHRASE"] = "IM Used";
|
|
69
|
+
// 3xx Redirection
|
|
70
|
+
HttpStatus["MULTIPLE_CHOICES_REASON_PHRASE"] = "Multiple Choices";
|
|
71
|
+
HttpStatus["MOVED_PERMANENTLY_REASON_PHRASE"] = "Moved Permanently";
|
|
72
|
+
HttpStatus["FOUND_REASON_PHRASE"] = "Found";
|
|
73
|
+
HttpStatus["MOVED_TEMPORARILY_REASON_PHRASE"] = "Moved Temporarily";
|
|
74
|
+
HttpStatus["SEE_OTHER_REASON_PHRASE"] = "See Other";
|
|
75
|
+
HttpStatus["NOT_MODIFIED_REASON_PHRASE"] = "Not Modified";
|
|
76
|
+
HttpStatus["USE_PROXY_REASON_PHRASE"] = "Use Proxy";
|
|
77
|
+
HttpStatus["TEMPORARY_REDIRECT_REASON_PHRASE"] = "Temporary Redirect";
|
|
78
|
+
HttpStatus["PERMANENT_REDIRECT_REASON_PHRASE"] = "Permanent Redirect";
|
|
79
|
+
// --- 4xx Client Error ---
|
|
80
|
+
HttpStatus["BAD_REQUEST_REASON_PHRASE"] = "Bad Request";
|
|
81
|
+
HttpStatus["UNAUTHORIZED_REASON_PHRASE"] = "Unauthorized";
|
|
82
|
+
HttpStatus["PAYMENT_REQUIRED_REASON_PHRASE"] = "Payment Required";
|
|
83
|
+
HttpStatus["FORBIDDEN_REASON_PHRASE"] = "Forbidden";
|
|
84
|
+
HttpStatus["NOT_FOUND_REASON_PHRASE"] = "Not Found";
|
|
85
|
+
HttpStatus["METHOD_NOT_ALLOWED_REASON_PHRASE"] = "Method Not Allowed";
|
|
86
|
+
HttpStatus["NOT_ACCEPTABLE_REASON_PHRASE"] = "Not Acceptable";
|
|
87
|
+
HttpStatus["PROXY_AUTHENTICATION_REQUIRED_REASON_PHRASE"] = "Proxy Authentication Required";
|
|
88
|
+
HttpStatus["REQUEST_TIMEOUT_REASON_PHRASE"] = "Request Timeout";
|
|
89
|
+
HttpStatus["CONFLICT_REASON_PHRASE"] = "Conflict";
|
|
90
|
+
HttpStatus["GONE_REASON_PHRASE"] = "Gone";
|
|
91
|
+
HttpStatus["LENGTH_REQUIRED_REASON_PHRASE"] = "Length Required";
|
|
92
|
+
HttpStatus["PRECONDITION_FAILED_REASON_PHRASE"] = "Precondition Failed";
|
|
93
|
+
HttpStatus["PAYLOAD_TOO_LARGE_REASON_PHRASE"] = "Payload Too Large";
|
|
94
|
+
HttpStatus["REQUEST_ENTITY_TOO_LARGE_REASON_PHRASE"] = "Request Entity Too Large";
|
|
95
|
+
HttpStatus["URI_TOO_LONG_REASON_PHRASE"] = "URI Too Long";
|
|
96
|
+
HttpStatus["REQUEST_URI_TOO_LONG_REASON_PHRASE"] = "Request-URI Too Long";
|
|
97
|
+
HttpStatus["UNSUPPORTED_MEDIA_TYPE_REASON_PHRASE"] = "Unsupported Media Type";
|
|
98
|
+
HttpStatus["REQUESTED_RANGE_NOT_SATISFIABLE_REASON_PHRASE"] = "Requested range not satisfiable";
|
|
99
|
+
HttpStatus["EXPECTATION_FAILED_REASON_PHRASE"] = "Expectation Failed";
|
|
100
|
+
HttpStatus["I_AM_A_TEAPOT_REASON_PHRASE"] = "I'm a teapot";
|
|
101
|
+
HttpStatus["INSUFFICIENT_SPACE_ON_RESOURCE_REASON_PHRASE"] = "Insufficient Space On Resource";
|
|
102
|
+
HttpStatus["METHOD_FAILURE_REASON_PHRASE"] = "Method Failure";
|
|
103
|
+
HttpStatus["DESTINATION_LOCKED_REASON_PHRASE"] = "Destination Locked";
|
|
104
|
+
HttpStatus["UNPROCESSABLE_ENTITY_REASON_PHRASE"] = "Unprocessable Entity";
|
|
105
|
+
HttpStatus["LOCKED_REASON_PHRASE"] = "Locked";
|
|
106
|
+
HttpStatus["FAILED_DEPENDENCY_REASON_PHRASE"] = "Failed Dependency";
|
|
107
|
+
HttpStatus["UPGRADE_REQUIRED_REASON_PHRASE"] = "Upgrade Required";
|
|
108
|
+
HttpStatus["PRECONDITION_REQUIRED_REASON_PHRASE"] = "Precondition Required";
|
|
109
|
+
HttpStatus["TOO_MANY_REQUESTS_REASON_PHRASE"] = "Too Many Requests";
|
|
110
|
+
HttpStatus["REQUEST_HEADER_FIELDS_TOO_LARGE_REASON_PHRASE"] = "Request Header Fields Too Large";
|
|
111
|
+
HttpStatus["UNAVAILABLE_FOR_LEGAL_REASONS_REASON_PHRASE"] = "Unavailable For Legal Reasons";
|
|
112
|
+
// --- 5xx Server Error ---
|
|
113
|
+
HttpStatus["INTERNAL_SERVER_ERROR_REASON_PHRASE"] = "Internal Server Error";
|
|
114
|
+
HttpStatus["NOT_IMPLEMENTED_REASON_PHRASE"] = "Not Implemented";
|
|
115
|
+
HttpStatus["BAD_GATEWAY_REASON_PHRASE"] = "Bad Gateway";
|
|
116
|
+
HttpStatus["SERVICE_UNAVAILABLE_REASON_PHRASE"] = "Service Unavailable";
|
|
117
|
+
HttpStatus["GATEWAY_TIMEOUT_REASON_PHRASE"] = "Gateway Timeout";
|
|
118
|
+
HttpStatus["HTTP_VERSION_NOT_SUPPORTED_REASON_PHRASE"] = "HTTP Version not supported";
|
|
119
|
+
HttpStatus["VARIANT_ALSO_NEGOTIATES_REASON_PHRASE"] = "Variant Also Negotiates";
|
|
120
|
+
HttpStatus["INSUFFICIENT_STORAGE_REASON_PHRASE"] = "Insufficient Storage";
|
|
121
|
+
HttpStatus["LOOP_DETECTED_REASON_PHRASE"] = "Loop Detected";
|
|
122
|
+
HttpStatus["BANDWIDTH_LIMIT_EXCEEDED_REASON_PHRASE"] = "Bandwidth Limit Exceeded";
|
|
123
|
+
HttpStatus["NOT_EXTENDED_REASON_PHRASE"] = "Not Extended";
|
|
124
|
+
})(HttpStatus || (HttpStatus = {}));
|
|
125
|
+
export var MediaType;
|
|
126
|
+
(function (MediaType) {
|
|
127
|
+
MediaType["ALL"] = "*/*";
|
|
128
|
+
MediaType["APPLICATION_ATOM_XML"] = "application/atom+xml";
|
|
129
|
+
MediaType["APPLICATION_FORM_URLENCODED"] = "application/x-www-form-urlencoded";
|
|
130
|
+
MediaType["APPLICATION_JSON"] = "application/json";
|
|
131
|
+
MediaType["APPLICATION_JSON_UTF8"] = "application/json;charset=UTF-8";
|
|
132
|
+
MediaType["APPLICATION_OCTET_STREAM"] = "application/octet-stream";
|
|
133
|
+
MediaType["APPLICATION_PDF"] = "application/pdf";
|
|
134
|
+
MediaType["APPLICATION_PROBLEM_JSON"] = "application/problem+json";
|
|
135
|
+
MediaType["APPLICATION_PROBLEM_JSON_UTF8"] = "application/problem+json;charset=UTF-8";
|
|
136
|
+
MediaType["APPLICATION_PROBLEM_XML"] = "application/problem+xml";
|
|
137
|
+
MediaType["APPLICATION_RSS_XML"] = "application/rss+xml";
|
|
138
|
+
MediaType["APPLICATION_STREAM_JSON"] = "application/stream+json";
|
|
139
|
+
MediaType["APPLICATION_XHTML_XML"] = "application/xhtml+xml";
|
|
140
|
+
MediaType["APPLICATION_XML"] = "application/xml";
|
|
141
|
+
MediaType["IMAGE_GIF"] = "image/gif";
|
|
142
|
+
MediaType["IMAGE_JPEG"] = "image/jpeg";
|
|
143
|
+
MediaType["IMAGE_PNG"] = "image/png";
|
|
144
|
+
MediaType["MULTIPART_FORM_DATA"] = "multipart/form-data";
|
|
145
|
+
MediaType["TEXT_EVENT_STREAM"] = "text/event-stream";
|
|
146
|
+
MediaType["TEXT_HTML"] = "text/html";
|
|
147
|
+
MediaType["TEXT_MARKDOWN"] = "text/markdown";
|
|
148
|
+
MediaType["TEXT_PLAIN"] = "text/plain";
|
|
149
|
+
MediaType["TEXT_XML"] = "text/xml";
|
|
150
|
+
})(MediaType || (MediaType = {}));
|
|
151
|
+
export var HttpMethod;
|
|
152
|
+
(function (HttpMethod) {
|
|
153
|
+
HttpMethod["GET"] = "GET";
|
|
154
|
+
HttpMethod["HEAD"] = "HEAD";
|
|
155
|
+
HttpMethod["POST"] = "POST";
|
|
156
|
+
HttpMethod["PUT"] = "PUT";
|
|
157
|
+
HttpMethod["PATCH"] = "PATCH";
|
|
158
|
+
HttpMethod["DELETE"] = "DELETE";
|
|
159
|
+
HttpMethod["OPTIONS"] = "OPTIONS";
|
|
160
|
+
HttpMethod["TRACE"] = "TRACE";
|
|
161
|
+
})(HttpMethod || (HttpMethod = {}));
|
|
162
|
+
export const XML_HTTP_REQUEST = 'XMLHttpRequest';
|
|
163
|
+
//# sourceMappingURL=http-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-protocol.js","sourceRoot":"","sources":["../../../src/common/http/http-protocol.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UA+HX;AA/HD,WAAY,UAAU;IAClB,qDAAc,CAAA;IACd,2EAAyB,CAAA;IACzB,yDAAgB,CAAA;IAChB,yCAAQ,CAAA;IACR,mDAAa,CAAA;IACb,qDAAc,CAAA;IACd,+FAAmC,CAAA;IACnC,yDAAgB,CAAA;IAChB,+DAAmB,CAAA;IACnB,mEAAqB,CAAA;IACrB,uDAAe,CAAA;IACf,uEAAuB,CAAA;IACvB,+CAAW,CAAA;IACX,uDAAe,CAAA;IACf,6DAAkB,CAAA;IAClB,yEAAwB,CAAA;IACxB,yEAAwB,CAAA;IACxB,2DAAiB,CAAA;IACjB,6DAAkB,CAAA;IAClB,qEAAsB,CAAA;IACtB,uDAAe,CAAA;IACf,uDAAe,CAAA;IACf,yEAAwB,CAAA;IACxB,iEAAoB,CAAA;IACpB,+FAAmC,CAAA;IACnC,mEAAqB,CAAA;IACrB,qDAAc,CAAA;IACd,6CAAU,CAAA;IACV,mEAAqB,CAAA;IACrB,2EAAyB,CAAA;IACzB,uEAAuB,CAAA;IACvB,6DAAkB,CAAA;IAClB,iFAA4B,CAAA;IAC5B,mGAAqC,CAAA;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