@celljs/http 3.0.0 → 3.1.1

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.
@@ -1,19 +1,6 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client-protocol"), exports);
18
- __exportStar(require("./rest-operations-factory"), exports);
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./client-protocol"), exports);
5
+ tslib_1.__exportStar(require("./rest-operations-factory"), exports);
19
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/client/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,oEAA0C"}
@@ -1,15 +1,7 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.DefaultRestOperationsFactory = void 0;
4
+ const tslib_1 = require("tslib");
13
5
  const client_protocol_1 = require("./client-protocol");
14
6
  const axios_1 = require("axios");
15
7
  const core_1 = require("@celljs/core");
@@ -18,11 +10,11 @@ let DefaultRestOperationsFactory = class DefaultRestOperationsFactory {
18
10
  return axios_1.default.create(this.clientConfig);
19
11
  }
20
12
  };
21
- __decorate([
13
+ tslib_1.__decorate([
22
14
  (0, core_1.Value)('cell.client.config'),
23
- __metadata("design:type", Object)
15
+ tslib_1.__metadata("design:type", Object)
24
16
  ], DefaultRestOperationsFactory.prototype, "clientConfig", void 0);
25
- DefaultRestOperationsFactory = __decorate([
17
+ DefaultRestOperationsFactory = tslib_1.__decorate([
26
18
  (0, core_1.Component)(client_protocol_1.RestOperationsFactory)
27
19
  ], DefaultRestOperationsFactory);
28
20
  exports.DefaultRestOperationsFactory = DefaultRestOperationsFactory;
@@ -1 +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"}
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"}
@@ -1,301 +1,301 @@
1
1
  export declare class HttpHeaders {
2
2
  /**
3
- * The HTTP {@code Accept} header field name.
3
+ * The HTTP `Accept` header field name.
4
4
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.2">Section 5.3.2 of RFC 7231</a>
5
5
  */
6
6
  static ACCEPT: string;
7
7
  /**
8
- * The HTTP {@code Accept-Charset} header field name.
8
+ * The HTTP `Accept-Charset`header field name.
9
9
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.3">Section 5.3.3 of RFC 7231</a>
10
10
  */
11
11
  static ACCEPT_CHARSET: string;
12
12
  /**
13
- * The HTTP {@code Accept-Encoding} header field name.
13
+ * The HTTP `Accept-Encoding` header field name.
14
14
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.4">Section 5.3.4 of RFC 7231</a>
15
15
  */
16
16
  static ACCEPT_ENCODING: string;
17
17
  /**
18
- * The HTTP {@code Accept-Language} header field name.
18
+ * The HTTP `Accept-Language` header field name.
19
19
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.5">Section 5.3.5 of RFC 7231</a>
20
20
  */
21
21
  static ACCEPT_LANGUAGE: string;
22
22
  /**
23
- * The HTTP {@code Accept-Ranges} header field name.
23
+ * The HTTP `Accept-Ranges` header field name.
24
24
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-2.3">Section 5.3.5 of RFC 7233</a>
25
25
  */
26
26
  static ACCEPT_RANGES: string;
27
27
  /**
28
- * The CORS {@code Access-Control-Allow-Credentials} response header field name.
28
+ * The CORS `Access-Control-Allow-Credentials` response header field name.
29
29
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
30
30
  */
31
31
  static ACCESS_CONTROL_ALLOW_CREDENTIALS: string;
32
32
  /**
33
- * The CORS {@code Access-Control-Allow-Headers} response header field name.
33
+ * The CORS `Access-Control-Allow-Headers` response header field name.
34
34
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
35
35
  */
36
36
  static ACCESS_CONTROL_ALLOW_HEADERS: string;
37
37
  /**
38
- * The CORS {@code Access-Control-Allow-Methods} response header field name.
38
+ * The CORS `Access-Control-Allow-Methods` response header field name.
39
39
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
40
40
  */
41
41
  static ACCESS_CONTROL_ALLOW_METHODS: string;
42
42
  /**
43
- * The CORS {@code Access-Control-Allow-Origin} response header field name.
43
+ * The CORS `Access-Control-Allow-Origin` response header field name.
44
44
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
45
45
  */
46
46
  static ACCESS_CONTROL_ALLOW_ORIGIN: string;
47
47
  /**
48
- * The CORS {@code Access-Control-Expose-Headers} response header field name.
48
+ * The CORS `Access-Control-Expose-Headers` response header field name.
49
49
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
50
50
  */
51
51
  static ACCESS_CONTROL_EXPOSE_HEADERS: string;
52
52
  /**
53
- * The CORS {@code Access-Control-Max-Age} response header field name.
53
+ * The CORS `Access-Control-Max-Age` response header field name.
54
54
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
55
55
  */
56
56
  static ACCESS_CONTROL_MAX_AGE: string;
57
57
  /**
58
- * The CORS {@code Access-Control-Request-Headers} request header field name.
58
+ * The CORS `Access-Control-Request-Headers` request header field name.
59
59
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
60
60
  */
61
61
  static ACCESS_CONTROL_REQUEST_HEADERS: string;
62
62
  /**
63
- * The CORS {@code Access-Control-Request-Method} request header field name.
63
+ * The CORS `Access-Control-Request-Method` request header field name.
64
64
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
65
65
  */
66
66
  static ACCESS_CONTROL_REQUEST_METHOD: string;
67
67
  /**
68
- * The HTTP {@code Age} header field name.
68
+ * The HTTP `Age` header field name.
69
69
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.1">Section 5.1 of RFC 7234</a>
70
70
  */
71
71
  static AGE: string;
72
72
  /**
73
- * The HTTP {@code Allow} header field name.
73
+ * The HTTP `Allow` header field name.
74
74
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.4.1">Section 7.4.1 of RFC 7231</a>
75
75
  */
76
76
  static ALLOW: string;
77
77
  /**
78
- * The HTTP {@code Authorization} header field name.
78
+ * The HTTP `Authorization` header field name.
79
79
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.2">Section 4.2 of RFC 7235</a>
80
80
  */
81
81
  static AUTHORIZATION: string;
82
82
  /**
83
- * The HTTP {@code Cache-Control} header field name.
83
+ * The HTTP `Cache-Control` header field name.
84
84
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2">Section 5.2 of RFC 7234</a>
85
85
  */
86
86
  static CACHE_CONTROL: string;
87
87
  /**
88
- * The HTTP {@code Connection} header field name.
88
+ * The HTTP `Connection` header field name.
89
89
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-6.1">Section 6.1 of RFC 7230</a>
90
90
  */
91
91
  static CONNECTION: string;
92
92
  /**
93
- * The HTTP {@code Content-Encoding} header field name.
93
+ * The HTTP `Content-Encoding` header field name.
94
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
95
  */
96
96
  static CONTENT_ENCODING: string;
97
97
  /**
98
- * The HTTP {@code Content-Disposition} header field name.
98
+ * The HTTP `Content-Disposition` header field name.
99
99
  * @see <a href="https://tools.ietf.org/html/rfc6266">RFC 6266</a>
100
100
  */
101
101
  static CONTENT_DISPOSITION: string;
102
102
  /**
103
- * The HTTP {@code Content-Language} header field name.
103
+ * The HTTP `Content-Language` header field name.
104
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
105
  */
106
106
  static CONTENT_LANGUAGE: string;
107
107
  /**
108
- * The HTTP {@code Content-Length} header field name.
108
+ * The HTTP `Content-Length`header field name.
109
109
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3.2">Section 3.3.2 of RFC 7230</a>
110
110
  */
111
111
  static CONTENT_LENGTH: string;
112
112
  /**
113
- * The HTTP {@code Content-Location} header field name.
113
+ * The HTTP `Content-Location`header field name.
114
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
115
  */
116
116
  static CONTENT_LOCATION: string;
117
117
  /**
118
- * The HTTP {@code Content-Range} header field name.
118
+ * The HTTP `Content-Range`header field name.
119
119
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-4.2">Section 4.2 of RFC 7233</a>
120
120
  */
121
121
  static CONTENT_RANGE: string;
122
122
  /**
123
- * The HTTP {@code Content-Type} header field name.
123
+ * The HTTP `Content-Type`header field name.
124
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
125
  */
126
126
  static CONTENT_TYPE: string;
127
127
  /**
128
- * The HTTP {@code Cookie} header field name.
128
+ * The HTTP `Cookie`header field name.
129
129
  * @see <a href="https://tools.ietf.org/html/rfc2109#section-4.3.4">Section 4.3.4 of RFC 2109</a>
130
130
  */
131
131
  static COOKIE: string;
132
132
  /**
133
- * The HTTP {@code Date} header field name.
133
+ * The HTTP `Date`header field name.
134
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
135
  */
136
136
  static DATE: string;
137
137
  /**
138
- * The HTTP {@code ETag} header field name.
138
+ * The HTTP `ETag`header field name.
139
139
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-2.3">Section 2.3 of RFC 7232</a>
140
140
  */
141
141
  static ETAG: string;
142
142
  /**
143
- * The HTTP {@code Expect} header field name.
143
+ * The HTTP `Expect`header field name.
144
144
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.1.1">Section 5.1.1 of RFC 7231</a>
145
145
  */
146
146
  static EXPECT: string;
147
147
  /**
148
- * The HTTP {@code Expires} header field name.
148
+ * The HTTP `Expires`header field name.
149
149
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.3">Section 5.3 of RFC 7234</a>
150
150
  */
151
151
  static EXPIRES: string;
152
152
  /**
153
- * The HTTP {@code From} header field name.
153
+ * The HTTP `From`header field name.
154
154
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.1">Section 5.5.1 of RFC 7231</a>
155
155
  */
156
156
  static FROM: string;
157
157
  /**
158
- * The HTTP {@code Host} header field name.
158
+ * The HTTP `Host`header field name.
159
159
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-5.4">Section 5.4 of RFC 7230</a>
160
160
  */
161
161
  static HOST: string;
162
162
  /**
163
- * The HTTP {@code If-Match} header field name.
163
+ * The HTTP `If-Match`header field name.
164
164
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.1">Section 3.1 of RFC 7232</a>
165
165
  */
166
166
  static IF_MATCH: string;
167
167
  /**
168
- * The HTTP {@code If-Modified-Since} header field name.
168
+ * The HTTP `If-Modified-Since`header field name.
169
169
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.3">Section 3.3 of RFC 7232</a>
170
170
  */
171
171
  static IF_MODIFIED_SINCE: string;
172
172
  /**
173
- * The HTTP {@code If-None-Match} header field name.
173
+ * The HTTP `If-None-Match`header field name.
174
174
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.2">Section 3.2 of RFC 7232</a>
175
175
  */
176
176
  static IF_NONE_MATCH: string;
177
177
  /**
178
- * The HTTP {@code If-Range} header field name.
178
+ * The HTTP `If-Range`header field name.
179
179
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-3.2">Section 3.2 of RFC 7233</a>
180
180
  */
181
181
  static IF_RANGE: string;
182
182
  /**
183
- * The HTTP {@code If-Unmodified-Since} header field name.
183
+ * The HTTP `If-Unmodified-Since`header field name.
184
184
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.4">Section 3.4 of RFC 7232</a>
185
185
  */
186
186
  static IF_UNMODIFIED_SINCE: string;
187
187
  /**
188
- * The HTTP {@code Last-Modified} header field name.
188
+ * The HTTP `Last-Modified`header field name.
189
189
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-2.2">Section 2.2 of RFC 7232</a>
190
190
  */
191
191
  static LAST_MODIFIED: string;
192
192
  /**
193
- * The HTTP {@code Link} header field name.
193
+ * The HTTP `Link`header field name.
194
194
  * @see <a href="https://tools.ietf.org/html/rfc5988">RFC 5988</a>
195
195
  */
196
196
  static LINK: string;
197
197
  /**
198
- * The HTTP {@code Location} header field name.
198
+ * The HTTP `Location`header field name.
199
199
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.2">Section 7.1.2 of RFC 7231</a>
200
200
  */
201
201
  static LOCATION: string;
202
202
  /**
203
- * The HTTP {@code Max-Forwards} header field name.
203
+ * The HTTP `Max-Forwards`header field name.
204
204
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.1.2">Section 5.1.2 of RFC 7231</a>
205
205
  */
206
206
  static MAX_FORWARDS: string;
207
207
  /**
208
- * The HTTP {@code Origin} header field name.
208
+ * The HTTP `Origin`header field name.
209
209
  * @see <a href="https://tools.ietf.org/html/rfc6454">RFC 6454</a>
210
210
  */
211
211
  static ORIGIN: string;
212
212
  /**
213
- * The HTTP {@code Pragma} header field name.
213
+ * The HTTP `Pragma`header field name.
214
214
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.4">Section 5.4 of RFC 7234</a>
215
215
  */
216
216
  static PRAGMA: string;
217
217
  /**
218
- * The HTTP {@code Proxy-Authenticate} header field name.
218
+ * The HTTP `Proxy-Authenticate`header field name.
219
219
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.3">Section 4.3 of RFC 7235</a>
220
220
  */
221
221
  static PROXY_AUTHENTICATE: string;
222
222
  /**
223
- * The HTTP {@code Proxy-Authorization} header field name.
223
+ * The HTTP `Proxy-Authorization`header field name.
224
224
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.4">Section 4.4 of RFC 7235</a>
225
225
  */
226
226
  static PROXY_AUTHORIZATION: string;
227
227
  /**
228
- * The HTTP {@code Range} header field name.
228
+ * The HTTP `Range`header field name.
229
229
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-3.1">Section 3.1 of RFC 7233</a>
230
230
  */
231
231
  static RANGE: string;
232
232
  /**
233
- * The HTTP {@code Referer} header field name.
233
+ * The HTTP `Referer`header field name.
234
234
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.2">Section 5.5.2 of RFC 7231</a>
235
235
  */
236
236
  static REFERER: string;
237
237
  /**
238
- * The HTTP {@code Retry-After} header field name.
238
+ * The HTTP `Retry-After`header field name.
239
239
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.3">Section 7.1.3 of RFC 7231</a>
240
240
  */
241
241
  static RETRY_AFTER: string;
242
242
  /**
243
- * The HTTP {@code Server} header field name.
243
+ * The HTTP `Server`header field name.
244
244
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.4.2">Section 7.4.2 of RFC 7231</a>
245
245
  */
246
246
  static SERVER: string;
247
247
  /**
248
- * The HTTP {@code Set-Cookie} header field name.
248
+ * The HTTP `Set-Cookie`header field name.
249
249
  * @see <a href="https://tools.ietf.org/html/rfc2109#section-4.2.2">Section 4.2.2 of RFC 2109</a>
250
250
  */
251
251
  static SET_COOKIE: string;
252
252
  /**
253
- * The HTTP {@code Set-Cookie2} header field name.
253
+ * The HTTP `Set-Cookie2`header field name.
254
254
  * @see <a href="https://tools.ietf.org/html/rfc2965">RFC 2965</a>
255
255
  */
256
256
  static SET_COOKIE2: string;
257
257
  /**
258
- * The HTTP {@code TE} header field name.
258
+ * The HTTP `TE`header field name.
259
259
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-4.3">Section 4.3 of RFC 7230</a>
260
260
  */
261
261
  static TE: string;
262
262
  /**
263
- * The HTTP {@code Trailer} header field name.
263
+ * The HTTP `Trailer`header field name.
264
264
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-4.4">Section 4.4 of RFC 7230</a>
265
265
  */
266
266
  static TRAILER: string;
267
267
  /**
268
- * The HTTP {@code Transfer-Encoding} header field name.
268
+ * The HTTP `Transfer-Encoding`header field name.
269
269
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3.1">Section 3.3.1 of RFC 7230</a>
270
270
  */
271
271
  static TRANSFER_ENCODING: string;
272
272
  /**
273
- * The HTTP {@code Upgrade} header field name.
273
+ * The HTTP `Upgrade`header field name.
274
274
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-6.7">Section 6.7 of RFC 7230</a>
275
275
  */
276
276
  static UPGRADE: string;
277
277
  /**
278
- * The HTTP {@code User-Agent} header field name.
278
+ * The HTTP `User-Agent`header field name.
279
279
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.3">Section 5.5.3 of RFC 7231</a>
280
280
  */
281
281
  static USER_AGENT: string;
282
282
  /**
283
- * The HTTP {@code Vary} header field name.
283
+ * The HTTP `Vary`header field name.
284
284
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.4">Section 7.1.4 of RFC 7231</a>
285
285
  */
286
286
  static VARY: string;
287
287
  /**
288
- * The HTTP {@code Via} header field name.
288
+ * The HTTP `Via`header field name.
289
289
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-5.7.1">Section 5.7.1 of RFC 7230</a>
290
290
  */
291
291
  static VIA: string;
292
292
  /**
293
- * The HTTP {@code Warning} header field name.
293
+ * The HTTP `Warning`header field name.
294
294
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.5">Section 5.5 of RFC 7234</a>
295
295
  */
296
296
  static WARNING: string;
297
297
  /**
298
- * The HTTP {@code WWW-Authenticate} header field name.
298
+ * The HTTP `WWW-Authenticate`header field name.
299
299
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.1">Section 4.1 of RFC 7235</a>
300
300
  */
301
301
  static WWW_AUTHENTICATE: string;
@@ -5,302 +5,302 @@ class HttpHeaders {
5
5
  }
6
6
  exports.HttpHeaders = HttpHeaders;
7
7
  /**
8
- * The HTTP {@code Accept} header field name.
8
+ * The HTTP `Accept` header field name.
9
9
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.2">Section 5.3.2 of RFC 7231</a>
10
10
  */
11
11
  HttpHeaders.ACCEPT = 'Accept';
12
12
  /**
13
- * The HTTP {@code Accept-Charset} header field name.
13
+ * The HTTP `Accept-Charset`header field name.
14
14
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.3">Section 5.3.3 of RFC 7231</a>
15
15
  */
16
16
  HttpHeaders.ACCEPT_CHARSET = 'Accept-Charset';
17
17
  /**
18
- * The HTTP {@code Accept-Encoding} header field name.
18
+ * The HTTP `Accept-Encoding` header field name.
19
19
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.4">Section 5.3.4 of RFC 7231</a>
20
20
  */
21
21
  HttpHeaders.ACCEPT_ENCODING = 'Accept-Encoding';
22
22
  /**
23
- * The HTTP {@code Accept-Language} header field name.
23
+ * The HTTP `Accept-Language` header field name.
24
24
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.5">Section 5.3.5 of RFC 7231</a>
25
25
  */
26
26
  HttpHeaders.ACCEPT_LANGUAGE = 'Accept-Language';
27
27
  /**
28
- * The HTTP {@code Accept-Ranges} header field name.
28
+ * The HTTP `Accept-Ranges` header field name.
29
29
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-2.3">Section 5.3.5 of RFC 7233</a>
30
30
  */
31
31
  HttpHeaders.ACCEPT_RANGES = 'Accept-Ranges';
32
32
  /**
33
- * The CORS {@code Access-Control-Allow-Credentials} response header field name.
33
+ * The CORS `Access-Control-Allow-Credentials` response header field name.
34
34
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
35
35
  */
36
36
  HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS = 'Access-Control-Allow-Credentials';
37
37
  /**
38
- * The CORS {@code Access-Control-Allow-Headers} response header field name.
38
+ * The CORS `Access-Control-Allow-Headers` response header field name.
39
39
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
40
40
  */
41
41
  HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS = 'Access-Control-Allow-Headers';
42
42
  /**
43
- * The CORS {@code Access-Control-Allow-Methods} response header field name.
43
+ * The CORS `Access-Control-Allow-Methods` response header field name.
44
44
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
45
45
  */
46
46
  HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS = 'Access-Control-Allow-Methods';
47
47
  /**
48
- * The CORS {@code Access-Control-Allow-Origin} response header field name.
48
+ * The CORS `Access-Control-Allow-Origin` response header field name.
49
49
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
50
50
  */
51
51
  HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN = 'Access-Control-Allow-Origin';
52
52
  /**
53
- * The CORS {@code Access-Control-Expose-Headers} response header field name.
53
+ * The CORS `Access-Control-Expose-Headers` response header field name.
54
54
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
55
55
  */
56
56
  HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS = 'Access-Control-Expose-Headers';
57
57
  /**
58
- * The CORS {@code Access-Control-Max-Age} response header field name.
58
+ * The CORS `Access-Control-Max-Age` response header field name.
59
59
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
60
60
  */
61
61
  HttpHeaders.ACCESS_CONTROL_MAX_AGE = 'Access-Control-Max-Age';
62
62
  /**
63
- * The CORS {@code Access-Control-Request-Headers} request header field name.
63
+ * The CORS `Access-Control-Request-Headers` request header field name.
64
64
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
65
65
  */
66
66
  HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS = 'Access-Control-Request-Headers';
67
67
  /**
68
- * The CORS {@code Access-Control-Request-Method} request header field name.
68
+ * The CORS `Access-Control-Request-Method` request header field name.
69
69
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
70
70
  */
71
71
  HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD = 'Access-Control-Request-Method';
72
72
  /**
73
- * The HTTP {@code Age} header field name.
73
+ * The HTTP `Age` header field name.
74
74
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.1">Section 5.1 of RFC 7234</a>
75
75
  */
76
76
  HttpHeaders.AGE = 'Age';
77
77
  /**
78
- * The HTTP {@code Allow} header field name.
78
+ * The HTTP `Allow` header field name.
79
79
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.4.1">Section 7.4.1 of RFC 7231</a>
80
80
  */
81
81
  HttpHeaders.ALLOW = 'Allow';
82
82
  /**
83
- * The HTTP {@code Authorization} header field name.
83
+ * The HTTP `Authorization` header field name.
84
84
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.2">Section 4.2 of RFC 7235</a>
85
85
  */
86
86
  HttpHeaders.AUTHORIZATION = 'Authorization';
87
87
  /**
88
- * The HTTP {@code Cache-Control} header field name.
88
+ * The HTTP `Cache-Control` header field name.
89
89
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2">Section 5.2 of RFC 7234</a>
90
90
  */
91
91
  HttpHeaders.CACHE_CONTROL = 'Cache-Control';
92
92
  /**
93
- * The HTTP {@code Connection} header field name.
93
+ * The HTTP `Connection` header field name.
94
94
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-6.1">Section 6.1 of RFC 7230</a>
95
95
  */
96
96
  HttpHeaders.CONNECTION = 'Connection';
97
97
  /**
98
- * The HTTP {@code Content-Encoding} header field name.
98
+ * The HTTP `Content-Encoding` header field name.
99
99
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.2.2">Section 3.1.2.2 of RFC 7231</a>
100
100
  */
101
101
  HttpHeaders.CONTENT_ENCODING = 'Content-Encoding';
102
102
  /**
103
- * The HTTP {@code Content-Disposition} header field name.
103
+ * The HTTP `Content-Disposition` header field name.
104
104
  * @see <a href="https://tools.ietf.org/html/rfc6266">RFC 6266</a>
105
105
  */
106
106
  HttpHeaders.CONTENT_DISPOSITION = 'Content-Disposition';
107
107
  /**
108
- * The HTTP {@code Content-Language} header field name.
108
+ * The HTTP `Content-Language` header field name.
109
109
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.3.2">Section 3.1.3.2 of RFC 7231</a>
110
110
  */
111
111
  HttpHeaders.CONTENT_LANGUAGE = 'Content-Language';
112
112
  /**
113
- * The HTTP {@code Content-Length} header field name.
113
+ * The HTTP `Content-Length`header field name.
114
114
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3.2">Section 3.3.2 of RFC 7230</a>
115
115
  */
116
116
  HttpHeaders.CONTENT_LENGTH = 'Content-Length';
117
117
  /**
118
- * The HTTP {@code Content-Location} header field name.
118
+ * The HTTP `Content-Location`header field name.
119
119
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.4.2">Section 3.1.4.2 of RFC 7231</a>
120
120
  */
121
121
  HttpHeaders.CONTENT_LOCATION = 'Content-Location';
122
122
  /**
123
- * The HTTP {@code Content-Range} header field name.
123
+ * The HTTP `Content-Range`header field name.
124
124
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-4.2">Section 4.2 of RFC 7233</a>
125
125
  */
126
126
  HttpHeaders.CONTENT_RANGE = 'Content-Range';
127
127
  /**
128
- * The HTTP {@code Content-Type} header field name.
128
+ * The HTTP `Content-Type`header field name.
129
129
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.1.5">Section 3.1.1.5 of RFC 7231</a>
130
130
  */
131
131
  HttpHeaders.CONTENT_TYPE = 'Content-Type';
132
132
  /**
133
- * The HTTP {@code Cookie} header field name.
133
+ * The HTTP `Cookie`header field name.
134
134
  * @see <a href="https://tools.ietf.org/html/rfc2109#section-4.3.4">Section 4.3.4 of RFC 2109</a>
135
135
  */
136
136
  HttpHeaders.COOKIE = 'Cookie';
137
137
  /**
138
- * The HTTP {@code Date} header field name.
138
+ * The HTTP `Date`header field name.
139
139
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.1.2">Section 7.1.1.2 of RFC 7231</a>
140
140
  */
141
141
  HttpHeaders.DATE = 'Date';
142
142
  /**
143
- * The HTTP {@code ETag} header field name.
143
+ * The HTTP `ETag`header field name.
144
144
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-2.3">Section 2.3 of RFC 7232</a>
145
145
  */
146
146
  HttpHeaders.ETAG = 'ETag';
147
147
  /**
148
- * The HTTP {@code Expect} header field name.
148
+ * The HTTP `Expect`header field name.
149
149
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.1.1">Section 5.1.1 of RFC 7231</a>
150
150
  */
151
151
  HttpHeaders.EXPECT = 'Expect';
152
152
  /**
153
- * The HTTP {@code Expires} header field name.
153
+ * The HTTP `Expires`header field name.
154
154
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.3">Section 5.3 of RFC 7234</a>
155
155
  */
156
156
  HttpHeaders.EXPIRES = 'Expires';
157
157
  /**
158
- * The HTTP {@code From} header field name.
158
+ * The HTTP `From`header field name.
159
159
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.1">Section 5.5.1 of RFC 7231</a>
160
160
  */
161
161
  HttpHeaders.FROM = 'From';
162
162
  /**
163
- * The HTTP {@code Host} header field name.
163
+ * The HTTP `Host`header field name.
164
164
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-5.4">Section 5.4 of RFC 7230</a>
165
165
  */
166
166
  HttpHeaders.HOST = 'Host';
167
167
  /**
168
- * The HTTP {@code If-Match} header field name.
168
+ * The HTTP `If-Match`header field name.
169
169
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.1">Section 3.1 of RFC 7232</a>
170
170
  */
171
171
  HttpHeaders.IF_MATCH = 'If-Match';
172
172
  /**
173
- * The HTTP {@code If-Modified-Since} header field name.
173
+ * The HTTP `If-Modified-Since`header field name.
174
174
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.3">Section 3.3 of RFC 7232</a>
175
175
  */
176
176
  HttpHeaders.IF_MODIFIED_SINCE = 'If-Modified-Since';
177
177
  /**
178
- * The HTTP {@code If-None-Match} header field name.
178
+ * The HTTP `If-None-Match`header field name.
179
179
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.2">Section 3.2 of RFC 7232</a>
180
180
  */
181
181
  HttpHeaders.IF_NONE_MATCH = 'If-None-Match';
182
182
  /**
183
- * The HTTP {@code If-Range} header field name.
183
+ * The HTTP `If-Range`header field name.
184
184
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-3.2">Section 3.2 of RFC 7233</a>
185
185
  */
186
186
  HttpHeaders.IF_RANGE = 'If-Range';
187
187
  /**
188
- * The HTTP {@code If-Unmodified-Since} header field name.
188
+ * The HTTP `If-Unmodified-Since`header field name.
189
189
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.4">Section 3.4 of RFC 7232</a>
190
190
  */
191
191
  HttpHeaders.IF_UNMODIFIED_SINCE = 'If-Unmodified-Since';
192
192
  /**
193
- * The HTTP {@code Last-Modified} header field name.
193
+ * The HTTP `Last-Modified`header field name.
194
194
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-2.2">Section 2.2 of RFC 7232</a>
195
195
  */
196
196
  HttpHeaders.LAST_MODIFIED = 'Last-Modified';
197
197
  /**
198
- * The HTTP {@code Link} header field name.
198
+ * The HTTP `Link`header field name.
199
199
  * @see <a href="https://tools.ietf.org/html/rfc5988">RFC 5988</a>
200
200
  */
201
201
  HttpHeaders.LINK = 'Link';
202
202
  /**
203
- * The HTTP {@code Location} header field name.
203
+ * The HTTP `Location`header field name.
204
204
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.2">Section 7.1.2 of RFC 7231</a>
205
205
  */
206
206
  HttpHeaders.LOCATION = 'Location';
207
207
  /**
208
- * The HTTP {@code Max-Forwards} header field name.
208
+ * The HTTP `Max-Forwards`header field name.
209
209
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.1.2">Section 5.1.2 of RFC 7231</a>
210
210
  */
211
211
  HttpHeaders.MAX_FORWARDS = 'Max-Forwards';
212
212
  /**
213
- * The HTTP {@code Origin} header field name.
213
+ * The HTTP `Origin`header field name.
214
214
  * @see <a href="https://tools.ietf.org/html/rfc6454">RFC 6454</a>
215
215
  */
216
216
  HttpHeaders.ORIGIN = 'Origin';
217
217
  /**
218
- * The HTTP {@code Pragma} header field name.
218
+ * The HTTP `Pragma`header field name.
219
219
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.4">Section 5.4 of RFC 7234</a>
220
220
  */
221
221
  HttpHeaders.PRAGMA = 'Pragma';
222
222
  /**
223
- * The HTTP {@code Proxy-Authenticate} header field name.
223
+ * The HTTP `Proxy-Authenticate`header field name.
224
224
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.3">Section 4.3 of RFC 7235</a>
225
225
  */
226
226
  HttpHeaders.PROXY_AUTHENTICATE = 'Proxy-Authenticate';
227
227
  /**
228
- * The HTTP {@code Proxy-Authorization} header field name.
228
+ * The HTTP `Proxy-Authorization`header field name.
229
229
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.4">Section 4.4 of RFC 7235</a>
230
230
  */
231
231
  HttpHeaders.PROXY_AUTHORIZATION = 'Proxy-Authorization';
232
232
  /**
233
- * The HTTP {@code Range} header field name.
233
+ * The HTTP `Range`header field name.
234
234
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-3.1">Section 3.1 of RFC 7233</a>
235
235
  */
236
236
  HttpHeaders.RANGE = 'Range';
237
237
  /**
238
- * The HTTP {@code Referer} header field name.
238
+ * The HTTP `Referer`header field name.
239
239
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.2">Section 5.5.2 of RFC 7231</a>
240
240
  */
241
241
  HttpHeaders.REFERER = 'Referer';
242
242
  /**
243
- * The HTTP {@code Retry-After} header field name.
243
+ * The HTTP `Retry-After`header field name.
244
244
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.3">Section 7.1.3 of RFC 7231</a>
245
245
  */
246
246
  HttpHeaders.RETRY_AFTER = 'Retry-After';
247
247
  /**
248
- * The HTTP {@code Server} header field name.
248
+ * The HTTP `Server`header field name.
249
249
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.4.2">Section 7.4.2 of RFC 7231</a>
250
250
  */
251
251
  HttpHeaders.SERVER = 'Server';
252
252
  /**
253
- * The HTTP {@code Set-Cookie} header field name.
253
+ * The HTTP `Set-Cookie`header field name.
254
254
  * @see <a href="https://tools.ietf.org/html/rfc2109#section-4.2.2">Section 4.2.2 of RFC 2109</a>
255
255
  */
256
256
  HttpHeaders.SET_COOKIE = 'Set-Cookie';
257
257
  /**
258
- * The HTTP {@code Set-Cookie2} header field name.
258
+ * The HTTP `Set-Cookie2`header field name.
259
259
  * @see <a href="https://tools.ietf.org/html/rfc2965">RFC 2965</a>
260
260
  */
261
261
  HttpHeaders.SET_COOKIE2 = 'Set-Cookie2';
262
262
  /**
263
- * The HTTP {@code TE} header field name.
263
+ * The HTTP `TE`header field name.
264
264
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-4.3">Section 4.3 of RFC 7230</a>
265
265
  */
266
266
  HttpHeaders.TE = 'TE';
267
267
  /**
268
- * The HTTP {@code Trailer} header field name.
268
+ * The HTTP `Trailer`header field name.
269
269
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-4.4">Section 4.4 of RFC 7230</a>
270
270
  */
271
271
  HttpHeaders.TRAILER = 'Trailer';
272
272
  /**
273
- * The HTTP {@code Transfer-Encoding} header field name.
273
+ * The HTTP `Transfer-Encoding`header field name.
274
274
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3.1">Section 3.3.1 of RFC 7230</a>
275
275
  */
276
276
  HttpHeaders.TRANSFER_ENCODING = 'Transfer-Encoding';
277
277
  /**
278
- * The HTTP {@code Upgrade} header field name.
278
+ * The HTTP `Upgrade`header field name.
279
279
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-6.7">Section 6.7 of RFC 7230</a>
280
280
  */
281
281
  HttpHeaders.UPGRADE = 'Upgrade';
282
282
  /**
283
- * The HTTP {@code User-Agent} header field name.
283
+ * The HTTP `User-Agent`header field name.
284
284
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.3">Section 5.5.3 of RFC 7231</a>
285
285
  */
286
286
  HttpHeaders.USER_AGENT = 'User-Agent';
287
287
  /**
288
- * The HTTP {@code Vary} header field name.
288
+ * The HTTP `Vary`header field name.
289
289
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.4">Section 7.1.4 of RFC 7231</a>
290
290
  */
291
291
  HttpHeaders.VARY = 'Vary';
292
292
  /**
293
- * The HTTP {@code Via} header field name.
293
+ * The HTTP `Via`header field name.
294
294
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-5.7.1">Section 5.7.1 of RFC 7230</a>
295
295
  */
296
296
  HttpHeaders.VIA = 'Via';
297
297
  /**
298
- * The HTTP {@code Warning} header field name.
298
+ * The HTTP `Warning`header field name.
299
299
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.5">Section 5.5 of RFC 7234</a>
300
300
  */
301
301
  HttpHeaders.WARNING = 'Warning';
302
302
  /**
303
- * The HTTP {@code WWW-Authenticate} header field name.
303
+ * The HTTP `WWW-Authenticate`header field name.
304
304
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.1">Section 4.1 of RFC 7235</a>
305
305
  */
306
306
  HttpHeaders.WWW_AUTHENTICATE = 'WWW-Authenticate';
@@ -1,19 +1,6 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./http-protocol"), exports);
18
- __exportStar(require("./http-headers"), exports);
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./http-protocol"), exports);
5
+ tslib_1.__exportStar(require("./http-headers"), exports);
19
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/http/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,yDAA+B"}
@@ -1,19 +1,6 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./http"), exports);
18
- __exportStar(require("./client"), exports);
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./http"), exports);
5
+ tslib_1.__exportStar(require("./client"), exports);
19
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB;AACvB,mDAAyB"}
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@celljs/http",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "description": "",
5
5
  "main": "lib/common/index.js",
6
6
  "typings": "lib/common/index.d.ts",
7
7
  "dependencies": {
8
- "@celljs/core": "3.0.0",
8
+ "@celljs/core": "3.1.1",
9
9
  "axios": "^0.26.1",
10
- "rxjs": "^6.6.0"
10
+ "rxjs": "^6.6.0",
11
+ "tslib": "^2.8.0"
11
12
  },
12
13
  "publishConfig": {
13
14
  "access": "public"
@@ -37,7 +38,7 @@
37
38
  "test": "cell-component test:js"
38
39
  },
39
40
  "devDependencies": {
40
- "@celljs/component": "3.0.0"
41
+ "@celljs/component": "3.1.1"
41
42
  },
42
- "gitHead": "c0ef8d269e33a795406bcbb240cac4b845c6c24c"
43
+ "gitHead": "a773e1661f404c1a44d26b9f3b2591b58192d917"
43
44
  }
@@ -1,301 +1,301 @@
1
1
  export class HttpHeaders {
2
2
  /**
3
- * The HTTP {@code Accept} header field name.
3
+ * The HTTP `Accept` header field name.
4
4
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.2">Section 5.3.2 of RFC 7231</a>
5
5
  */
6
6
  public static ACCEPT = 'Accept';
7
7
  /**
8
- * The HTTP {@code Accept-Charset} header field name.
8
+ * The HTTP `Accept-Charset`header field name.
9
9
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.3">Section 5.3.3 of RFC 7231</a>
10
10
  */
11
11
  public static ACCEPT_CHARSET = 'Accept-Charset';
12
12
  /**
13
- * The HTTP {@code Accept-Encoding} header field name.
13
+ * The HTTP `Accept-Encoding` header field name.
14
14
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.4">Section 5.3.4 of RFC 7231</a>
15
15
  */
16
16
  public static ACCEPT_ENCODING = 'Accept-Encoding';
17
17
  /**
18
- * The HTTP {@code Accept-Language} header field name.
18
+ * The HTTP `Accept-Language` header field name.
19
19
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.5">Section 5.3.5 of RFC 7231</a>
20
20
  */
21
21
  public static ACCEPT_LANGUAGE = 'Accept-Language';
22
22
  /**
23
- * The HTTP {@code Accept-Ranges} header field name.
23
+ * The HTTP `Accept-Ranges` header field name.
24
24
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-2.3">Section 5.3.5 of RFC 7233</a>
25
25
  */
26
26
  public static ACCEPT_RANGES = 'Accept-Ranges';
27
27
  /**
28
- * The CORS {@code Access-Control-Allow-Credentials} response header field name.
28
+ * The CORS `Access-Control-Allow-Credentials` response header field name.
29
29
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
30
30
  */
31
31
  public static ACCESS_CONTROL_ALLOW_CREDENTIALS = 'Access-Control-Allow-Credentials';
32
32
  /**
33
- * The CORS {@code Access-Control-Allow-Headers} response header field name.
33
+ * The CORS `Access-Control-Allow-Headers` response header field name.
34
34
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
35
35
  */
36
36
  public static ACCESS_CONTROL_ALLOW_HEADERS = 'Access-Control-Allow-Headers';
37
37
  /**
38
- * The CORS {@code Access-Control-Allow-Methods} response header field name.
38
+ * The CORS `Access-Control-Allow-Methods` response header field name.
39
39
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
40
40
  */
41
41
  public static ACCESS_CONTROL_ALLOW_METHODS = 'Access-Control-Allow-Methods';
42
42
  /**
43
- * The CORS {@code Access-Control-Allow-Origin} response header field name.
43
+ * The CORS `Access-Control-Allow-Origin` response header field name.
44
44
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
45
45
  */
46
46
  public static ACCESS_CONTROL_ALLOW_ORIGIN = 'Access-Control-Allow-Origin';
47
47
  /**
48
- * The CORS {@code Access-Control-Expose-Headers} response header field name.
48
+ * The CORS `Access-Control-Expose-Headers` response header field name.
49
49
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
50
50
  */
51
51
  public static ACCESS_CONTROL_EXPOSE_HEADERS = 'Access-Control-Expose-Headers';
52
52
  /**
53
- * The CORS {@code Access-Control-Max-Age} response header field name.
53
+ * The CORS `Access-Control-Max-Age` response header field name.
54
54
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
55
55
  */
56
56
  public static ACCESS_CONTROL_MAX_AGE = 'Access-Control-Max-Age';
57
57
  /**
58
- * The CORS {@code Access-Control-Request-Headers} request header field name.
58
+ * The CORS `Access-Control-Request-Headers` request header field name.
59
59
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
60
60
  */
61
61
  public static ACCESS_CONTROL_REQUEST_HEADERS = 'Access-Control-Request-Headers';
62
62
  /**
63
- * The CORS {@code Access-Control-Request-Method} request header field name.
63
+ * The CORS `Access-Control-Request-Method` request header field name.
64
64
  * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
65
65
  */
66
66
  public static ACCESS_CONTROL_REQUEST_METHOD = 'Access-Control-Request-Method';
67
67
  /**
68
- * The HTTP {@code Age} header field name.
68
+ * The HTTP `Age` header field name.
69
69
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.1">Section 5.1 of RFC 7234</a>
70
70
  */
71
71
  public static AGE = 'Age';
72
72
  /**
73
- * The HTTP {@code Allow} header field name.
73
+ * The HTTP `Allow` header field name.
74
74
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.4.1">Section 7.4.1 of RFC 7231</a>
75
75
  */
76
76
  public static ALLOW = 'Allow';
77
77
  /**
78
- * The HTTP {@code Authorization} header field name.
78
+ * The HTTP `Authorization` header field name.
79
79
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.2">Section 4.2 of RFC 7235</a>
80
80
  */
81
81
  public static AUTHORIZATION = 'Authorization';
82
82
  /**
83
- * The HTTP {@code Cache-Control} header field name.
83
+ * The HTTP `Cache-Control` header field name.
84
84
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2">Section 5.2 of RFC 7234</a>
85
85
  */
86
86
  public static CACHE_CONTROL = 'Cache-Control';
87
87
  /**
88
- * The HTTP {@code Connection} header field name.
88
+ * The HTTP `Connection` header field name.
89
89
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-6.1">Section 6.1 of RFC 7230</a>
90
90
  */
91
91
  public static CONNECTION = 'Connection';
92
92
  /**
93
- * The HTTP {@code Content-Encoding} header field name.
93
+ * The HTTP `Content-Encoding` header field name.
94
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
95
  */
96
96
  public static CONTENT_ENCODING = 'Content-Encoding';
97
97
  /**
98
- * The HTTP {@code Content-Disposition} header field name.
98
+ * The HTTP `Content-Disposition` header field name.
99
99
  * @see <a href="https://tools.ietf.org/html/rfc6266">RFC 6266</a>
100
100
  */
101
101
  public static CONTENT_DISPOSITION = 'Content-Disposition';
102
102
  /**
103
- * The HTTP {@code Content-Language} header field name.
103
+ * The HTTP `Content-Language` header field name.
104
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
105
  */
106
106
  public static CONTENT_LANGUAGE = 'Content-Language';
107
107
  /**
108
- * The HTTP {@code Content-Length} header field name.
108
+ * The HTTP `Content-Length`header field name.
109
109
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3.2">Section 3.3.2 of RFC 7230</a>
110
110
  */
111
111
  public static CONTENT_LENGTH = 'Content-Length';
112
112
  /**
113
- * The HTTP {@code Content-Location} header field name.
113
+ * The HTTP `Content-Location`header field name.
114
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
115
  */
116
116
  public static CONTENT_LOCATION = 'Content-Location';
117
117
  /**
118
- * The HTTP {@code Content-Range} header field name.
118
+ * The HTTP `Content-Range`header field name.
119
119
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-4.2">Section 4.2 of RFC 7233</a>
120
120
  */
121
121
  public static CONTENT_RANGE = 'Content-Range';
122
122
  /**
123
- * The HTTP {@code Content-Type} header field name.
123
+ * The HTTP `Content-Type`header field name.
124
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
125
  */
126
126
  public static CONTENT_TYPE = 'Content-Type';
127
127
  /**
128
- * The HTTP {@code Cookie} header field name.
128
+ * The HTTP `Cookie`header field name.
129
129
  * @see <a href="https://tools.ietf.org/html/rfc2109#section-4.3.4">Section 4.3.4 of RFC 2109</a>
130
130
  */
131
131
  public static COOKIE = 'Cookie';
132
132
  /**
133
- * The HTTP {@code Date} header field name.
133
+ * The HTTP `Date`header field name.
134
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
135
  */
136
136
  public static DATE = 'Date';
137
137
  /**
138
- * The HTTP {@code ETag} header field name.
138
+ * The HTTP `ETag`header field name.
139
139
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-2.3">Section 2.3 of RFC 7232</a>
140
140
  */
141
141
  public static ETAG = 'ETag';
142
142
  /**
143
- * The HTTP {@code Expect} header field name.
143
+ * The HTTP `Expect`header field name.
144
144
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.1.1">Section 5.1.1 of RFC 7231</a>
145
145
  */
146
146
  public static EXPECT = 'Expect';
147
147
  /**
148
- * The HTTP {@code Expires} header field name.
148
+ * The HTTP `Expires`header field name.
149
149
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.3">Section 5.3 of RFC 7234</a>
150
150
  */
151
151
  public static EXPIRES = 'Expires';
152
152
  /**
153
- * The HTTP {@code From} header field name.
153
+ * The HTTP `From`header field name.
154
154
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.1">Section 5.5.1 of RFC 7231</a>
155
155
  */
156
156
  public static FROM = 'From';
157
157
  /**
158
- * The HTTP {@code Host} header field name.
158
+ * The HTTP `Host`header field name.
159
159
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-5.4">Section 5.4 of RFC 7230</a>
160
160
  */
161
161
  public static HOST = 'Host';
162
162
  /**
163
- * The HTTP {@code If-Match} header field name.
163
+ * The HTTP `If-Match`header field name.
164
164
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.1">Section 3.1 of RFC 7232</a>
165
165
  */
166
166
  public static IF_MATCH = 'If-Match';
167
167
  /**
168
- * The HTTP {@code If-Modified-Since} header field name.
168
+ * The HTTP `If-Modified-Since`header field name.
169
169
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.3">Section 3.3 of RFC 7232</a>
170
170
  */
171
171
  public static IF_MODIFIED_SINCE = 'If-Modified-Since';
172
172
  /**
173
- * The HTTP {@code If-None-Match} header field name.
173
+ * The HTTP `If-None-Match`header field name.
174
174
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.2">Section 3.2 of RFC 7232</a>
175
175
  */
176
176
  public static IF_NONE_MATCH = 'If-None-Match';
177
177
  /**
178
- * The HTTP {@code If-Range} header field name.
178
+ * The HTTP `If-Range`header field name.
179
179
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-3.2">Section 3.2 of RFC 7233</a>
180
180
  */
181
181
  public static IF_RANGE = 'If-Range';
182
182
  /**
183
- * The HTTP {@code If-Unmodified-Since} header field name.
183
+ * The HTTP `If-Unmodified-Since`header field name.
184
184
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.4">Section 3.4 of RFC 7232</a>
185
185
  */
186
186
  public static IF_UNMODIFIED_SINCE = 'If-Unmodified-Since';
187
187
  /**
188
- * The HTTP {@code Last-Modified} header field name.
188
+ * The HTTP `Last-Modified`header field name.
189
189
  * @see <a href="https://tools.ietf.org/html/rfc7232#section-2.2">Section 2.2 of RFC 7232</a>
190
190
  */
191
191
  public static LAST_MODIFIED = 'Last-Modified';
192
192
  /**
193
- * The HTTP {@code Link} header field name.
193
+ * The HTTP `Link`header field name.
194
194
  * @see <a href="https://tools.ietf.org/html/rfc5988">RFC 5988</a>
195
195
  */
196
196
  public static LINK = 'Link';
197
197
  /**
198
- * The HTTP {@code Location} header field name.
198
+ * The HTTP `Location`header field name.
199
199
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.2">Section 7.1.2 of RFC 7231</a>
200
200
  */
201
201
  public static LOCATION = 'Location';
202
202
  /**
203
- * The HTTP {@code Max-Forwards} header field name.
203
+ * The HTTP `Max-Forwards`header field name.
204
204
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.1.2">Section 5.1.2 of RFC 7231</a>
205
205
  */
206
206
  public static MAX_FORWARDS = 'Max-Forwards';
207
207
  /**
208
- * The HTTP {@code Origin} header field name.
208
+ * The HTTP `Origin`header field name.
209
209
  * @see <a href="https://tools.ietf.org/html/rfc6454">RFC 6454</a>
210
210
  */
211
211
  public static ORIGIN = 'Origin';
212
212
  /**
213
- * The HTTP {@code Pragma} header field name.
213
+ * The HTTP `Pragma`header field name.
214
214
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.4">Section 5.4 of RFC 7234</a>
215
215
  */
216
216
  public static PRAGMA = 'Pragma';
217
217
  /**
218
- * The HTTP {@code Proxy-Authenticate} header field name.
218
+ * The HTTP `Proxy-Authenticate`header field name.
219
219
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.3">Section 4.3 of RFC 7235</a>
220
220
  */
221
221
  public static PROXY_AUTHENTICATE = 'Proxy-Authenticate';
222
222
  /**
223
- * The HTTP {@code Proxy-Authorization} header field name.
223
+ * The HTTP `Proxy-Authorization`header field name.
224
224
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.4">Section 4.4 of RFC 7235</a>
225
225
  */
226
226
  public static PROXY_AUTHORIZATION = 'Proxy-Authorization';
227
227
  /**
228
- * The HTTP {@code Range} header field name.
228
+ * The HTTP `Range`header field name.
229
229
  * @see <a href="https://tools.ietf.org/html/rfc7233#section-3.1">Section 3.1 of RFC 7233</a>
230
230
  */
231
231
  public static RANGE = 'Range';
232
232
  /**
233
- * The HTTP {@code Referer} header field name.
233
+ * The HTTP `Referer`header field name.
234
234
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.2">Section 5.5.2 of RFC 7231</a>
235
235
  */
236
236
  public static REFERER = 'Referer';
237
237
  /**
238
- * The HTTP {@code Retry-After} header field name.
238
+ * The HTTP `Retry-After`header field name.
239
239
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.3">Section 7.1.3 of RFC 7231</a>
240
240
  */
241
241
  public static RETRY_AFTER = 'Retry-After';
242
242
  /**
243
- * The HTTP {@code Server} header field name.
243
+ * The HTTP `Server`header field name.
244
244
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.4.2">Section 7.4.2 of RFC 7231</a>
245
245
  */
246
246
  public static SERVER = 'Server';
247
247
  /**
248
- * The HTTP {@code Set-Cookie} header field name.
248
+ * The HTTP `Set-Cookie`header field name.
249
249
  * @see <a href="https://tools.ietf.org/html/rfc2109#section-4.2.2">Section 4.2.2 of RFC 2109</a>
250
250
  */
251
251
  public static SET_COOKIE = 'Set-Cookie';
252
252
  /**
253
- * The HTTP {@code Set-Cookie2} header field name.
253
+ * The HTTP `Set-Cookie2`header field name.
254
254
  * @see <a href="https://tools.ietf.org/html/rfc2965">RFC 2965</a>
255
255
  */
256
256
  public static SET_COOKIE2 = 'Set-Cookie2';
257
257
  /**
258
- * The HTTP {@code TE} header field name.
258
+ * The HTTP `TE`header field name.
259
259
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-4.3">Section 4.3 of RFC 7230</a>
260
260
  */
261
261
  public static TE = 'TE';
262
262
  /**
263
- * The HTTP {@code Trailer} header field name.
263
+ * The HTTP `Trailer`header field name.
264
264
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-4.4">Section 4.4 of RFC 7230</a>
265
265
  */
266
266
  public static TRAILER = 'Trailer';
267
267
  /**
268
- * The HTTP {@code Transfer-Encoding} header field name.
268
+ * The HTTP `Transfer-Encoding`header field name.
269
269
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3.1">Section 3.3.1 of RFC 7230</a>
270
270
  */
271
271
  public static TRANSFER_ENCODING = 'Transfer-Encoding';
272
272
  /**
273
- * The HTTP {@code Upgrade} header field name.
273
+ * The HTTP `Upgrade`header field name.
274
274
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-6.7">Section 6.7 of RFC 7230</a>
275
275
  */
276
276
  public static UPGRADE = 'Upgrade';
277
277
  /**
278
- * The HTTP {@code User-Agent} header field name.
278
+ * The HTTP `User-Agent`header field name.
279
279
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.3">Section 5.5.3 of RFC 7231</a>
280
280
  */
281
281
  public static USER_AGENT = 'User-Agent';
282
282
  /**
283
- * The HTTP {@code Vary} header field name.
283
+ * The HTTP `Vary`header field name.
284
284
  * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.4">Section 7.1.4 of RFC 7231</a>
285
285
  */
286
286
  public static VARY = 'Vary';
287
287
  /**
288
- * The HTTP {@code Via} header field name.
288
+ * The HTTP `Via`header field name.
289
289
  * @see <a href="https://tools.ietf.org/html/rfc7230#section-5.7.1">Section 5.7.1 of RFC 7230</a>
290
290
  */
291
291
  public static VIA = 'Via';
292
292
  /**
293
- * The HTTP {@code Warning} header field name.
293
+ * The HTTP `Warning`header field name.
294
294
  * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.5">Section 5.5 of RFC 7234</a>
295
295
  */
296
296
  public static WARNING = 'Warning';
297
297
  /**
298
- * The HTTP {@code WWW-Authenticate} header field name.
298
+ * The HTTP `WWW-Authenticate`header field name.
299
299
  * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.1">Section 4.1 of RFC 7235</a>
300
300
  */
301
301
  public static WWW_AUTHENTICATE = 'WWW-Authenticate';