@celljs/http 3.0.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.
Files changed (49) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/cell.yml +6 -0
  4. package/lib/common/client/client-protocol.d.ts +9 -0
  5. package/lib/common/client/client-protocol.d.ts.map +1 -0
  6. package/lib/common/client/client-protocol.js +6 -0
  7. package/lib/common/client/client-protocol.js.map +1 -0
  8. package/lib/common/client/index.d.ts +3 -0
  9. package/lib/common/client/index.d.ts.map +1 -0
  10. package/lib/common/client/index.js +19 -0
  11. package/lib/common/client/index.js.map +1 -0
  12. package/lib/common/client/rest-operations-factory.d.ts +7 -0
  13. package/lib/common/client/rest-operations-factory.d.ts.map +1 -0
  14. package/lib/common/client/rest-operations-factory.js +29 -0
  15. package/lib/common/client/rest-operations-factory.js.map +1 -0
  16. package/lib/common/http/http-headers.d.ts +304 -0
  17. package/lib/common/http/http-headers.d.ts.map +1 -0
  18. package/lib/common/http/http-headers.js +308 -0
  19. package/lib/common/http/http-headers.js.map +1 -0
  20. package/lib/common/http/http-protocol.d.ts +156 -0
  21. package/lib/common/http/http-protocol.d.ts.map +1 -0
  22. package/lib/common/http/http-protocol.js +166 -0
  23. package/lib/common/http/http-protocol.js.map +1 -0
  24. package/lib/common/http/index.d.ts +3 -0
  25. package/lib/common/http/index.d.ts.map +1 -0
  26. package/lib/common/http/index.js +19 -0
  27. package/lib/common/http/index.js.map +1 -0
  28. package/lib/common/index.d.ts +3 -0
  29. package/lib/common/index.d.ts.map +1 -0
  30. package/lib/common/index.js +19 -0
  31. package/lib/common/index.js.map +1 -0
  32. package/lib/common/module.d.ts +3 -0
  33. package/lib/common/module.d.ts.map +1 -0
  34. package/lib/common/module.js +11 -0
  35. package/lib/common/module.js.map +1 -0
  36. package/lib/package.spec.d.ts +1 -0
  37. package/lib/package.spec.d.ts.map +1 -0
  38. package/lib/package.spec.js +4 -0
  39. package/lib/package.spec.js.map +1 -0
  40. package/package.json +43 -0
  41. package/src/common/client/client-protocol.ts +12 -0
  42. package/src/common/client/index.ts +2 -0
  43. package/src/common/client/rest-operations-factory.ts +15 -0
  44. package/src/common/http/http-headers.ts +304 -0
  45. package/src/common/http/http-protocol.ts +169 -0
  46. package/src/common/http/index.ts +2 -0
  47. package/src/common/index.ts +2 -0
  48. package/src/common/module.ts +10 -0
  49. package/src/package.spec.ts +4 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Cellbang
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # Cell - Http Component
package/cell.yml ADDED
@@ -0,0 +1,6 @@
1
+ cell:
2
+ client:
3
+ config:
4
+ withCredentials: true
5
+ headers:
6
+ X-Requested-With: XMLHttpRequest
@@ -0,0 +1,9 @@
1
+ import { AxiosInstance } from 'axios';
2
+ export declare const RestOperations: unique symbol;
3
+ export declare const RestOperationsFactory: unique symbol;
4
+ export interface RestOperations extends AxiosInstance {
5
+ }
6
+ export interface RestOperationsFactory {
7
+ create(): RestOperations;
8
+ }
9
+ //# sourceMappingURL=client-protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-protocol.d.ts","sourceRoot":"","sources":["../../../src/common/client/client-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,eAAO,MAAM,cAAc,eAA2B,CAAC;AACvD,eAAO,MAAM,qBAAqB,eAAkC,CAAC;AAErE,MAAM,WAAW,cAAe,SAAQ,aAAa;CAEpD;AAED,MAAM,WAAW,qBAAqB;IAClC,MAAM,IAAI,cAAc,CAAC;CAC5B"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RestOperationsFactory = exports.RestOperations = void 0;
4
+ exports.RestOperations = Symbol('RestOperations');
5
+ exports.RestOperationsFactory = Symbol('RestOperationsFactory');
6
+ //# sourceMappingURL=client-protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-protocol.js","sourceRoot":"","sources":["../../../src/common/client/client-protocol.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAC1C,QAAA,qBAAqB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './client-protocol';
2
+ export * from './rest-operations-factory';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client-protocol"), exports);
18
+ __exportStar(require("./rest-operations-factory"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,4DAA0C"}
@@ -0,0 +1,7 @@
1
+ import { RestOperationsFactory, RestOperations } from './client-protocol';
2
+ import { AxiosRequestConfig } from 'axios';
3
+ export declare class DefaultRestOperationsFactory implements RestOperationsFactory {
4
+ protected readonly clientConfig: AxiosRequestConfig;
5
+ create(): RestOperations;
6
+ }
7
+ //# sourceMappingURL=rest-operations-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rest-operations-factory.d.ts","sourceRoot":"","sources":["../../../src/common/client/rest-operations-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAc,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAGlD,qBACa,4BAA6B,YAAW,qBAAqB;IAGtE,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,kBAAkB,CAAC;IAEpD,MAAM,IAAI,cAAc;CAI3B"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DefaultRestOperationsFactory = void 0;
13
+ const client_protocol_1 = require("./client-protocol");
14
+ const axios_1 = require("axios");
15
+ const core_1 = require("@celljs/core");
16
+ let DefaultRestOperationsFactory = class DefaultRestOperationsFactory {
17
+ create() {
18
+ return axios_1.default.create(this.clientConfig);
19
+ }
20
+ };
21
+ __decorate([
22
+ (0, core_1.Value)('cell.client.config'),
23
+ __metadata("design:type", Object)
24
+ ], DefaultRestOperationsFactory.prototype, "clientConfig", void 0);
25
+ DefaultRestOperationsFactory = __decorate([
26
+ (0, core_1.Component)(client_protocol_1.RestOperationsFactory)
27
+ ], DefaultRestOperationsFactory);
28
+ exports.DefaultRestOperationsFactory = DefaultRestOperationsFactory;
29
+ //# sourceMappingURL=rest-operations-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rest-operations-factory.js","sourceRoot":"","sources":["../../../src/common/client/rest-operations-factory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAA0E;AAC1E,iCAAkD;AAClD,uCAAgD;AAGzC,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAKrC,MAAM;QACF,OAAO,eAAK,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC3C,CAAC;CAEJ,CAAA;AAPG;IAAC,IAAA,YAAK,EAAC,oBAAoB,CAAC;;kEACwB;AAH3C,4BAA4B;IADxC,IAAA,gBAAS,EAAC,uCAAqB,CAAC;GACpB,4BAA4B,CASxC;AATY,oEAA4B"}
@@ -0,0 +1,304 @@
1
+ export declare class HttpHeaders {
2
+ /**
3
+ * The HTTP {@code Accept} header field name.
4
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.2">Section 5.3.2 of RFC 7231</a>
5
+ */
6
+ static ACCEPT: string;
7
+ /**
8
+ * The HTTP {@code Accept-Charset} header field name.
9
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.3">Section 5.3.3 of RFC 7231</a>
10
+ */
11
+ static ACCEPT_CHARSET: string;
12
+ /**
13
+ * The HTTP {@code Accept-Encoding} header field name.
14
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.4">Section 5.3.4 of RFC 7231</a>
15
+ */
16
+ static ACCEPT_ENCODING: string;
17
+ /**
18
+ * The HTTP {@code Accept-Language} header field name.
19
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.5">Section 5.3.5 of RFC 7231</a>
20
+ */
21
+ static ACCEPT_LANGUAGE: string;
22
+ /**
23
+ * The HTTP {@code Accept-Ranges} header field name.
24
+ * @see <a href="https://tools.ietf.org/html/rfc7233#section-2.3">Section 5.3.5 of RFC 7233</a>
25
+ */
26
+ static ACCEPT_RANGES: string;
27
+ /**
28
+ * The CORS {@code Access-Control-Allow-Credentials} response header field name.
29
+ * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
30
+ */
31
+ static ACCESS_CONTROL_ALLOW_CREDENTIALS: string;
32
+ /**
33
+ * The CORS {@code Access-Control-Allow-Headers} response header field name.
34
+ * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
35
+ */
36
+ static ACCESS_CONTROL_ALLOW_HEADERS: string;
37
+ /**
38
+ * The CORS {@code Access-Control-Allow-Methods} response header field name.
39
+ * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
40
+ */
41
+ static ACCESS_CONTROL_ALLOW_METHODS: string;
42
+ /**
43
+ * The CORS {@code Access-Control-Allow-Origin} response header field name.
44
+ * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
45
+ */
46
+ static ACCESS_CONTROL_ALLOW_ORIGIN: string;
47
+ /**
48
+ * The CORS {@code Access-Control-Expose-Headers} response header field name.
49
+ * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
50
+ */
51
+ static ACCESS_CONTROL_EXPOSE_HEADERS: string;
52
+ /**
53
+ * The CORS {@code Access-Control-Max-Age} response header field name.
54
+ * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
55
+ */
56
+ static ACCESS_CONTROL_MAX_AGE: string;
57
+ /**
58
+ * The CORS {@code Access-Control-Request-Headers} request header field name.
59
+ * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
60
+ */
61
+ static ACCESS_CONTROL_REQUEST_HEADERS: string;
62
+ /**
63
+ * The CORS {@code Access-Control-Request-Method} request header field name.
64
+ * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
65
+ */
66
+ static ACCESS_CONTROL_REQUEST_METHOD: string;
67
+ /**
68
+ * The HTTP {@code Age} header field name.
69
+ * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.1">Section 5.1 of RFC 7234</a>
70
+ */
71
+ static AGE: string;
72
+ /**
73
+ * The HTTP {@code Allow} header field name.
74
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.4.1">Section 7.4.1 of RFC 7231</a>
75
+ */
76
+ static ALLOW: string;
77
+ /**
78
+ * The HTTP {@code Authorization} header field name.
79
+ * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.2">Section 4.2 of RFC 7235</a>
80
+ */
81
+ static AUTHORIZATION: string;
82
+ /**
83
+ * The HTTP {@code Cache-Control} header field name.
84
+ * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2">Section 5.2 of RFC 7234</a>
85
+ */
86
+ static CACHE_CONTROL: string;
87
+ /**
88
+ * The HTTP {@code Connection} header field name.
89
+ * @see <a href="https://tools.ietf.org/html/rfc7230#section-6.1">Section 6.1 of RFC 7230</a>
90
+ */
91
+ static CONNECTION: string;
92
+ /**
93
+ * The HTTP {@code Content-Encoding} header field name.
94
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.2.2">Section 3.1.2.2 of RFC 7231</a>
95
+ */
96
+ static CONTENT_ENCODING: string;
97
+ /**
98
+ * The HTTP {@code Content-Disposition} header field name.
99
+ * @see <a href="https://tools.ietf.org/html/rfc6266">RFC 6266</a>
100
+ */
101
+ static CONTENT_DISPOSITION: string;
102
+ /**
103
+ * The HTTP {@code Content-Language} header field name.
104
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.3.2">Section 3.1.3.2 of RFC 7231</a>
105
+ */
106
+ static CONTENT_LANGUAGE: string;
107
+ /**
108
+ * The HTTP {@code Content-Length} header field name.
109
+ * @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3.2">Section 3.3.2 of RFC 7230</a>
110
+ */
111
+ static CONTENT_LENGTH: string;
112
+ /**
113
+ * The HTTP {@code Content-Location} header field name.
114
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.4.2">Section 3.1.4.2 of RFC 7231</a>
115
+ */
116
+ static CONTENT_LOCATION: string;
117
+ /**
118
+ * The HTTP {@code Content-Range} header field name.
119
+ * @see <a href="https://tools.ietf.org/html/rfc7233#section-4.2">Section 4.2 of RFC 7233</a>
120
+ */
121
+ static CONTENT_RANGE: string;
122
+ /**
123
+ * The HTTP {@code Content-Type} header field name.
124
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.1.5">Section 3.1.1.5 of RFC 7231</a>
125
+ */
126
+ static CONTENT_TYPE: string;
127
+ /**
128
+ * The HTTP {@code Cookie} header field name.
129
+ * @see <a href="https://tools.ietf.org/html/rfc2109#section-4.3.4">Section 4.3.4 of RFC 2109</a>
130
+ */
131
+ static COOKIE: string;
132
+ /**
133
+ * The HTTP {@code Date} header field name.
134
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.1.2">Section 7.1.1.2 of RFC 7231</a>
135
+ */
136
+ static DATE: string;
137
+ /**
138
+ * The HTTP {@code ETag} header field name.
139
+ * @see <a href="https://tools.ietf.org/html/rfc7232#section-2.3">Section 2.3 of RFC 7232</a>
140
+ */
141
+ static ETAG: string;
142
+ /**
143
+ * The HTTP {@code Expect} header field name.
144
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.1.1">Section 5.1.1 of RFC 7231</a>
145
+ */
146
+ static EXPECT: string;
147
+ /**
148
+ * The HTTP {@code Expires} header field name.
149
+ * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.3">Section 5.3 of RFC 7234</a>
150
+ */
151
+ static EXPIRES: string;
152
+ /**
153
+ * The HTTP {@code From} header field name.
154
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.1">Section 5.5.1 of RFC 7231</a>
155
+ */
156
+ static FROM: string;
157
+ /**
158
+ * The HTTP {@code Host} header field name.
159
+ * @see <a href="https://tools.ietf.org/html/rfc7230#section-5.4">Section 5.4 of RFC 7230</a>
160
+ */
161
+ static HOST: string;
162
+ /**
163
+ * The HTTP {@code If-Match} header field name.
164
+ * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.1">Section 3.1 of RFC 7232</a>
165
+ */
166
+ static IF_MATCH: string;
167
+ /**
168
+ * The HTTP {@code If-Modified-Since} header field name.
169
+ * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.3">Section 3.3 of RFC 7232</a>
170
+ */
171
+ static IF_MODIFIED_SINCE: string;
172
+ /**
173
+ * The HTTP {@code If-None-Match} header field name.
174
+ * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.2">Section 3.2 of RFC 7232</a>
175
+ */
176
+ static IF_NONE_MATCH: string;
177
+ /**
178
+ * The HTTP {@code If-Range} header field name.
179
+ * @see <a href="https://tools.ietf.org/html/rfc7233#section-3.2">Section 3.2 of RFC 7233</a>
180
+ */
181
+ static IF_RANGE: string;
182
+ /**
183
+ * The HTTP {@code If-Unmodified-Since} header field name.
184
+ * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.4">Section 3.4 of RFC 7232</a>
185
+ */
186
+ static IF_UNMODIFIED_SINCE: string;
187
+ /**
188
+ * The HTTP {@code Last-Modified} header field name.
189
+ * @see <a href="https://tools.ietf.org/html/rfc7232#section-2.2">Section 2.2 of RFC 7232</a>
190
+ */
191
+ static LAST_MODIFIED: string;
192
+ /**
193
+ * The HTTP {@code Link} header field name.
194
+ * @see <a href="https://tools.ietf.org/html/rfc5988">RFC 5988</a>
195
+ */
196
+ static LINK: string;
197
+ /**
198
+ * The HTTP {@code Location} header field name.
199
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.2">Section 7.1.2 of RFC 7231</a>
200
+ */
201
+ static LOCATION: string;
202
+ /**
203
+ * The HTTP {@code Max-Forwards} header field name.
204
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.1.2">Section 5.1.2 of RFC 7231</a>
205
+ */
206
+ static MAX_FORWARDS: string;
207
+ /**
208
+ * The HTTP {@code Origin} header field name.
209
+ * @see <a href="https://tools.ietf.org/html/rfc6454">RFC 6454</a>
210
+ */
211
+ static ORIGIN: string;
212
+ /**
213
+ * The HTTP {@code Pragma} header field name.
214
+ * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.4">Section 5.4 of RFC 7234</a>
215
+ */
216
+ static PRAGMA: string;
217
+ /**
218
+ * The HTTP {@code Proxy-Authenticate} header field name.
219
+ * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.3">Section 4.3 of RFC 7235</a>
220
+ */
221
+ static PROXY_AUTHENTICATE: string;
222
+ /**
223
+ * The HTTP {@code Proxy-Authorization} header field name.
224
+ * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.4">Section 4.4 of RFC 7235</a>
225
+ */
226
+ static PROXY_AUTHORIZATION: string;
227
+ /**
228
+ * The HTTP {@code Range} header field name.
229
+ * @see <a href="https://tools.ietf.org/html/rfc7233#section-3.1">Section 3.1 of RFC 7233</a>
230
+ */
231
+ static RANGE: string;
232
+ /**
233
+ * The HTTP {@code Referer} header field name.
234
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.2">Section 5.5.2 of RFC 7231</a>
235
+ */
236
+ static REFERER: string;
237
+ /**
238
+ * The HTTP {@code Retry-After} header field name.
239
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.3">Section 7.1.3 of RFC 7231</a>
240
+ */
241
+ static RETRY_AFTER: string;
242
+ /**
243
+ * The HTTP {@code Server} header field name.
244
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.4.2">Section 7.4.2 of RFC 7231</a>
245
+ */
246
+ static SERVER: string;
247
+ /**
248
+ * The HTTP {@code Set-Cookie} header field name.
249
+ * @see <a href="https://tools.ietf.org/html/rfc2109#section-4.2.2">Section 4.2.2 of RFC 2109</a>
250
+ */
251
+ static SET_COOKIE: string;
252
+ /**
253
+ * The HTTP {@code Set-Cookie2} header field name.
254
+ * @see <a href="https://tools.ietf.org/html/rfc2965">RFC 2965</a>
255
+ */
256
+ static SET_COOKIE2: string;
257
+ /**
258
+ * The HTTP {@code TE} header field name.
259
+ * @see <a href="https://tools.ietf.org/html/rfc7230#section-4.3">Section 4.3 of RFC 7230</a>
260
+ */
261
+ static TE: string;
262
+ /**
263
+ * The HTTP {@code Trailer} header field name.
264
+ * @see <a href="https://tools.ietf.org/html/rfc7230#section-4.4">Section 4.4 of RFC 7230</a>
265
+ */
266
+ static TRAILER: string;
267
+ /**
268
+ * The HTTP {@code Transfer-Encoding} header field name.
269
+ * @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3.1">Section 3.3.1 of RFC 7230</a>
270
+ */
271
+ static TRANSFER_ENCODING: string;
272
+ /**
273
+ * The HTTP {@code Upgrade} header field name.
274
+ * @see <a href="https://tools.ietf.org/html/rfc7230#section-6.7">Section 6.7 of RFC 7230</a>
275
+ */
276
+ static UPGRADE: string;
277
+ /**
278
+ * The HTTP {@code User-Agent} header field name.
279
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.3">Section 5.5.3 of RFC 7231</a>
280
+ */
281
+ static USER_AGENT: string;
282
+ /**
283
+ * The HTTP {@code Vary} header field name.
284
+ * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.4">Section 7.1.4 of RFC 7231</a>
285
+ */
286
+ static VARY: string;
287
+ /**
288
+ * The HTTP {@code Via} header field name.
289
+ * @see <a href="https://tools.ietf.org/html/rfc7230#section-5.7.1">Section 5.7.1 of RFC 7230</a>
290
+ */
291
+ static VIA: string;
292
+ /**
293
+ * The HTTP {@code Warning} header field name.
294
+ * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.5">Section 5.5 of RFC 7234</a>
295
+ */
296
+ static WARNING: string;
297
+ /**
298
+ * The HTTP {@code WWW-Authenticate} header field name.
299
+ * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.1">Section 4.1 of RFC 7235</a>
300
+ */
301
+ static WWW_AUTHENTICATE: string;
302
+ static X_REQUESTED_WITH: string;
303
+ }
304
+ //# sourceMappingURL=http-headers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-headers.d.ts","sourceRoot":"","sources":["../../../src/common/http/http-headers.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IACpB;;;OAGG;IACH,OAAc,MAAM,SAAY;IAChC;;;OAGG;IACH,OAAc,cAAc,SAAoB;IAChD;;;OAGG;IACH,OAAc,eAAe,SAAqB;IAClD;;;OAGG;IACH,OAAc,eAAe,SAAqB;IAClD;;;OAGG;IACH,OAAc,aAAa,SAAmB;IAC9C;;;OAGG;IACH,OAAc,gCAAgC,SAAsC;IACpF;;;OAGG;IACH,OAAc,4BAA4B,SAAkC;IAC5E;;;OAGG;IACH,OAAc,4BAA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