@celljs/http 3.7.8 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/common/client/client-protocol.d.ts +18 -0
- package/esm/common/client/client-protocol.js +26 -0
- package/esm/common/client/client-protocol.js.map +1 -0
- package/esm/common/client/index.d.ts +2 -0
- package/esm/common/client/index.js +3 -0
- package/esm/common/client/index.js.map +1 -0
- package/esm/common/client/rest-operations-factory.d.ts +6 -0
- package/esm/common/client/rest-operations-factory.js +26 -0
- package/esm/common/client/rest-operations-factory.js.map +1 -0
- package/esm/common/http/http-headers.d.ts +306 -0
- package/esm/common/http/http-headers.js +307 -0
- package/esm/common/http/http-headers.js.map +1 -0
- package/esm/common/http/http-protocol.d.ts +155 -0
- package/esm/common/http/http-protocol.js +163 -0
- package/esm/common/http/http-protocol.js.map +1 -0
- package/esm/common/http/index.d.ts +2 -0
- package/esm/common/http/index.js +3 -0
- package/esm/common/http/index.js.map +1 -0
- package/esm/common/index.d.ts +2 -0
- package/esm/common/index.js +3 -0
- package/esm/common/index.js.map +1 -0
- package/esm/common/module.d.ts +2 -0
- package/esm/common/module.js +9 -0
- package/esm/common/module.js.map +1 -0
- package/esm/package.json +3 -0
- package/lib/common/client/client-protocol.d.ts.map +1 -1
- package/lib/common/client/client-protocol.js.map +1 -1
- package/lib/common/client/rest-operations-factory.d.ts.map +1 -1
- package/lib/common/client/rest-operations-factory.js +4 -1
- package/lib/common/client/rest-operations-factory.js.map +1 -1
- package/lib/common/http/http-headers.js.map +1 -1
- package/lib/common/http/http-protocol.js.map +1 -1
- package/lib/common/module.d.ts.map +1 -1
- package/lib/common/module.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +5 -2
- package/lib/package.spec.js.map +1 -1
- package/package.json +41 -11
- package/src/package.spec.ts +1 -0
- package/LICENSE +0 -21
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosResponseHeaders } 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
|
+
export interface ResponseEntity<T> {
|
|
10
|
+
status: number;
|
|
11
|
+
headers: AxiosResponseHeaders;
|
|
12
|
+
body: T;
|
|
13
|
+
}
|
|
14
|
+
export declare class ResponseEntityUtil {
|
|
15
|
+
static ok<T>(body: T, headers?: AxiosResponseHeaders): ResponseEntity<T>;
|
|
16
|
+
static created<T>(body: T, headers?: AxiosResponseHeaders): ResponseEntity<T>;
|
|
17
|
+
static noContent(): ResponseEntity<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const RestOperations = Symbol('RestOperations');
|
|
2
|
+
export const RestOperationsFactory = Symbol('RestOperationsFactory');
|
|
3
|
+
export class ResponseEntityUtil {
|
|
4
|
+
static ok(body, headers) {
|
|
5
|
+
return {
|
|
6
|
+
status: 200,
|
|
7
|
+
headers: headers || {},
|
|
8
|
+
body
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
static created(body, headers) {
|
|
12
|
+
return {
|
|
13
|
+
status: 201,
|
|
14
|
+
headers: headers || {},
|
|
15
|
+
body
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
static noContent() {
|
|
19
|
+
return {
|
|
20
|
+
status: 204,
|
|
21
|
+
headers: {},
|
|
22
|
+
body: undefined
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# 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,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAgBrE,MAAM,OAAO,kBAAkB;IAC3B,MAAM,CAAC,EAAE,CAAI,IAAO,EAAE,OAA+B;QACjD,OAAO;YACH,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,OAAO,IAAI,EAAE;YACtB,IAAI;SACP,CAAC;IACN,CAAC;IAED,MAAM,CAAC,OAAO,CAAI,IAAO,EAAE,OAA8B;QACrD,OAAO;YACH,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,OAAO,IAAI,EAAE;YACtB,IAAI;SACP,CAAC;IACN,CAAC;IAED,MAAM,CAAC,SAAS;QACZ,OAAO;YACH,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,SAAS;SAClB,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RestOperationsFactory, RestOperations } from './client-protocol.js';
|
|
2
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
|
+
export declare class DefaultRestOperationsFactory implements RestOperationsFactory {
|
|
4
|
+
protected readonly clientConfig: AxiosRequestConfig;
|
|
5
|
+
create(): RestOperations;
|
|
6
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { RestOperationsFactory } from './client-protocol.js';
|
|
11
|
+
import axios from 'axios';
|
|
12
|
+
import { Component, Value } from '@celljs/core';
|
|
13
|
+
let DefaultRestOperationsFactory = class DefaultRestOperationsFactory {
|
|
14
|
+
create() {
|
|
15
|
+
return axios.create(this.clientConfig);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
Value('cell.client.config'),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], DefaultRestOperationsFactory.prototype, "clientConfig", void 0);
|
|
22
|
+
DefaultRestOperationsFactory = __decorate([
|
|
23
|
+
Component(RestOperationsFactory)
|
|
24
|
+
], DefaultRestOperationsFactory);
|
|
25
|
+
export { DefaultRestOperationsFactory };
|
|
26
|
+
//# 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,OAAO,EAAE,qBAAqB,EAAkB,MAAM,mBAAmB,CAAC;AAC1E,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAGzC,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAKrC,MAAM;QACF,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC3C,CAAC;CAEJ,CAAA;AANsB;IADlB,KAAK,CAAC,oBAAoB,CAAC;;kEACwB;AAH3C,4BAA4B;IADxC,SAAS,CAAC,qBAAqB,CAAC;GACpB,4BAA4B,CASxC"}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
export declare class HttpHeaders {
|
|
2
|
+
/**
|
|
3
|
+
* The HTTP `Accept` header field name.
|
|
4
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.2 Section 5.3.2 of RFC 7231}
|
|
5
|
+
*/
|
|
6
|
+
static ACCEPT: string;
|
|
7
|
+
/**
|
|
8
|
+
* The HTTP `Accept-Charset` header field name.
|
|
9
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.3 Section 5.3.3 of RFC 7231}
|
|
10
|
+
*/
|
|
11
|
+
static ACCEPT_CHARSET: string;
|
|
12
|
+
/**
|
|
13
|
+
* The HTTP `Accept-Encoding` header field name.
|
|
14
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.4 Section 5.3.4 of RFC 7231}
|
|
15
|
+
*/
|
|
16
|
+
static ACCEPT_ENCODING: string;
|
|
17
|
+
/**
|
|
18
|
+
* The HTTP `Accept-Language` header field name.
|
|
19
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.3.5 Section 5.3.5 of RFC 7231}
|
|
20
|
+
*/
|
|
21
|
+
static ACCEPT_LANGUAGE: string;
|
|
22
|
+
/**
|
|
23
|
+
* The HTTP `Accept-Ranges` header field name.
|
|
24
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-2.3 Section 5.3.5 of RFC 7233}
|
|
25
|
+
*/
|
|
26
|
+
static ACCEPT_RANGES: string;
|
|
27
|
+
/**
|
|
28
|
+
* The CORS `Access-Control-Allow-Credentials` response header field name.
|
|
29
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
30
|
+
*/
|
|
31
|
+
static ACCESS_CONTROL_ALLOW_CREDENTIALS: string;
|
|
32
|
+
/**
|
|
33
|
+
* The CORS `Access-Control-Allow-Headers` response header field name.
|
|
34
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
35
|
+
*/
|
|
36
|
+
static ACCESS_CONTROL_ALLOW_HEADERS: string;
|
|
37
|
+
/**
|
|
38
|
+
* The CORS `Access-Control-Allow-Methods` response header field name.
|
|
39
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
40
|
+
*/
|
|
41
|
+
static ACCESS_CONTROL_ALLOW_METHODS: string;
|
|
42
|
+
/**
|
|
43
|
+
* The CORS `Access-Control-Allow-Origin` response header field name.
|
|
44
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
45
|
+
*/
|
|
46
|
+
static ACCESS_CONTROL_ALLOW_ORIGIN: string;
|
|
47
|
+
/**
|
|
48
|
+
* The CORS `Access-Control-Expose-Headers` response header field name.
|
|
49
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
50
|
+
*/
|
|
51
|
+
static ACCESS_CONTROL_EXPOSE_HEADERS: string;
|
|
52
|
+
/**
|
|
53
|
+
* The CORS `Access-Control-Max-Age` response header field name.
|
|
54
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
55
|
+
*/
|
|
56
|
+
static ACCESS_CONTROL_MAX_AGE: string;
|
|
57
|
+
/**
|
|
58
|
+
* The CORS `Access-Control-Request-Headers` request header field name.
|
|
59
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
60
|
+
*/
|
|
61
|
+
static ACCESS_CONTROL_REQUEST_HEADERS: string;
|
|
62
|
+
/**
|
|
63
|
+
* The CORS `Access-Control-Request-Method` request header field name.
|
|
64
|
+
* @see {@link http://www.w3.org/TR/cors/ CORS W3C recommendation}
|
|
65
|
+
*/
|
|
66
|
+
static ACCESS_CONTROL_REQUEST_METHOD: string;
|
|
67
|
+
/**
|
|
68
|
+
* The HTTP `Age` header field name.
|
|
69
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.1 Section 5.1 of RFC 7234}
|
|
70
|
+
*/
|
|
71
|
+
static AGE: string;
|
|
72
|
+
/**
|
|
73
|
+
* The HTTP `Allow` header field name.
|
|
74
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.4.1 Section 7.4.1 of RFC 7231}
|
|
75
|
+
*/
|
|
76
|
+
static ALLOW: string;
|
|
77
|
+
/**
|
|
78
|
+
* The HTTP `Authorization` header field name.
|
|
79
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.2 Section 4.2 of RFC 7235}
|
|
80
|
+
*/
|
|
81
|
+
static AUTHORIZATION: string;
|
|
82
|
+
/**
|
|
83
|
+
* The HTTP `Cache-Control` header field name.
|
|
84
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.2 Section 5.2 of RFC 7234}
|
|
85
|
+
*/
|
|
86
|
+
static CACHE_CONTROL: string;
|
|
87
|
+
/**
|
|
88
|
+
* The HTTP `Connection` header field name.
|
|
89
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-6.1 Section 6.1 of RFC 7230}
|
|
90
|
+
*/
|
|
91
|
+
static CONNECTION: string;
|
|
92
|
+
/**
|
|
93
|
+
* The HTTP `Content-Encoding` header field name.
|
|
94
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.2.2 Section 3.1.2.2 of RFC 7231}
|
|
95
|
+
*/
|
|
96
|
+
static CONTENT_ENCODING: string;
|
|
97
|
+
/**
|
|
98
|
+
* The HTTP `Content-Disposition` header field name.
|
|
99
|
+
* @see {@link https://tools.ietf.org/html/rfc6266 RFC 6266}
|
|
100
|
+
*/
|
|
101
|
+
static CONTENT_DISPOSITION: string;
|
|
102
|
+
/**
|
|
103
|
+
* The HTTP `Content-Language` header field name.
|
|
104
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.3.2 Section 3.1.3.2 of RFC 7231}
|
|
105
|
+
*/
|
|
106
|
+
static CONTENT_LANGUAGE: string;
|
|
107
|
+
/**
|
|
108
|
+
* The HTTP `Content-Length` header field name.
|
|
109
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-3.3.2 Section 3.3.2 of RFC 7230}
|
|
110
|
+
*/
|
|
111
|
+
static CONTENT_LENGTH: string;
|
|
112
|
+
/**
|
|
113
|
+
* The HTTP `Content-Location` header field name.
|
|
114
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.4.2 Section 3.1.4.2 of RFC 7231}
|
|
115
|
+
*/
|
|
116
|
+
static CONTENT_LOCATION: string;
|
|
117
|
+
/**
|
|
118
|
+
* The HTTP `Content-Range` header field name.
|
|
119
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-4.2 Section 4.2 of RFC 7233}
|
|
120
|
+
*/
|
|
121
|
+
static CONTENT_RANGE: string;
|
|
122
|
+
/**
|
|
123
|
+
* The HTTP `Content-Type` header field name.
|
|
124
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-3.1.1.5 Section 3.1.1.5 of RFC 7231}
|
|
125
|
+
*/
|
|
126
|
+
static CONTENT_TYPE: string;
|
|
127
|
+
/**
|
|
128
|
+
* The HTTP `Cookie` header field name.
|
|
129
|
+
* @see {@link https://tools.ietf.org/html/rfc2109#section-4.3.4 Section 4.3.4 of RFC 2109}
|
|
130
|
+
*/
|
|
131
|
+
static COOKIE: string;
|
|
132
|
+
/**
|
|
133
|
+
* The HTTP `Date` header field name.
|
|
134
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.1.2 Section 7.1.1.2 of RFC 7231}
|
|
135
|
+
*/
|
|
136
|
+
static DATE: string;
|
|
137
|
+
/**
|
|
138
|
+
* The HTTP `ETag` header field name.
|
|
139
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-2.3 Section 2.3 of RFC 7232}
|
|
140
|
+
*/
|
|
141
|
+
static ETAG: string;
|
|
142
|
+
/**
|
|
143
|
+
* The HTTP `Expect` header field name.
|
|
144
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.1.1 Section 5.1.1 of RFC 7231}
|
|
145
|
+
*/
|
|
146
|
+
static EXPECT: string;
|
|
147
|
+
/**
|
|
148
|
+
* The HTTP `Expires` header field name.
|
|
149
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.3 Section 5.3 of RFC 7234}
|
|
150
|
+
*/
|
|
151
|
+
static EXPIRES: string;
|
|
152
|
+
/**
|
|
153
|
+
* The HTTP `From` header field name.
|
|
154
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.1 Section 5.5.1 of RFC 7231}
|
|
155
|
+
*/
|
|
156
|
+
static FROM: string;
|
|
157
|
+
/**
|
|
158
|
+
* The HTTP `Host` header field name.
|
|
159
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-5.4 Section 5.4 of RFC 7230}
|
|
160
|
+
*/
|
|
161
|
+
static HOST: string;
|
|
162
|
+
/**
|
|
163
|
+
* The HTTP `If-Match` header field name.
|
|
164
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.1 Section 3.1 of RFC 7232}
|
|
165
|
+
*/
|
|
166
|
+
static IF_MATCH: string;
|
|
167
|
+
/**
|
|
168
|
+
* The HTTP `If-Modified-Since` header field name.
|
|
169
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.3 Section 3.3 of RFC 7232}
|
|
170
|
+
*/
|
|
171
|
+
static IF_MODIFIED_SINCE: string;
|
|
172
|
+
/**
|
|
173
|
+
* The HTTP `If-None-Match` header field name.
|
|
174
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.2 Section 3.2 of RFC 7232}
|
|
175
|
+
*/
|
|
176
|
+
static IF_NONE_MATCH: string;
|
|
177
|
+
/**
|
|
178
|
+
* The HTTP `If-Range` header field name.
|
|
179
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-3.2 Section 3.2 of RFC 7233}
|
|
180
|
+
*/
|
|
181
|
+
static IF_RANGE: string;
|
|
182
|
+
/**
|
|
183
|
+
* The HTTP `If-Unmodified-Since` header field name.
|
|
184
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-3.4 Section 3.4 of RFC 7232}
|
|
185
|
+
*/
|
|
186
|
+
static IF_UNMODIFIED_SINCE: string;
|
|
187
|
+
/**
|
|
188
|
+
* The HTTP `Last-Modified` header field name.
|
|
189
|
+
* @see {@link https://tools.ietf.org/html/rfc7232#section-2.2 Section 2.2 of RFC 7232}
|
|
190
|
+
*/
|
|
191
|
+
static LAST_MODIFIED: string;
|
|
192
|
+
/**
|
|
193
|
+
* The HTTP `Link` header field name.
|
|
194
|
+
* @see {@link https://tools.ietf.org/html/rfc5988 RFC 5988}
|
|
195
|
+
*/
|
|
196
|
+
static LINK: string;
|
|
197
|
+
/**
|
|
198
|
+
* The HTTP `Location` header field name.
|
|
199
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.2 Section 7.1.2 of RFC 7231}
|
|
200
|
+
*/
|
|
201
|
+
static LOCATION: string;
|
|
202
|
+
/**
|
|
203
|
+
* The HTTP `Max-Forwards` header field name.
|
|
204
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.1.2 Section 5.1.2 of RFC 7231}
|
|
205
|
+
*/
|
|
206
|
+
static MAX_FORWARDS: string;
|
|
207
|
+
/**
|
|
208
|
+
* The HTTP `Origin` header field name.
|
|
209
|
+
* @see {@link https://tools.ietf.org/html/rfc6454 RFC 6454}
|
|
210
|
+
*/
|
|
211
|
+
static ORIGIN: string;
|
|
212
|
+
/**
|
|
213
|
+
* The HTTP `Pragma` header field name.
|
|
214
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.4 Section 5.4 of RFC 7234}
|
|
215
|
+
*/
|
|
216
|
+
static PRAGMA: string;
|
|
217
|
+
/**
|
|
218
|
+
* The HTTP `Proxy-Authenticate` header field name.
|
|
219
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.3 Section 4.3 of RFC 7235}
|
|
220
|
+
*/
|
|
221
|
+
static PROXY_AUTHENTICATE: string;
|
|
222
|
+
/**
|
|
223
|
+
* The HTTP `Proxy-Authorization` header field name.
|
|
224
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.4 Section 4.4 of RFC 7235}
|
|
225
|
+
*/
|
|
226
|
+
static PROXY_AUTHORIZATION: string;
|
|
227
|
+
/**
|
|
228
|
+
* The HTTP `Range` header field name.
|
|
229
|
+
* @see {@link https://tools.ietf.org/html/rfc7233#section-3.1 Section 3.1 of RFC 7233}
|
|
230
|
+
*/
|
|
231
|
+
static RANGE: string;
|
|
232
|
+
/**
|
|
233
|
+
* The HTTP `Referer` header field name.
|
|
234
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.2 Section 5.5.2 of RFC 7231}
|
|
235
|
+
*/
|
|
236
|
+
static REFERER: string;
|
|
237
|
+
/**
|
|
238
|
+
* The HTTP `Retry-After` header field name.
|
|
239
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.3 Section 7.1.3 of RFC 7231}
|
|
240
|
+
*/
|
|
241
|
+
static RETRY_AFTER: string;
|
|
242
|
+
/**
|
|
243
|
+
* The HTTP `Server` header field name.
|
|
244
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.4.2 Section 7.4.2 of RFC 7231}
|
|
245
|
+
*/
|
|
246
|
+
static SERVER: string;
|
|
247
|
+
/**
|
|
248
|
+
* The HTTP `Set-Cookie` header field name.
|
|
249
|
+
* @see {@link https://tools.ietf.org/html/rfc2109#section-4.2.2 Section 4.2.2 of RFC 2109}
|
|
250
|
+
*/
|
|
251
|
+
static SET_COOKIE: string;
|
|
252
|
+
/**
|
|
253
|
+
* The HTTP `Set-Cookie2` header field name.
|
|
254
|
+
* @see {@link https://tools.ietf.org/html/rfc2965 RFC 2965}
|
|
255
|
+
*/
|
|
256
|
+
static SET_COOKIE2: string;
|
|
257
|
+
/**
|
|
258
|
+
* The HTTP `TE` header field name.
|
|
259
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-4.3 Section 4.3 of RFC 7230}
|
|
260
|
+
*/
|
|
261
|
+
static TE: string;
|
|
262
|
+
/**
|
|
263
|
+
* The HTTP `Trailer` header field name.
|
|
264
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-4.4 Section 4.4 of RFC 7230}
|
|
265
|
+
*/
|
|
266
|
+
static TRAILER: string;
|
|
267
|
+
/**
|
|
268
|
+
* The HTTP `Transfer-Encoding` header field name.
|
|
269
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-3.3.1 Section 3.3.1 of RFC 7230}
|
|
270
|
+
*/
|
|
271
|
+
static TRANSFER_ENCODING: string;
|
|
272
|
+
/**
|
|
273
|
+
* The HTTP `Upgrade` header field name.
|
|
274
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-6.7 Section 6.7 of RFC 7230}
|
|
275
|
+
*/
|
|
276
|
+
static UPGRADE: string;
|
|
277
|
+
/**
|
|
278
|
+
* The HTTP `User-Agent` header field name.
|
|
279
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-5.5.3 Section 5.5.3 of RFC 7231}
|
|
280
|
+
*/
|
|
281
|
+
static USER_AGENT: string;
|
|
282
|
+
/**
|
|
283
|
+
* The HTTP `Vary` header field name.
|
|
284
|
+
* @see {@link https://tools.ietf.org/html/rfc7231#section-7.1.4 Section 7.1.4 of RFC 7231}
|
|
285
|
+
*/
|
|
286
|
+
static VARY: string;
|
|
287
|
+
/**
|
|
288
|
+
* The HTTP `Via` header field name.
|
|
289
|
+
* @see {@link https://tools.ietf.org/html/rfc7230#section-5.7.1 Section 5.7.1 of RFC 7230}
|
|
290
|
+
*/
|
|
291
|
+
static VIA: string;
|
|
292
|
+
/**
|
|
293
|
+
* The HTTP `Warning` header field name.
|
|
294
|
+
* @see {@link https://tools.ietf.org/html/rfc7234#section-5.5 Section 5.5 of RFC 7234}
|
|
295
|
+
*/
|
|
296
|
+
static WARNING: string;
|
|
297
|
+
/**
|
|
298
|
+
* The HTTP `WWW-Authenticate` header field name.
|
|
299
|
+
* @see {@link https://tools.ietf.org/html/rfc7235#section-4.1 Section 4.1 of RFC 7235}
|
|
300
|
+
*/
|
|
301
|
+
static WWW_AUTHENTICATE: string;
|
|
302
|
+
/**
|
|
303
|
+
* The HTTP `X-Requested-With` header field name.
|
|
304
|
+
*/
|
|
305
|
+
static X_REQUESTED_WITH: string;
|
|
306
|
+
}
|