@celljs/http 3.4.3 → 3.5.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.
@@ -6,303 +6,306 @@ class HttpHeaders {
6
6
  exports.HttpHeaders = HttpHeaders;
7
7
  /**
8
8
  * The HTTP `Accept` header field name.
9
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.2">Section 5.3.2 of RFC 7231</a>
9
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.2 Section 5.3.2 of RFC 7231}
10
10
  */
11
11
  HttpHeaders.ACCEPT = 'Accept';
12
12
  /**
13
- * The HTTP `Accept-Charset`header field name.
14
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.3">Section 5.3.3 of RFC 7231</a>
13
+ * The HTTP `Accept-Charset` header field name.
14
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.3 Section 5.3.3 of RFC 7231}
15
15
  */
16
16
  HttpHeaders.ACCEPT_CHARSET = 'Accept-Charset';
17
17
  /**
18
18
  * The HTTP `Accept-Encoding` header field name.
19
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.4">Section 5.3.4 of RFC 7231</a>
19
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.4 Section 5.3.4 of RFC 7231}
20
20
  */
21
21
  HttpHeaders.ACCEPT_ENCODING = 'Accept-Encoding';
22
22
  /**
23
23
  * The HTTP `Accept-Language` header field name.
24
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.3.5">Section 5.3.5 of RFC 7231</a>
24
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.5 Section 5.3.5 of RFC 7231}
25
25
  */
26
26
  HttpHeaders.ACCEPT_LANGUAGE = 'Accept-Language';
27
27
  /**
28
28
  * The HTTP `Accept-Ranges` header field name.
29
- * @see <a href="https://tools.ietf.org/html/rfc7233#section-2.3">Section 5.3.5 of RFC 7233</a>
29
+ * @see {@link https://tools.ietf.org/html/rfc7233#section-2.3 Section 5.3.5 of RFC 7233}
30
30
  */
31
31
  HttpHeaders.ACCEPT_RANGES = 'Accept-Ranges';
32
32
  /**
33
33
  * The CORS `Access-Control-Allow-Credentials` response header field name.
34
- * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
34
+ * @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
35
35
  */
36
36
  HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS = 'Access-Control-Allow-Credentials';
37
37
  /**
38
38
  * The CORS `Access-Control-Allow-Headers` response header field name.
39
- * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
39
+ * @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
40
40
  */
41
41
  HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS = 'Access-Control-Allow-Headers';
42
42
  /**
43
43
  * The CORS `Access-Control-Allow-Methods` response header field name.
44
- * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
44
+ * @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
45
45
  */
46
46
  HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS = 'Access-Control-Allow-Methods';
47
47
  /**
48
48
  * The CORS `Access-Control-Allow-Origin` response header field name.
49
- * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
49
+ * @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
50
50
  */
51
51
  HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN = 'Access-Control-Allow-Origin';
52
52
  /**
53
53
  * The CORS `Access-Control-Expose-Headers` response header field name.
54
- * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
54
+ * @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
55
55
  */
56
56
  HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS = 'Access-Control-Expose-Headers';
57
57
  /**
58
58
  * The CORS `Access-Control-Max-Age` response header field name.
59
- * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
59
+ * @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
60
60
  */
61
61
  HttpHeaders.ACCESS_CONTROL_MAX_AGE = 'Access-Control-Max-Age';
62
62
  /**
63
63
  * The CORS `Access-Control-Request-Headers` request header field name.
64
- * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
64
+ * @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
65
65
  */
66
66
  HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS = 'Access-Control-Request-Headers';
67
67
  /**
68
68
  * The CORS `Access-Control-Request-Method` request header field name.
69
- * @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
69
+ * @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
70
70
  */
71
71
  HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD = 'Access-Control-Request-Method';
72
72
  /**
73
73
  * The HTTP `Age` header field name.
74
- * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.1">Section 5.1 of RFC 7234</a>
74
+ * @see {@link https://tools.ietf.org/html/rfc7234#section-5.1 Section 5.1 of RFC 7234}
75
75
  */
76
76
  HttpHeaders.AGE = 'Age';
77
77
  /**
78
78
  * The HTTP `Allow` header field name.
79
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.4.1">Section 7.4.1 of RFC 7231</a>
79
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-7.4.1 Section 7.4.1 of RFC 7231}
80
80
  */
81
81
  HttpHeaders.ALLOW = 'Allow';
82
82
  /**
83
83
  * The HTTP `Authorization` header field name.
84
- * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.2">Section 4.2 of RFC 7235</a>
84
+ * @see {@link https://tools.ietf.org/html/rfc7235#section-4.2 Section 4.2 of RFC 7235}
85
85
  */
86
86
  HttpHeaders.AUTHORIZATION = 'Authorization';
87
87
  /**
88
88
  * The HTTP `Cache-Control` header field name.
89
- * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2">Section 5.2 of RFC 7234</a>
89
+ * @see {@link https://tools.ietf.org/html/rfc7234#section-5.2 Section 5.2 of RFC 7234}
90
90
  */
91
91
  HttpHeaders.CACHE_CONTROL = 'Cache-Control';
92
92
  /**
93
93
  * The HTTP `Connection` header field name.
94
- * @see <a href="https://tools.ietf.org/html/rfc7230#section-6.1">Section 6.1 of RFC 7230</a>
94
+ * @see {@link https://tools.ietf.org/html/rfc7230#section-6.1 Section 6.1 of RFC 7230}
95
95
  */
96
96
  HttpHeaders.CONNECTION = 'Connection';
97
97
  /**
98
98
  * The HTTP `Content-Encoding` header field name.
99
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.2.2">Section 3.1.2.2 of RFC 7231</a>
99
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.2.2 Section 3.1.2.2 of RFC 7231}
100
100
  */
101
101
  HttpHeaders.CONTENT_ENCODING = 'Content-Encoding';
102
102
  /**
103
103
  * The HTTP `Content-Disposition` header field name.
104
- * @see <a href="https://tools.ietf.org/html/rfc6266">RFC 6266</a>
104
+ * @see {@link https://tools.ietf.org/html/rfc6266 RFC 6266}
105
105
  */
106
106
  HttpHeaders.CONTENT_DISPOSITION = 'Content-Disposition';
107
107
  /**
108
108
  * The HTTP `Content-Language` header field name.
109
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.3.2">Section 3.1.3.2 of RFC 7231</a>
109
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.3.2 Section 3.1.3.2 of RFC 7231}
110
110
  */
111
111
  HttpHeaders.CONTENT_LANGUAGE = 'Content-Language';
112
112
  /**
113
- * The HTTP `Content-Length`header field name.
114
- * @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3.2">Section 3.3.2 of RFC 7230</a>
113
+ * The HTTP `Content-Length` header field name.
114
+ * @see {@link https://tools.ietf.org/html/rfc7230#section-3.3.2 Section 3.3.2 of RFC 7230}
115
115
  */
116
116
  HttpHeaders.CONTENT_LENGTH = 'Content-Length';
117
117
  /**
118
- * The HTTP `Content-Location`header field name.
119
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.4.2">Section 3.1.4.2 of RFC 7231</a>
118
+ * The HTTP `Content-Location` header field name.
119
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.4.2 Section 3.1.4.2 of RFC 7231}
120
120
  */
121
121
  HttpHeaders.CONTENT_LOCATION = 'Content-Location';
122
122
  /**
123
- * The HTTP `Content-Range`header field name.
124
- * @see <a href="https://tools.ietf.org/html/rfc7233#section-4.2">Section 4.2 of RFC 7233</a>
123
+ * The HTTP `Content-Range` header field name.
124
+ * @see {@link https://tools.ietf.org/html/rfc7233#section-4.2 Section 4.2 of RFC 7233}
125
125
  */
126
126
  HttpHeaders.CONTENT_RANGE = 'Content-Range';
127
127
  /**
128
- * The HTTP `Content-Type`header field name.
129
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.1.5">Section 3.1.1.5 of RFC 7231</a>
128
+ * The HTTP `Content-Type` header field name.
129
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.1.5 Section 3.1.1.5 of RFC 7231}
130
130
  */
131
131
  HttpHeaders.CONTENT_TYPE = 'Content-Type';
132
132
  /**
133
- * The HTTP `Cookie`header field name.
134
- * @see <a href="https://tools.ietf.org/html/rfc2109#section-4.3.4">Section 4.3.4 of RFC 2109</a>
133
+ * The HTTP `Cookie` header field name.
134
+ * @see {@link https://tools.ietf.org/html/rfc2109#section-4.3.4 Section 4.3.4 of RFC 2109}
135
135
  */
136
136
  HttpHeaders.COOKIE = 'Cookie';
137
137
  /**
138
- * The HTTP `Date`header field name.
139
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.1.2">Section 7.1.1.2 of RFC 7231</a>
138
+ * The HTTP `Date` header field name.
139
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.1.2 Section 7.1.1.2 of RFC 7231}
140
140
  */
141
141
  HttpHeaders.DATE = 'Date';
142
142
  /**
143
- * The HTTP `ETag`header field name.
144
- * @see <a href="https://tools.ietf.org/html/rfc7232#section-2.3">Section 2.3 of RFC 7232</a>
143
+ * The HTTP `ETag` header field name.
144
+ * @see {@link https://tools.ietf.org/html/rfc7232#section-2.3 Section 2.3 of RFC 7232}
145
145
  */
146
146
  HttpHeaders.ETAG = 'ETag';
147
147
  /**
148
- * The HTTP `Expect`header field name.
149
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.1.1">Section 5.1.1 of RFC 7231</a>
148
+ * The HTTP `Expect` header field name.
149
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-5.1.1 Section 5.1.1 of RFC 7231}
150
150
  */
151
151
  HttpHeaders.EXPECT = 'Expect';
152
152
  /**
153
- * The HTTP `Expires`header field name.
154
- * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.3">Section 5.3 of RFC 7234</a>
153
+ * The HTTP `Expires` header field name.
154
+ * @see {@link https://tools.ietf.org/html/rfc7234#section-5.3 Section 5.3 of RFC 7234}
155
155
  */
156
156
  HttpHeaders.EXPIRES = 'Expires';
157
157
  /**
158
- * The HTTP `From`header field name.
159
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.1">Section 5.5.1 of RFC 7231</a>
158
+ * The HTTP `From` header field name.
159
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.1 Section 5.5.1 of RFC 7231}
160
160
  */
161
161
  HttpHeaders.FROM = 'From';
162
162
  /**
163
- * The HTTP `Host`header field name.
164
- * @see <a href="https://tools.ietf.org/html/rfc7230#section-5.4">Section 5.4 of RFC 7230</a>
163
+ * The HTTP `Host` header field name.
164
+ * @see {@link https://tools.ietf.org/html/rfc7230#section-5.4 Section 5.4 of RFC 7230}
165
165
  */
166
166
  HttpHeaders.HOST = 'Host';
167
167
  /**
168
- * The HTTP `If-Match`header field name.
169
- * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.1">Section 3.1 of RFC 7232</a>
168
+ * The HTTP `If-Match` header field name.
169
+ * @see {@link https://tools.ietf.org/html/rfc7232#section-3.1 Section 3.1 of RFC 7232}
170
170
  */
171
171
  HttpHeaders.IF_MATCH = 'If-Match';
172
172
  /**
173
- * The HTTP `If-Modified-Since`header field name.
174
- * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.3">Section 3.3 of RFC 7232</a>
173
+ * The HTTP `If-Modified-Since` header field name.
174
+ * @see {@link https://tools.ietf.org/html/rfc7232#section-3.3 Section 3.3 of RFC 7232}
175
175
  */
176
176
  HttpHeaders.IF_MODIFIED_SINCE = 'If-Modified-Since';
177
177
  /**
178
- * The HTTP `If-None-Match`header field name.
179
- * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.2">Section 3.2 of RFC 7232</a>
178
+ * The HTTP `If-None-Match` header field name.
179
+ * @see {@link https://tools.ietf.org/html/rfc7232#section-3.2 Section 3.2 of RFC 7232}
180
180
  */
181
181
  HttpHeaders.IF_NONE_MATCH = 'If-None-Match';
182
182
  /**
183
- * The HTTP `If-Range`header field name.
184
- * @see <a href="https://tools.ietf.org/html/rfc7233#section-3.2">Section 3.2 of RFC 7233</a>
183
+ * The HTTP `If-Range` header field name.
184
+ * @see {@link https://tools.ietf.org/html/rfc7233#section-3.2 Section 3.2 of RFC 7233}
185
185
  */
186
186
  HttpHeaders.IF_RANGE = 'If-Range';
187
187
  /**
188
- * The HTTP `If-Unmodified-Since`header field name.
189
- * @see <a href="https://tools.ietf.org/html/rfc7232#section-3.4">Section 3.4 of RFC 7232</a>
188
+ * The HTTP `If-Unmodified-Since` header field name.
189
+ * @see {@link https://tools.ietf.org/html/rfc7232#section-3.4 Section 3.4 of RFC 7232}
190
190
  */
191
191
  HttpHeaders.IF_UNMODIFIED_SINCE = 'If-Unmodified-Since';
192
192
  /**
193
- * The HTTP `Last-Modified`header field name.
194
- * @see <a href="https://tools.ietf.org/html/rfc7232#section-2.2">Section 2.2 of RFC 7232</a>
193
+ * The HTTP `Last-Modified` header field name.
194
+ * @see {@link https://tools.ietf.org/html/rfc7232#section-2.2 Section 2.2 of RFC 7232}
195
195
  */
196
196
  HttpHeaders.LAST_MODIFIED = 'Last-Modified';
197
197
  /**
198
- * The HTTP `Link`header field name.
199
- * @see <a href="https://tools.ietf.org/html/rfc5988">RFC 5988</a>
198
+ * The HTTP `Link` header field name.
199
+ * @see {@link https://tools.ietf.org/html/rfc5988 RFC 5988}
200
200
  */
201
201
  HttpHeaders.LINK = 'Link';
202
202
  /**
203
- * The HTTP `Location`header field name.
204
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.2">Section 7.1.2 of RFC 7231</a>
203
+ * The HTTP `Location` header field name.
204
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.2 Section 7.1.2 of RFC 7231}
205
205
  */
206
206
  HttpHeaders.LOCATION = 'Location';
207
207
  /**
208
- * The HTTP `Max-Forwards`header field name.
209
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.1.2">Section 5.1.2 of RFC 7231</a>
208
+ * The HTTP `Max-Forwards` header field name.
209
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-5.1.2 Section 5.1.2 of RFC 7231}
210
210
  */
211
211
  HttpHeaders.MAX_FORWARDS = 'Max-Forwards';
212
212
  /**
213
- * The HTTP `Origin`header field name.
214
- * @see <a href="https://tools.ietf.org/html/rfc6454">RFC 6454</a>
213
+ * The HTTP `Origin` header field name.
214
+ * @see {@link https://tools.ietf.org/html/rfc6454 RFC 6454}
215
215
  */
216
216
  HttpHeaders.ORIGIN = 'Origin';
217
217
  /**
218
- * The HTTP `Pragma`header field name.
219
- * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.4">Section 5.4 of RFC 7234</a>
218
+ * The HTTP `Pragma` header field name.
219
+ * @see {@link https://tools.ietf.org/html/rfc7234#section-5.4 Section 5.4 of RFC 7234}
220
220
  */
221
221
  HttpHeaders.PRAGMA = 'Pragma';
222
222
  /**
223
- * The HTTP `Proxy-Authenticate`header field name.
224
- * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.3">Section 4.3 of RFC 7235</a>
223
+ * The HTTP `Proxy-Authenticate` header field name.
224
+ * @see {@link https://tools.ietf.org/html/rfc7235#section-4.3 Section 4.3 of RFC 7235}
225
225
  */
226
226
  HttpHeaders.PROXY_AUTHENTICATE = 'Proxy-Authenticate';
227
227
  /**
228
- * The HTTP `Proxy-Authorization`header field name.
229
- * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.4">Section 4.4 of RFC 7235</a>
228
+ * The HTTP `Proxy-Authorization` header field name.
229
+ * @see {@link https://tools.ietf.org/html/rfc7235#section-4.4 Section 4.4 of RFC 7235}
230
230
  */
231
231
  HttpHeaders.PROXY_AUTHORIZATION = 'Proxy-Authorization';
232
232
  /**
233
- * The HTTP `Range`header field name.
234
- * @see <a href="https://tools.ietf.org/html/rfc7233#section-3.1">Section 3.1 of RFC 7233</a>
233
+ * The HTTP `Range` header field name.
234
+ * @see {@link https://tools.ietf.org/html/rfc7233#section-3.1 Section 3.1 of RFC 7233}
235
235
  */
236
236
  HttpHeaders.RANGE = 'Range';
237
237
  /**
238
- * The HTTP `Referer`header field name.
239
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.2">Section 5.5.2 of RFC 7231</a>
238
+ * The HTTP `Referer` header field name.
239
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.2 Section 5.5.2 of RFC 7231}
240
240
  */
241
241
  HttpHeaders.REFERER = 'Referer';
242
242
  /**
243
- * The HTTP `Retry-After`header field name.
244
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.3">Section 7.1.3 of RFC 7231</a>
243
+ * The HTTP `Retry-After` header field name.
244
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.3 Section 7.1.3 of RFC 7231}
245
245
  */
246
246
  HttpHeaders.RETRY_AFTER = 'Retry-After';
247
247
  /**
248
- * The HTTP `Server`header field name.
249
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.4.2">Section 7.4.2 of RFC 7231</a>
248
+ * The HTTP `Server` header field name.
249
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-7.4.2 Section 7.4.2 of RFC 7231}
250
250
  */
251
251
  HttpHeaders.SERVER = 'Server';
252
252
  /**
253
- * The HTTP `Set-Cookie`header field name.
254
- * @see <a href="https://tools.ietf.org/html/rfc2109#section-4.2.2">Section 4.2.2 of RFC 2109</a>
253
+ * The HTTP `Set-Cookie` header field name.
254
+ * @see {@link https://tools.ietf.org/html/rfc2109#section-4.2.2 Section 4.2.2 of RFC 2109}
255
255
  */
256
256
  HttpHeaders.SET_COOKIE = 'Set-Cookie';
257
257
  /**
258
- * The HTTP `Set-Cookie2`header field name.
259
- * @see <a href="https://tools.ietf.org/html/rfc2965">RFC 2965</a>
258
+ * The HTTP `Set-Cookie2` header field name.
259
+ * @see {@link https://tools.ietf.org/html/rfc2965 RFC 2965}
260
260
  */
261
261
  HttpHeaders.SET_COOKIE2 = 'Set-Cookie2';
262
262
  /**
263
- * The HTTP `TE`header field name.
264
- * @see <a href="https://tools.ietf.org/html/rfc7230#section-4.3">Section 4.3 of RFC 7230</a>
263
+ * The HTTP `TE` header field name.
264
+ * @see {@link https://tools.ietf.org/html/rfc7230#section-4.3 Section 4.3 of RFC 7230}
265
265
  */
266
266
  HttpHeaders.TE = 'TE';
267
267
  /**
268
- * The HTTP `Trailer`header field name.
269
- * @see <a href="https://tools.ietf.org/html/rfc7230#section-4.4">Section 4.4 of RFC 7230</a>
268
+ * The HTTP `Trailer` header field name.
269
+ * @see {@link https://tools.ietf.org/html/rfc7230#section-4.4 Section 4.4 of RFC 7230}
270
270
  */
271
271
  HttpHeaders.TRAILER = 'Trailer';
272
272
  /**
273
- * The HTTP `Transfer-Encoding`header field name.
274
- * @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3.1">Section 3.3.1 of RFC 7230</a>
273
+ * The HTTP `Transfer-Encoding` header field name.
274
+ * @see {@link https://tools.ietf.org/html/rfc7230#section-3.3.1 Section 3.3.1 of RFC 7230}
275
275
  */
276
276
  HttpHeaders.TRANSFER_ENCODING = 'Transfer-Encoding';
277
277
  /**
278
- * The HTTP `Upgrade`header field name.
279
- * @see <a href="https://tools.ietf.org/html/rfc7230#section-6.7">Section 6.7 of RFC 7230</a>
278
+ * The HTTP `Upgrade` header field name.
279
+ * @see {@link https://tools.ietf.org/html/rfc7230#section-6.7 Section 6.7 of RFC 7230}
280
280
  */
281
281
  HttpHeaders.UPGRADE = 'Upgrade';
282
282
  /**
283
- * The HTTP `User-Agent`header field name.
284
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-5.5.3">Section 5.5.3 of RFC 7231</a>
283
+ * The HTTP `User-Agent` header field name.
284
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.3 Section 5.5.3 of RFC 7231}
285
285
  */
286
286
  HttpHeaders.USER_AGENT = 'User-Agent';
287
287
  /**
288
- * The HTTP `Vary`header field name.
289
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.4">Section 7.1.4 of RFC 7231</a>
288
+ * The HTTP `Vary` header field name.
289
+ * @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.4 Section 7.1.4 of RFC 7231}
290
290
  */
291
291
  HttpHeaders.VARY = 'Vary';
292
292
  /**
293
- * The HTTP `Via`header field name.
294
- * @see <a href="https://tools.ietf.org/html/rfc7230#section-5.7.1">Section 5.7.1 of RFC 7230</a>
293
+ * The HTTP `Via` header field name.
294
+ * @see {@link https://tools.ietf.org/html/rfc7230#section-5.7.1 Section 5.7.1 of RFC 7230}
295
295
  */
296
296
  HttpHeaders.VIA = 'Via';
297
297
  /**
298
- * The HTTP `Warning`header field name.
299
- * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.5">Section 5.5 of RFC 7234</a>
298
+ * The HTTP `Warning` header field name.
299
+ * @see {@link https://tools.ietf.org/html/rfc7234#section-5.5 Section 5.5 of RFC 7234}
300
300
  */
301
301
  HttpHeaders.WARNING = 'Warning';
302
302
  /**
303
- * The HTTP `WWW-Authenticate`header field name.
304
- * @see <a href="https://tools.ietf.org/html/rfc7235#section-4.1">Section 4.1 of RFC 7235</a>
303
+ * The HTTP `WWW-Authenticate` header field name.
304
+ * @see {@link https://tools.ietf.org/html/rfc7235#section-4.1 Section 4.1 of RFC 7235}
305
305
  */
306
306
  HttpHeaders.WWW_AUTHENTICATE = 'WWW-Authenticate';
307
+ /**
308
+ * The HTTP `X-Requested-With` header field name.
309
+ */
307
310
  HttpHeaders.X_REQUESTED_WITH = 'X-Requested-With';
308
311
  //# sourceMappingURL=http-headers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"http-headers.js","sourceRoot":"","sources":["../../../src/common/http/http-headers.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;;AAAxB,kCA+SC;AA9SG;;;GAGG;AACW,kBAAM,GAAG,QAAQ,CAAC;AAChC;;;GAGG;AACW,0BAAc,GAAG,gBAAgB,CAAC;AAChD;;;GAGG;AACW,2BAAe,GAAG,iBAAiB,CAAC;AAClD;;;GAGG;AACW,2BAAe,GAAG,iBAAiB,CAAC;AAClD;;;GAGG;AACW,yBAAa,GAAG,eAAe,CAAC;AAC9C;;;GAGG;AACW,4CAAgC,GAAG,kCAAkC,CAAC;AACpF;;;GAGG;AACW,wCAA4B,GAAG,8BAA8B,CAAC;AAC5E;;;GAGG;AACW,wCAA4B,GAAG,8BAA8B,CAAC;AAC5E;;;GAGG;AACW,uCAA2B,GAAG,6BAA6B,CAAC;AAC1E;;;GAGG;AACW,yCAA6B,GAAG,+BAA+B,CAAC;AAC9E;;;GAGG;AACW,kCAAsB,GAAG,wBAAwB,CAAC;AAChE;;;GAGG;AACW,0CAA8B,GAAG,gCAAgC,CAAC;AAChF;;;GAGG;AACW,yCAA6B,GAAG,+BAA+B,CAAC;AAC9E;;;GAGG;AACW,eAAG,GAAG,KAAK,CAAC;AAC1B;;;GAGG;AACW,iBAAK,GAAG,OAAO,CAAC;AAC9B;;;GAGG;AACW,yBAAa,GAAG,eAAe,CAAC;AAC9C;;;G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,CAAC;AAChC;;;GAGG;AACW,8BAAkB,GAAG,oBAAoB,CAAC;AACxD;;;GAGG;AACW,+BAAmB,GAAG,qBAAqB,CAAC;AAC1D;;;GAGG;AACW,iBAAK,GAAG,OAAO,CAAC;AAC9B;;;GAGG;AACW,mBAAO,GAAG,SAAS,CAAC;AAClC;;;GAGG;AACW,uBAAW,GAAG,aAAa,CAAC;AAC1C;;;GAGG;AACW,kBAAM,GAAG,QAAQ,CAAC;AAChC;;;GAGG;AACW,sBAAU,GAAG,YAAY,CAAC;AACxC;;;GAGG;AACW,uBAAW,GAAG,aAAa,CAAC;AAC1C;;;GAGG;AACW,cAAE,GAAG,IAAI,CAAC;AACxB;;;GAGG;AACW,mBAAO,GAAG,SAAS,CAAC;AAClC;;;GAGG;AACW,6BAAiB,GAAG,mBAAmB,CAAC;AACtD;;;GAGG;AACW,mBAAO,GAAG,SAAS,CAAC;AAClC;;;GAGG;AACW,sBAAU,GAAG,YAAY,CAAC;AACxC;;;GAGG;AACW,gBAAI,GAAG,MAAM,CAAC;AAC5B;;;GAGG;AACW,eAAG,GAAG,KAAK,CAAC;AAC1B;;;GAGG;AACW,mBAAO,GAAG,SAAS,CAAC;AAClC;;;GAGG;AACW,4BAAgB,GAAG,kBAAkB,CAAC;AAEtC,4BAAgB,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"http-headers.js","sourceRoot":"","sources":["../../../src/common/http/http-headers.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;;AAAxB,kCA6WC;AA5WG;;;GAGG;AACW,kBAAM,GAAG,QAAQ,CAAC;AAEhC;;;GAGG;AACW,0BAAc,GAAG,gBAAgB,CAAC;AAEhD;;;GAGG;AACW,2BAAe,GAAG,iBAAiB,CAAC;AAElD;;;GAGG;AACW,2BAAe,GAAG,iBAAiB,CAAC;AAElD;;;GAGG;AACW,yBAAa,GAAG,eAAe,CAAC;AAE9C;;;GAGG;AACW,4CAAgC,GAAG,kCAAkC,CAAC;AAEpF;;;G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AC;AAElC;;;GAGG;AACW,4BAAgB,GAAG,kBAAkB,CAAC;AAEpD;;GAEG;AACW,4BAAgB,GAAG,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@celljs/http",
3
- "version": "3.4.3",
3
+ "version": "3.5.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.4.3",
8
+ "@celljs/core": "3.5.1",
9
9
  "axios": "^0.26.1",
10
10
  "rxjs": "^6.6.0",
11
11
  "tslib": "^2.8.0"
@@ -38,7 +38,7 @@
38
38
  "test": "cell-component test:js"
39
39
  },
