@fncts/http 0.0.12 → 0.0.13
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/LICENSE +26 -0
- package/_cjs/Body/api.cjs +62 -65
- package/_cjs/Body/api.cjs.map +1 -1
- package/_cjs/Body/definition.cjs +66 -69
- package/_cjs/Body/definition.cjs.map +1 -1
- package/_cjs/Body.cjs +20 -28
- package/_cjs/BodyError.cjs +33 -36
- package/_cjs/BodyError.cjs.map +1 -1
- package/_cjs/Headers.cjs +70 -73
- package/_cjs/Headers.cjs.map +1 -1
- package/_cjs/HttpApp.cjs +102 -94
- package/_cjs/HttpApp.cjs.map +1 -1
- package/_cjs/IncomingMessage/api.cjs +24 -23
- package/_cjs/IncomingMessage/api.cjs.map +1 -1
- package/_cjs/IncomingMessage/definition.cjs +12 -13
- package/_cjs/IncomingMessage/definition.cjs.map +1 -1
- package/_cjs/IncomingMessage.cjs +8 -28
- package/_cjs/Method.cjs +6 -7
- package/_cjs/Method.cjs.map +1 -1
- package/_cjs/Middleware.cjs +11 -12
- package/_cjs/Middleware.cjs.map +1 -1
- package/_cjs/QueryParams.cjs +0 -2
- package/_cjs/RequestError.cjs +17 -18
- package/_cjs/RequestError.cjs.map +1 -1
- package/_cjs/ResponseError.cjs +26 -27
- package/_cjs/ResponseError.cjs.map +1 -1
- package/_cjs/Route/api.cjs +87 -74
- package/_cjs/Route/api.cjs.map +1 -1
- package/_cjs/Route/definition.cjs +28 -26
- package/_cjs/Route/definition.cjs.map +1 -1
- package/_cjs/Route/internal.cjs +33 -34
- package/_cjs/Route/internal.cjs.map +1 -1
- package/_cjs/Route.cjs +23 -28
- package/_cjs/RouteNotFound.cjs +16 -17
- package/_cjs/RouteNotFound.cjs.map +1 -1
- package/_cjs/Router/api.cjs +127 -119
- package/_cjs/Router/api.cjs.map +1 -1
- package/_cjs/Router/definition.cjs +14 -14
- package/_cjs/Router/definition.cjs.map +1 -1
- package/_cjs/Router/internal.cjs +75 -82
- package/_cjs/Router/internal.cjs.map +1 -1
- package/_cjs/Router.cjs +24 -28
- package/_cjs/Server.cjs +38 -34
- package/_cjs/Server.cjs.map +1 -1
- package/_cjs/ServerError.cjs +18 -18
- package/_cjs/ServerError.cjs.map +1 -1
- package/_cjs/ServerRequest/api.cjs +9 -10
- package/_cjs/ServerRequest/api.cjs.map +1 -1
- package/_cjs/ServerRequest/definition.cjs +20 -19
- package/_cjs/ServerRequest/definition.cjs.map +1 -1
- package/_cjs/ServerRequest/internal.cjs +77 -80
- package/_cjs/ServerRequest/internal.cjs.map +1 -1
- package/_cjs/ServerRequest.cjs +7 -28
- package/_cjs/ServerResponse/api.cjs +108 -116
- package/_cjs/ServerResponse/api.cjs.map +1 -1
- package/_cjs/ServerResponse/definition.cjs +36 -41
- package/_cjs/ServerResponse/definition.cjs.map +1 -1
- package/_cjs/ServerResponse.cjs +18 -28
- package/_cjs/Socket.cjs +213 -192
- package/_cjs/Socket.cjs.map +1 -1
- package/_cjs/UrlParams.cjs +23 -27
- package/_cjs/UrlParams.cjs.map +1 -1
- package/_cjs/chunk.cjs +28 -0
- package/_cjs/global.cjs +0 -2
- package/_mjs/Body/api.mjs +54 -56
- package/_mjs/Body/api.mjs.map +1 -1
- package/_mjs/Body/definition.mjs +61 -59
- package/_mjs/Body/definition.mjs.map +1 -1
- package/_mjs/Body.mjs +3 -4
- package/_mjs/BodyError.mjs +30 -28
- package/_mjs/BodyError.mjs.map +1 -1
- package/_mjs/Headers.mjs +61 -63
- package/_mjs/Headers.mjs.map +1 -1
- package/_mjs/HttpApp.mjs +74 -79
- package/_mjs/HttpApp.mjs.map +1 -1
- package/_mjs/IncomingMessage/api.mjs +21 -17
- package/_mjs/IncomingMessage/api.mjs.map +1 -1
- package/_mjs/IncomingMessage/definition.mjs +11 -7
- package/_mjs/IncomingMessage/definition.mjs.map +1 -1
- package/_mjs/IncomingMessage.mjs +3 -4
- package/_mjs/Method.mjs +6 -2
- package/_mjs/Method.mjs.map +1 -1
- package/_mjs/Middleware.mjs +10 -6
- package/_mjs/Middleware.mjs.map +1 -1
- package/_mjs/QueryParams.mjs +0 -2
- package/_mjs/RequestError.mjs +16 -12
- package/_mjs/RequestError.mjs.map +1 -1
- package/_mjs/ResponseError.mjs +25 -21
- package/_mjs/ResponseError.mjs.map +1 -1
- package/_mjs/Route/api.mjs +68 -64
- package/_mjs/Route/api.mjs.map +1 -1
- package/_mjs/Route/definition.mjs +21 -17
- package/_mjs/Route/definition.mjs.map +1 -1
- package/_mjs/Route/internal.mjs +30 -26
- package/_mjs/Route/internal.mjs.map +1 -1
- package/_mjs/Route.mjs +3 -4
- package/_mjs/RouteNotFound.mjs +15 -11
- package/_mjs/RouteNotFound.mjs.map +1 -1
- package/_mjs/Router/api.mjs +105 -107
- package/_mjs/Router/api.mjs.map +1 -1
- package/_mjs/Router/definition.mjs +11 -7
- package/_mjs/Router/definition.mjs.map +1 -1
- package/_mjs/Router/internal.mjs +55 -66
- package/_mjs/Router/internal.mjs.map +1 -1
- package/_mjs/Router.mjs +3 -4
- package/_mjs/Server.mjs +28 -24
- package/_mjs/Server.mjs.map +1 -1
- package/_mjs/ServerError.mjs +14 -10
- package/_mjs/ServerError.mjs.map +1 -1
- package/_mjs/ServerRequest/api.mjs +8 -4
- package/_mjs/ServerRequest/api.mjs.map +1 -1
- package/_mjs/ServerRequest/definition.mjs +15 -11
- package/_mjs/ServerRequest/definition.mjs.map +1 -1
- package/_mjs/ServerRequest/internal.mjs +65 -70
- package/_mjs/ServerRequest/internal.mjs.map +1 -1
- package/_mjs/ServerRequest.mjs +3 -4
- package/_mjs/ServerResponse/api.mjs +97 -106
- package/_mjs/ServerResponse/api.mjs.map +1 -1
- package/_mjs/ServerResponse/definition.mjs +30 -32
- package/_mjs/ServerResponse/definition.mjs.map +1 -1
- package/_mjs/ServerResponse.mjs +3 -4
- package/_mjs/Socket.mjs +152 -156
- package/_mjs/Socket.mjs.map +1 -1
- package/_mjs/UrlParams.mjs +22 -20
- package/_mjs/UrlParams.mjs.map +1 -1
- package/_mjs/global.mjs +0 -2
- package/package.json +10 -6
- package/_cjs/Body.cjs.map +0 -1
- package/_cjs/IncomingMessage.cjs.map +0 -1
- package/_cjs/QueryParams.cjs.map +0 -1
- package/_cjs/Route.cjs.map +0 -1
- package/_cjs/Router.cjs.map +0 -1
- package/_cjs/ServerRequest.cjs.map +0 -1
- package/_cjs/ServerResponse.cjs.map +0 -1
- package/_cjs/global.cjs.map +0 -1
- package/_mjs/Body.mjs.map +0 -1
- package/_mjs/IncomingMessage.mjs.map +0 -1
- package/_mjs/QueryParams.mjs.map +0 -1
- package/_mjs/Route.mjs.map +0 -1
- package/_mjs/Router.mjs.map +0 -1
- package/_mjs/ServerRequest.mjs.map +0 -1
- package/_mjs/ServerResponse.mjs.map +0 -1
- package/_mjs/global.mjs.map +0 -1
|
@@ -1,83 +1,80 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("../chunk.cjs");
|
|
3
|
+
const require_RequestError = require("../RequestError.cjs");
|
|
4
|
+
const require_ServerRequest_definition = require("./definition.cjs");
|
|
5
|
+
let _fncts_base_data_Exit_api = require("@fncts/base/data/Exit/api");
|
|
6
|
+
_fncts_base_data_Exit_api = require_chunk.__toESM(_fncts_base_data_Exit_api, 1);
|
|
7
|
+
let _fncts_io_IO_api = require("@fncts/io/IO/api");
|
|
8
|
+
_fncts_io_IO_api = require_chunk.__toESM(_fncts_io_IO_api, 1);
|
|
9
|
+
let _fncts_base_data_Maybe_constructors = require("@fncts/base/data/Maybe/constructors");
|
|
10
|
+
_fncts_base_data_Maybe_constructors = require_chunk.__toESM(_fncts_base_data_Maybe_constructors, 1);
|
|
11
|
+
let _fncts_http_Headers = require("@fncts/http/Headers");
|
|
12
|
+
_fncts_http_Headers = require_chunk.__toESM(_fncts_http_Headers, 1);
|
|
13
|
+
let _fncts_http_UrlParams = require("@fncts/http/UrlParams");
|
|
14
|
+
_fncts_http_UrlParams = require_chunk.__toESM(_fncts_http_UrlParams, 1);
|
|
15
|
+
let _fncts_io_Stream_api = require("@fncts/io/Stream/api");
|
|
16
|
+
_fncts_io_Stream_api = require_chunk.__toESM(_fncts_io_Stream_api, 1);
|
|
17
|
+
let _fncts_io_IO_api_memoize = require("@fncts/io/IO/api/memoize");
|
|
18
|
+
_fncts_io_IO_api_memoize = require_chunk.__toESM(_fncts_io_IO_api_memoize, 1);
|
|
19
|
+
let _fncts_io_IO_runtime = require("@fncts/io/IO/runtime");
|
|
20
|
+
_fncts_io_IO_runtime = require_chunk.__toESM(_fncts_io_IO_runtime, 1);
|
|
21
|
+
//#region build/esm/ServerRequest/internal.js
|
|
19
22
|
const fileName_1 = "(@fncts/http) src/ServerRequest/internal.ts";
|
|
20
|
-
class ServerRequestImpl extends
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
modify(options) {
|
|
76
|
-
return new ServerRequestImpl(this.source, options.url ?? this.url, options.headers ?? this.headers, options.remoteAddress ?? this.remoteAddressOverride);
|
|
77
|
-
}
|
|
78
|
-
get upgrade() {
|
|
79
|
-
return tsplus_module_3.failNow(new _RequestError.RequestError(this, "Decode", "Not an upgradeable ServerRequest"), fileName_1 + ":105:22");
|
|
80
|
-
}
|
|
81
|
-
}
|
|
23
|
+
var ServerRequestImpl = class ServerRequestImpl extends require_ServerRequest_definition.ServerRequest {
|
|
24
|
+
source;
|
|
25
|
+
url;
|
|
26
|
+
headersOverride;
|
|
27
|
+
remoteAddressOverride;
|
|
28
|
+
constructor(source, url, headersOverride, remoteAddressOverride) {
|
|
29
|
+
super();
|
|
30
|
+
this.source = source;
|
|
31
|
+
this.url = url;
|
|
32
|
+
this.headersOverride = headersOverride;
|
|
33
|
+
this.remoteAddressOverride = remoteAddressOverride;
|
|
34
|
+
}
|
|
35
|
+
get method() {
|
|
36
|
+
return this.source.method.toUpperCase();
|
|
37
|
+
}
|
|
38
|
+
get originalUrl() {
|
|
39
|
+
return this.source.url;
|
|
40
|
+
}
|
|
41
|
+
get remoteAddress() {
|
|
42
|
+
return _fncts_base_data_Maybe_constructors.fromNullable(this.remoteAddressOverride);
|
|
43
|
+
}
|
|
44
|
+
get headers() {
|
|
45
|
+
this.headersOverride ??= _fncts_http_Headers.fromHeaders(this.source.headers);
|
|
46
|
+
return this.headersOverride;
|
|
47
|
+
}
|
|
48
|
+
textIO;
|
|
49
|
+
get text() {
|
|
50
|
+
if (this.textIO) return this.textIO;
|
|
51
|
+
this.textIO = _fncts_base_data_Exit_api.getOrThrow(_fncts_io_IO_runtime.unsafeRun(_fncts_io_IO_api_memoize.memoize(_fncts_io_IO_api.fromPromiseCatch(() => this.source.text(), (error) => new require_RequestError.RequestError(this, "Decode", error), fileName_1 + ":43:38"), fileName_1 + ":46:6")));
|
|
52
|
+
return this.textIO;
|
|
53
|
+
}
|
|
54
|
+
get json() {
|
|
55
|
+
return _fncts_io_IO_api.flatMap((text) => _fncts_io_IO_api.tryCatch(() => JSON.parse(text), (error) => new require_RequestError.RequestError(this, "Decode", error), fileName_1 + ":53:18"), fileName_1 + ":52:29")(this.text);
|
|
56
|
+
}
|
|
57
|
+
get urlParamsBody() {
|
|
58
|
+
return _fncts_io_IO_api.flatMap((text) => _fncts_io_IO_api.tryCatch(() => _fncts_http_UrlParams.make(new URLSearchParams(text)), (error) => new require_RequestError.RequestError(this, "Decode", error), fileName_1 + ":62:18"), fileName_1 + ":61:29")(this.text);
|
|
59
|
+
}
|
|
60
|
+
arrayBufferIO;
|
|
61
|
+
get arrayBuffer() {
|
|
62
|
+
if (this.arrayBufferIO) return this.arrayBufferIO;
|
|
63
|
+
this.arrayBufferIO = _fncts_base_data_Exit_api.getOrThrow(_fncts_io_IO_runtime.unsafeRun(_fncts_io_IO_api_memoize.memoize(_fncts_io_IO_api.map((buffer) => new Uint8Array(buffer), fileName_1 + ":78:10")(_fncts_io_IO_api.fromPromiseCatch(() => this.source.arrayBuffer(), (error) => new require_RequestError.RequestError(this, "Decode", error), fileName_1 + ":75:45")), fileName_1 + ":78:46")));
|
|
64
|
+
return this.arrayBufferIO;
|
|
65
|
+
}
|
|
66
|
+
get stream() {
|
|
67
|
+
if (this.source.body) return _fncts_io_Stream_api.fromReadableStream(() => this.source.body, (error) => new require_RequestError.RequestError(this, "Decode", error));
|
|
68
|
+
else return _fncts_io_Stream_api.failNow(new require_RequestError.RequestError(this, "Decode", "cannot create stream from empty body"), fileName_1 + ":87:28");
|
|
69
|
+
}
|
|
70
|
+
modify(options) {
|
|
71
|
+
return new ServerRequestImpl(this.source, options.url ?? this.url, options.headers ?? this.headers, options.remoteAddress ?? this.remoteAddressOverride);
|
|
72
|
+
}
|
|
73
|
+
get upgrade() {
|
|
74
|
+
return _fncts_io_IO_api.failNow(new require_RequestError.RequestError(this, "Decode", "Not an upgradeable ServerRequest"), fileName_1 + ":105:22");
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
//#endregion
|
|
82
78
|
exports.ServerRequestImpl = ServerRequestImpl;
|
|
79
|
+
|
|
83
80
|
//# sourceMappingURL=internal.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.cjs","names":["
|
|
1
|
+
{"version":3,"file":"internal.cjs","names":["ServerRequest","tsplus_module_1","tsplus_module_2","tsplus_module_6","tsplus_module_5","tsplus_module_4","tsplus_module_3","RequestError","tsplus_module_7","tsplus_module_8"],"sources":["../../esm/ServerRequest/internal.js"],"sourcesContent":["const fileName_1 = \"(@fncts/http) src/ServerRequest/internal.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_2 from \"@fncts/http/Headers\";\nimport * as tsplus_module_3 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_4 from \"@fncts/io/IO/api/memoize\";\nimport * as tsplus_module_5 from \"@fncts/io/IO/runtime\";\nimport * as tsplus_module_6 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_7 from \"@fncts/http/UrlParams\";\nimport * as tsplus_module_8 from \"@fncts/io/Stream/api\";\nimport { RequestError } from \"../RequestError.js\";\nimport { UrlParams } from \"../UrlParams.js\";\nimport { ServerRequest } from \"./definition.js\";\nexport class ServerRequestImpl extends ServerRequest {\n source;\n url;\n headersOverride;\n remoteAddressOverride;\n constructor(source, url, headersOverride, remoteAddressOverride) {\n super();\n this.source = source;\n this.url = url;\n this.headersOverride = headersOverride;\n this.remoteAddressOverride = remoteAddressOverride;\n }\n get method() {\n return this.source.method.toUpperCase();\n }\n get originalUrl() {\n return this.source.url;\n }\n get remoteAddress() {\n return tsplus_module_1.fromNullable(this.remoteAddressOverride);\n }\n get headers() {\n // eslint-disable-next-line @0x706b/align-assignments/align-assignments\n this.headersOverride ??= tsplus_module_2.fromHeaders(this.source.headers);\n return this.headersOverride;\n }\n textIO;\n get text() {\n if (this.textIO) {\n return this.textIO;\n }\n this.textIO = tsplus_module_6.getOrThrow(tsplus_module_5.unsafeRun(tsplus_module_4.memoize(tsplus_module_3.fromPromiseCatch(() => this.source.text(), (error) => new RequestError(this, \"Decode\", error), fileName_1 + \":43:38\"), fileName_1 + \":46:6\")));\n return this.textIO;\n }\n get json() {\n return tsplus_module_3.flatMap((text) => tsplus_module_3.tryCatch(() => JSON.parse(text), (error) => new RequestError(this, \"Decode\", error), fileName_1 + \":53:18\"), fileName_1 + \":52:29\")(this.text);\n }\n get urlParamsBody() {\n return tsplus_module_3.flatMap((text) => tsplus_module_3.tryCatch(() => tsplus_module_7.make(new URLSearchParams(text)), (error) => new RequestError(this, \"Decode\", error), fileName_1 + \":62:18\"), fileName_1 + \":61:29\")(this.text);\n }\n arrayBufferIO;\n get arrayBuffer() {\n if (this.arrayBufferIO) {\n return this.arrayBufferIO;\n }\n this.arrayBufferIO = tsplus_module_6.getOrThrow(tsplus_module_5.unsafeRun(tsplus_module_4.memoize(tsplus_module_3.map((buffer) => new Uint8Array(buffer), fileName_1 + \":78:10\")(tsplus_module_3.fromPromiseCatch(() => this.source.arrayBuffer(), (error) => new RequestError(this, \"Decode\", error), fileName_1 + \":75:45\")), fileName_1 + \":78:46\")));\n return this.arrayBufferIO;\n }\n get stream() {\n if (this.source.body) {\n return tsplus_module_8.fromReadableStream(() => this.source.body, (error) => new RequestError(this, \"Decode\", error));\n }\n else {\n return tsplus_module_8.failNow(new RequestError(this, \"Decode\", \"cannot create stream from empty body\"), fileName_1 + \":87:28\");\n }\n }\n modify(options) {\n return new ServerRequestImpl(this.source, options.url ?? this.url, options.headers ?? this.headers, options.remoteAddress ?? this.remoteAddressOverride);\n }\n get upgrade() {\n return tsplus_module_3.failNow(new RequestError(this, \"Decode\", \"Not an upgrade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AAS,CAAC,KAAK,KAAK;;CAE1O;CACA,IAAI,cAAc;AACd,MAAI,KAAK,cACL,QAAO,KAAK;AAEhB,OAAK,gBAAgBJ,0BAAgB,WAAWC,qBAAgB,UAAUC,yBAAgB,QAAQC,iBAAgB,KAAK,WAAW,IAAI,WAAW,OAAO,EAAE,aAAa,SAAS,CAACA,iBAAgB,uBAAuB,KAAK,OAAO,aAAa,GAAG,UAAU,IAAIC,qBAAAA,aAAa,MAAM,UAAU,MAAM,EAAE,aAAa,SAAS,CAAC,EAAE,aAAa,SAAS,CAAC,CAAC;AACxV,SAAO,KAAK;;CAEhB,IAAI,SAAS;AACT,MAAI,KAAK,OAAO,KACZ,QAAOE,qBAAgB,yBAAyB,KAAK,OAAO,OAAO,UAAU,IAAIF,qBAAAA,aAAa,MAAM,UAAU,MAAM,CAAC;MAGrH,QAAOE,qBAAgB,QAAQ,IAAIF,qBAAAA,aAAa,MAAM,UAAU,uCAAuC,EAAE,aAAa,SAAS;;CAGvI,OAAO,SAAS;AACZ,SAAO,IAAI,kBAAkB,KAAK,QAAQ,QAAQ,OAAO,KAAK,KAAK,QAAQ,WAAW,KAAK,SAAS,QAAQ,iBAAiB,KAAK,sBAAsB;;CAE5J,IAAI,UAAU;AACV,SAAOD,iBAAgB,QAAQ,IAAIC,qBAAAA,aAAa,MAAM,UAAU,mCAAmC,EAAE,aAAa,UAAU"}
|
package/_cjs/ServerRequest.cjs
CHANGED
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _api[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _api[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _definition = /*#__PURE__*/require("./ServerRequest/definition.cjs");
|
|
18
|
-
Object.keys(_definition).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _definition[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _definition[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=ServerRequest.cjs.map
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_ServerRequest_definition = require("./ServerRequest/definition.cjs");
|
|
3
|
+
const require_ServerRequest_api = require("./ServerRequest/api.cjs");
|
|
4
|
+
exports.ServerRequest = require_ServerRequest_definition.ServerRequest;
|
|
5
|
+
exports.ServerRequestTag = require_ServerRequest_definition.ServerRequestTag;
|
|
6
|
+
exports.ServerRequestTypeId = require_ServerRequest_definition.ServerRequestTypeId;
|
|
7
|
+
exports.fromWeb = require_ServerRequest_api.fromWeb;
|
|
@@ -1,156 +1,148 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.urlParams = urlParams;
|
|
18
|
-
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/http/Headers"));
|
|
19
|
-
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/http/Body/api"));
|
|
20
|
-
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api"));
|
|
21
|
-
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/http/UrlParams"));
|
|
22
|
-
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/http/Body/definition"));
|
|
23
|
-
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/Stream/api"));
|
|
24
|
-
var _UrlParams2 = /*#__PURE__*/require("../UrlParams.cjs");
|
|
25
|
-
var _definition2 = /*#__PURE__*/require("./definition.cjs");
|
|
26
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("../chunk.cjs");
|
|
3
|
+
const require_ServerResponse_definition = require("./definition.cjs");
|
|
4
|
+
let _fncts_io_IO_api = require("@fncts/io/IO/api");
|
|
5
|
+
_fncts_io_IO_api = require_chunk.__toESM(_fncts_io_IO_api, 1);
|
|
6
|
+
let _fncts_http_Headers = require("@fncts/http/Headers");
|
|
7
|
+
_fncts_http_Headers = require_chunk.__toESM(_fncts_http_Headers, 1);
|
|
8
|
+
let _fncts_http_Body_api = require("@fncts/http/Body/api");
|
|
9
|
+
_fncts_http_Body_api = require_chunk.__toESM(_fncts_http_Body_api, 1);
|
|
10
|
+
let _fncts_http_UrlParams = require("@fncts/http/UrlParams");
|
|
11
|
+
_fncts_http_UrlParams = require_chunk.__toESM(_fncts_http_UrlParams, 1);
|
|
12
|
+
let _fncts_http_Body_definition = require("@fncts/http/Body/definition");
|
|
13
|
+
_fncts_http_Body_definition = require_chunk.__toESM(_fncts_http_Body_definition, 1);
|
|
14
|
+
let _fncts_io_Stream_api = require("@fncts/io/Stream/api");
|
|
15
|
+
_fncts_io_Stream_api = require_chunk.__toESM(_fncts_io_Stream_api, 1);
|
|
16
|
+
//#region build/esm/ServerResponse/api.js
|
|
27
17
|
const fileName_1 = "(@fncts/http) src/ServerResponse/api.ts";
|
|
28
18
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
* @tsplus static fncts.http.ServerResponseOps empty
|
|
20
|
+
*/
|
|
31
21
|
function empty(options) {
|
|
32
|
-
|
|
22
|
+
return new require_ServerResponse_definition.ServerResponse(options?.status ?? 204, options?.statusText, options?.headers ?? _fncts_http_Headers.empty, _fncts_http_Body_api.empty);
|
|
33
23
|
}
|
|
34
24
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
* @tsplus static fncts.http.ServerResponseOps uint8Array
|
|
26
|
+
*/
|
|
37
27
|
function uint8Array(body, options) {
|
|
38
|
-
|
|
28
|
+
return new require_ServerResponse_definition.ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? _fncts_http_Headers.empty, _fncts_http_Body_api.uint8Array(body, getContentType(options)));
|
|
39
29
|
}
|
|
40
30
|
/**
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
* @tsplus static fncts.http.ServerResponseOps text
|
|
32
|
+
*/
|
|
43
33
|
function text(body, options) {
|
|
44
|
-
|
|
34
|
+
return new require_ServerResponse_definition.ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? _fncts_http_Headers.empty, _fncts_http_Body_api.text(body, getContentType(options)));
|
|
45
35
|
}
|
|
46
36
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
* @tsplus static fncts.http.ServerResponseOps json
|
|
38
|
+
*/
|
|
49
39
|
function json(body, options) {
|
|
50
|
-
|
|
40
|
+
return _fncts_io_IO_api.map((body) => new require_ServerResponse_definition.ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? _fncts_http_Headers.empty, body), fileName_1 + ":44:29")(_fncts_http_Body_api.json(body));
|
|
51
41
|
}
|
|
52
42
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
43
|
+
* @tsplus static fncts.http.ServerResponseOps schemaJson
|
|
44
|
+
*/
|
|
55
45
|
function schemaJson(schema) {
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
const encode = _fncts_http_Body_api.jsonSchema(schema);
|
|
47
|
+
return (body, options) => _fncts_io_IO_api.map((body) => new require_ServerResponse_definition.ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? _fncts_http_Headers.empty, body), fileName_1 + ":55:21")(encode(body));
|
|
58
48
|
}
|
|
59
49
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
50
|
+
* @tsplus static fncts.http.ServerResponseOps urlParams
|
|
51
|
+
*/
|
|
62
52
|
function urlParams(body, options) {
|
|
63
|
-
|
|
53
|
+
return new require_ServerResponse_definition.ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? _fncts_http_Headers.empty, _fncts_http_Body_api.text(_fncts_http_UrlParams.toString(_fncts_http_UrlParams.make(body)), "application/x-www-form-urlencoded"));
|
|
64
54
|
}
|
|
65
55
|
/**
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
* @tsplus static fncts.http.ServerResponseOps stream
|
|
57
|
+
*/
|
|
68
58
|
function stream(body, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
return new require_ServerResponse_definition.ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? _fncts_http_Headers.empty, _fncts_http_Body_api.stream(body, {
|
|
60
|
+
contentType: getContentType(options),
|
|
61
|
+
contentLength: options?.contentLength
|
|
62
|
+
}));
|
|
73
63
|
}
|
|
74
64
|
/**
|
|
75
|
-
|
|
76
|
-
|
|
65
|
+
* @tsplus pipeable fncts.http.ServerResponse setHeader
|
|
66
|
+
*/
|
|
77
67
|
function setHeader(key, value) {
|
|
78
|
-
|
|
68
|
+
return (self) => new require_ServerResponse_definition.ServerResponse(self.status, self.statusText, self.headers.set(key, value), self.body);
|
|
79
69
|
}
|
|
80
70
|
/**
|
|
81
|
-
|
|
82
|
-
|
|
71
|
+
* @tsplus pipeable fncts.http.ServerResponse setHeaders
|
|
72
|
+
*/
|
|
83
73
|
function setHeaders(headers) {
|
|
84
|
-
|
|
74
|
+
return (self) => new require_ServerResponse_definition.ServerResponse(self.status, self.statusText, self.headers.setAll(headers), self.body);
|
|
85
75
|
}
|
|
86
76
|
/**
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
* @tsplus pipeable fncts.http.ServerResponse setStatus
|
|
78
|
+
*/
|
|
89
79
|
function setStatus(status, statusText) {
|
|
90
|
-
|
|
80
|
+
return (self) => new require_ServerResponse_definition.ServerResponse(status, statusText, self.headers, self.body);
|
|
91
81
|
}
|
|
92
82
|
/**
|
|
93
|
-
|
|
94
|
-
|
|
83
|
+
* @tsplus pipeable fncts.http.ServerResponse setBody
|
|
84
|
+
*/
|
|
95
85
|
function setBody(body) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return new _definition2.ServerResponse(self.status, self.statusText, headers, body);
|
|
103
|
-
};
|
|
86
|
+
return (self) => {
|
|
87
|
+
let headers = self.headers;
|
|
88
|
+
_fncts_http_Body_definition.concrete(body);
|
|
89
|
+
if (body._tag === 0) headers = self.headers.remove("content-type").remove("content-length");
|
|
90
|
+
return new require_ServerResponse_definition.ServerResponse(self.status, self.statusText, headers, body);
|
|
91
|
+
};
|
|
104
92
|
}
|
|
105
93
|
/**
|
|
106
|
-
|
|
107
|
-
|
|
94
|
+
* @tsplus pipeable fncts.http.ServerResponse toWeb
|
|
95
|
+
*/
|
|
108
96
|
function toWeb(withoutBody = false) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
status: self.status,
|
|
141
|
-
statusText: self.statusText,
|
|
142
|
-
headers: self.headers.toHeadersInit()
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
};
|
|
97
|
+
return (self) => {
|
|
98
|
+
if (withoutBody) return new Response(void 0, {
|
|
99
|
+
status: self.status,
|
|
100
|
+
statusText: self.statusText,
|
|
101
|
+
headers: self.headers.toHeadersInit()
|
|
102
|
+
});
|
|
103
|
+
_fncts_http_Body_definition.concrete(self.body);
|
|
104
|
+
switch (self.body._tag) {
|
|
105
|
+
case 0: return new Response(void 0, {
|
|
106
|
+
status: self.status,
|
|
107
|
+
statusText: self.statusText,
|
|
108
|
+
headers: self.headers.toHeadersInit()
|
|
109
|
+
});
|
|
110
|
+
case 2:
|
|
111
|
+
case 1: return new Response(self.body.body, {
|
|
112
|
+
status: self.status,
|
|
113
|
+
statusText: self.statusText,
|
|
114
|
+
headers: self.headers.toHeadersInit()
|
|
115
|
+
});
|
|
116
|
+
case 3: return new Response(self.body.formData, {
|
|
117
|
+
status: self.status,
|
|
118
|
+
statusText: self.statusText,
|
|
119
|
+
headers: self.headers.toHeadersInit()
|
|
120
|
+
});
|
|
121
|
+
case 4: return new Response(_fncts_io_Stream_api.toReadableStream(self.body.stream, fileName_1 + ":160:45"), {
|
|
122
|
+
status: self.status,
|
|
123
|
+
statusText: self.statusText,
|
|
124
|
+
headers: self.headers.toHeadersInit()
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
};
|
|
146
128
|
}
|
|
147
129
|
function getContentType(options) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
return options.headers.unsafeGet("content-type");
|
|
152
|
-
} else {
|
|
153
|
-
return;
|
|
154
|
-
}
|
|
130
|
+
if (options?.contentType) return options.contentType;
|
|
131
|
+
else if (options?.headers) return options.headers.unsafeGet("content-type");
|
|
132
|
+
else return;
|
|
155
133
|
}
|
|
134
|
+
//#endregion
|
|
135
|
+
exports.empty = empty;
|
|
136
|
+
exports.json = json;
|
|
137
|
+
exports.schemaJson = schemaJson;
|
|
138
|
+
exports.setBody = setBody;
|
|
139
|
+
exports.setHeader = setHeader;
|
|
140
|
+
exports.setHeaders = setHeaders;
|
|
141
|
+
exports.setStatus = setStatus;
|
|
142
|
+
exports.stream = stream;
|
|
143
|
+
exports.text = text;
|
|
144
|
+
exports.toWeb = toWeb;
|
|
145
|
+
exports.uint8Array = uint8Array;
|
|
146
|
+
exports.urlParams = urlParams;
|
|
147
|
+
|
|
156
148
|
//# sourceMappingURL=api.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.cjs","names":["
|
|
1
|
+
{"version":3,"file":"api.cjs","names":["ServerResponse","tsplus_module_1","tsplus_module_2","tsplus_module_3","tsplus_module_4","tsplus_module_6"],"sources":["../../esm/ServerResponse/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/http) src/ServerResponse/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/http/Headers\";\nimport * as tsplus_module_2 from \"@fncts/http/Body/api\";\nimport * as tsplus_module_3 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_4 from \"@fncts/http/UrlParams\";\nimport * as tsplus_module_5 from \"@fncts/http/Body/definition\";\nimport * as tsplus_module_6 from \"@fncts/io/Stream/api\";\nimport { UrlParams } from \"../UrlParams.js\";\nimport { ServerResponse } from \"./definition.js\";\n/**\n * @tsplus static fncts.http.ServerResponseOps empty\n */\nexport function empty(options) {\n return new ServerResponse(options?.status ?? 204, options?.statusText, options?.headers ?? tsplus_module_1.empty, tsplus_module_2.empty);\n}\n/**\n * @tsplus static fncts.http.ServerResponseOps uint8Array\n */\nexport function uint8Array(body, options) {\n return new ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? tsplus_module_1.empty, tsplus_module_2.uint8Array(body, getContentType(options)));\n}\n/**\n * @tsplus static fncts.http.ServerResponseOps text\n */\nexport function text(body, options) {\n return new ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? tsplus_module_1.empty, tsplus_module_2.text(body, getContentType(options)));\n}\n/**\n * @tsplus static fncts.http.ServerResponseOps json\n */\nexport function json(body, options) {\n return tsplus_module_3.map((body) => new ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? tsplus_module_1.empty, body), fileName_1 + \":44:29\")(tsplus_module_2.json(body));\n}\n/**\n * @tsplus static fncts.http.ServerResponseOps schemaJson\n */\nexport function schemaJson(schema) {\n const encode = tsplus_module_2.jsonSchema(schema);\n return (body, options) => tsplus_module_3.map((body) => new ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? tsplus_module_1.empty, body), fileName_1 + \":55:21\")(encode(body));\n}\n/**\n * @tsplus static fncts.http.ServerResponseOps urlParams\n */\nexport function urlParams(body, options) {\n return new ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? tsplus_module_1.empty, tsplus_module_2.text(tsplus_module_4.toString(tsplus_module_4.make(body)), \"application/x-www-form-urlencoded\"));\n}\n/**\n * @tsplus static fncts.http.ServerResponseOps stream\n */\nexport function stream(body, options) {\n return new ServerResponse(options?.status ?? 200, options?.statusText, options?.headers ?? tsplus_module_1.empty, tsplus_module_2.stream(body, {\n contentType: getContentType(options),\n contentLength: options?.contentLength,\n }));\n}\n/**\n * @tsplus pipeable fncts.http.ServerResponse setHeader\n */\nexport function setHeader(key, value) {\n return (self) => new ServerResponse(self.status, self.statusText, self.headers.set(key, value), self.body);\n}\n/**\n * @tsplus pipeable fncts.http.ServerResponse setHeaders\n */\nexport function setHeaders(headers) {\n return (self) => new ServerResponse(self.status, self.statusText, self.headers.setAll(headers), self.body);\n}\n/**\n * @tsplus pipeable fncts.http.ServerResponse setStatus\n */\nexport function setStatus(status, statusText) {\n return (self) => new ServerResponse(status, statusText, self.headers, self.body);\n}\n/**\n * @tsplus pipeable fncts.http.ServerResponse setBody\n */\nexport function setBody(body) {\n return (self) => {\n let headers = self.headers;\n tsplus_module_5.concrete(body);\n if (body._tag === 0 /* BodyTag.Empty */) {\n headers = self.headers.remove(\"content-type\").remove(\"content-length\");\n }\n return new ServerResponse(self.status, self.statusText, headers, body);\n };\n}\n/**\n * @tsplus pipeable fncts.http.ServerResponse toWeb\n */\nexport function toWeb(withoutBody = false) {\n return (self) => {\n if (withoutBody) {\n return new Response(undefined, {\n status: self.status,\n statusText: self.statusText,\n headers: self.headers.toHeadersInit(),\n });\n }\n tsplus_module_5.concrete(self.body);\n switch (self.body._tag) {\n case 0 /* BodyTag.Empty */:\n return new Response(undefined, {\n status: self.status,\n statusText: self.statusText,\n headers: self.headers.toHeadersInit(),\n });\n case 2 /* BodyTag.Uint8Array */:\n case 1 /* BodyTag.Raw */:\n return new Response(self.body.body, {\n status: self.status,\n statusText: self.statusText,\n headers: self.headers.toHeadersInit(),\n });\n case 3 /* BodyTag.FormData */:\n return new Response(self.body.formData, {\n status: self.status,\n statusText: self.statusText,\n headers: self.headers.toHeadersInit(),\n });\n case 4 /* BodyTag.Stream */:\n return new Response(tsplus_module_6.toReadableStream(self.body.stream, fileName_1 + \":160:45\"), {\n status: self.status,\n statusText: self.statusText,\n headers: self.headers.toHeadersInit(),\n });\n }\n };\n}\nfunction getContentType(options) {\n if (options?.contentType) {\n return options.contentType;\n }\n else if (options?.headers) {\n return options.headers.unsafeGet(\"content-type\");\n }\n else {\n return;\n }\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;;;;AAYnB,SAAgB,MAAM,SAAS;AAC3B,QAAO,IAAIA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