40
40
  "devDependencies": {
41
- "@celljs/component": "3.4.3"
41
+ "@celljs/component": "3.5.1"
42
42
  },
43
- "gitHead": "bcbbf929f18cd91fb9241f9b3b0f6c66dbea86cb"
43
+ "gitHead": "ed90939e4770c2f6d18bdd1721ffc58a25828777"
44
44
  }
@@ -1,4 +1,4 @@
1
- import { AxiosInstance } from 'axios';
1
+ import { AxiosInstance, AxiosResponseHeaders } from 'axios';
2
2
 
3
3
  export const RestOperations = Symbol('RestOperations');
4
4
  export const RestOperationsFactory = Symbol('RestOperationsFactory');
@@ -10,3 +10,35 @@ export interface RestOperations extends AxiosInstance {
10
10
  export interface RestOperationsFactory {
11
11
  create(): RestOperations;
12
12
  }
13
+
14
+ export interface ResponseEntity<T> {
15
+ status: number;
16
+ headers: AxiosResponseHeaders;
17
+ body: T;
18
+ }
19
+
20
+ export class ResponseEntityUtil {
21
+ static ok<T>(body: T, headers?: AxiosResponseHeaders): ResponseEntity<T> {
22
+ return {
23
+ status: 200,
24
+ headers: headers || {},
25
+ body
26
+ };
27
+ }
28
+
29
+ static created<T>(body: T, headers?: AxiosResponseHeaders): ResponseEntity<T> {
30
+ return {
31
+ status: 201,
32
+ headers: headers || {},
33
+ body
34
+ };
35
+ }
36
+
37
+ static noContent(): ResponseEntity<void> {
38
+ return {
39
+ status: 204,
40
+ headers: {},
41
+ body: undefined
42
+ };
43
+ }
44
+ }