@fncts/http 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/_cjs/Body/definition.cjs +17 -13
  2. package/_cjs/Body/definition.cjs.map +1 -1
  3. package/_cjs/BodyError.cjs +5 -7
  4. package/_cjs/BodyError.cjs.map +1 -1
  5. package/_cjs/Headers.cjs +3 -4
  6. package/_cjs/Headers.cjs.map +1 -1
  7. package/_cjs/IncomingMessage/definition.cjs +1 -5
  8. package/_cjs/IncomingMessage/definition.cjs.map +1 -1
  9. package/_cjs/RequestError.cjs +4 -3
  10. package/_cjs/RequestError.cjs.map +1 -1
  11. package/_cjs/ResponseError.cjs +5 -3
  12. package/_cjs/ResponseError.cjs.map +1 -1
  13. package/_cjs/Route/definition.cjs +3 -10
  14. package/_cjs/Route/definition.cjs.map +1 -1
  15. package/_cjs/Route/internal.cjs +7 -0
  16. package/_cjs/Route/internal.cjs.map +1 -1
  17. package/_cjs/RouteNotFound.cjs +1 -0
  18. package/_cjs/RouteNotFound.cjs.map +1 -1
  19. package/_cjs/Router/definition.cjs +1 -6
  20. package/_cjs/Router/definition.cjs.map +1 -1
  21. package/_cjs/Router/internal.cjs +3 -0
  22. package/_cjs/Router/internal.cjs.map +1 -1
  23. package/_cjs/Server.cjs +4 -11
  24. package/_cjs/Server.cjs.map +1 -1
  25. package/_cjs/ServerError.cjs +2 -3
  26. package/_cjs/ServerError.cjs.map +1 -1
  27. package/_cjs/ServerRequest/definition.cjs +2 -7
  28. package/_cjs/ServerRequest/definition.cjs.map +1 -1
  29. package/_cjs/ServerRequest/internal.cjs +7 -1
  30. package/_cjs/ServerRequest/internal.cjs.map +1 -1
  31. package/_cjs/ServerResponse/definition.cjs +5 -3
  32. package/_cjs/ServerResponse/definition.cjs.map +1 -1
  33. package/_cjs/Socket.cjs +24 -25
  34. package/_cjs/Socket.cjs.map +1 -1
  35. package/_cjs/UrlParams.cjs +1 -0
  36. package/_cjs/UrlParams.cjs.map +1 -1
  37. package/_mjs/Body/definition.mjs +17 -13
  38. package/_mjs/Body/definition.mjs.map +1 -1
  39. package/_mjs/BodyError.mjs +5 -7
  40. package/_mjs/BodyError.mjs.map +1 -1
  41. package/_mjs/Headers.mjs +2 -3
  42. package/_mjs/Headers.mjs.map +1 -1
  43. package/_mjs/IncomingMessage/definition.mjs +1 -5
  44. package/_mjs/IncomingMessage/definition.mjs.map +1 -1
  45. package/_mjs/RequestError.mjs +4 -3
  46. package/_mjs/RequestError.mjs.map +1 -1
  47. package/_mjs/ResponseError.mjs +5 -3
  48. package/_mjs/ResponseError.mjs.map +1 -1
  49. package/_mjs/Route/definition.mjs +2 -9
  50. package/_mjs/Route/definition.mjs.map +1 -1
  51. package/_mjs/Route/internal.mjs +7 -0
  52. package/_mjs/Route/internal.mjs.map +1 -1
  53. package/_mjs/RouteNotFound.mjs +1 -0
  54. package/_mjs/RouteNotFound.mjs.map +1 -1
  55. package/_mjs/Router/definition.mjs +1 -6
  56. package/_mjs/Router/definition.mjs.map +1 -1
  57. package/_mjs/Router/internal.mjs +3 -0
  58. package/_mjs/Router/internal.mjs.map +1 -1
  59. package/_mjs/Server.mjs +3 -10
  60. package/_mjs/Server.mjs.map +1 -1
  61. package/_mjs/ServerError.mjs +2 -3
  62. package/_mjs/ServerError.mjs.map +1 -1
  63. package/_mjs/ServerRequest/definition.mjs +1 -6
  64. package/_mjs/ServerRequest/definition.mjs.map +1 -1
  65. package/_mjs/ServerRequest/internal.mjs +7 -1
  66. package/_mjs/ServerRequest/internal.mjs.map +1 -1
  67. package/_mjs/ServerResponse/definition.mjs +5 -3
  68. package/_mjs/ServerResponse/definition.mjs.map +1 -1
  69. package/_mjs/Socket.mjs +23 -24
  70. package/_mjs/Socket.mjs.map +1 -1
  71. package/_mjs/UrlParams.mjs +1 -0
  72. package/_mjs/UrlParams.mjs.map +1 -1
  73. package/_src/Headers.ts +1 -1
  74. package/_src/Socket.ts +1 -0
  75. package/_src/UrlParams.ts +1 -1
  76. package/package.json +6 -6
@@ -5,60 +5,64 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Uint8Array = exports.Stream = exports.Raw = exports.FormData = exports.Empty = exports.BodyTypeId = exports.Body = void 0;
7
7
  exports.concrete = concrete;
8
- var _a;
9
8
  const BodyTypeId = exports.BodyTypeId = /*#__PURE__*/Symbol.for("fncts.http.BodyTypeId");
10
9
  /**
11
10
  * @tsplus type fncts.http.Body
12
11
  * @tsplus companion fncts.http.BodyOps
13
12
  */
14
13
  class Body {
15
- constructor() {
16
- this[_a] = BodyTypeId;
17
- }
14
+ [BodyTypeId] = BodyTypeId;
15
+ contentType;
16
+ contentLength;
18
17
  }
19
18
  exports.Body = Body;
20
- _a = BodyTypeId;
21
19
  class Empty extends Body {
22
- constructor() {
23
- super(...arguments);
24
- this._tag = 0 /* BodyTag.Empty */;
25
- }
20
+ _tag = 0 /* BodyTag.Empty */;
26
21
  }
27
22
  exports.Empty = Empty;
28
23
  class Raw extends Body {
24
+ body;
25
+ contentType;
26
+ contentLength;
27
+ _tag = 1 /* BodyTag.Raw */;
29
28
  constructor(body, contentType, contentLength) {
30
29
  super();
31
30
  this.body = body;
32
31
  this.contentType = contentType;
33
32
  this.contentLength = contentLength;
34
- this._tag = 1 /* BodyTag.Raw */;
35
33
  }
36
34
  }
37
35
  exports.Raw = Raw;
38
36
  class Uint8Array extends Body {
37
+ body;
38
+ contentType;
39
+ _tag = 2 /* BodyTag.Uint8Array */;
39
40
  constructor(body, contentType) {
40
41
  super();
41
42
  this.body = body;
42
43
  this.contentType = contentType;
43
- this._tag = 2 /* BodyTag.Uint8Array */;
44
44
  }
45
45
  }
46
46
  exports.Uint8Array = Uint8Array;
47
47
  class FormData extends Body {
48
+ formData;
49
+ _tag = 3 /* BodyTag.FormData */;
48
50
  constructor(formData) {
49
51
  super();
50
52
  this.formData = formData;
51
- this._tag = 3 /* BodyTag.FormData */;
52
53
  }
53
54
  }
54
55
  exports.FormData = FormData;
55
56
  class Stream extends Body {
57
+ stream;
58
+ contentType;
59
+ contentLength;
60
+ _tag = 4 /* BodyTag.Stream */;
56
61
  constructor(stream, contentType, contentLength) {
57
62
  super();
58
63
  this.stream = stream;
59
64
  this.contentType = contentType;
60
65
  this.contentLength = contentLength;
61
- this._tag = 4 /* BodyTag.Stream */;
62
66
  }
63
67
  }
64
68
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","names":["BodyTypeId","exports","Symbol","for","Body","constructor","_a","Empty","_tag","Raw","body","contentType","contentLength","Uint8Array","FormData","formData","Stream","stream","concrete","self"],"sources":["../../_src/Body/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;;;AAEO,MAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,uBAAuB,CAAC;AAW7D;;;;AAIM,MAAgBC,IAAI;EAA1BC,YAAA;IACW,KAAAC,EAAA,CAAY,GAAeN,UAAU;EAGhD;;AAACC,OAAA,CAAAG,IAAA,GAAAA,IAAA;KAHWJ,UAAU;AAKhB,MAAOO,KAAM,SAAQH,IAAI;EAA/BC,YAAA;;IACW,KAAAG,IAAI;EACf;;AAACP,OAAA,CAAAM,KAAA,GAAAA,KAAA;AAEK,MAAOE,GAAI,SAAQL,IAAI;EAE3BC,YACWK,IAAa,EACbC,WAAoB,EACpBC,aAAsB;IAE/B,KAAK,EAAE;IAJE,KAAAF,IAAI,GAAJA,IAAI;IACJ,KAAAC,WAAW,GAAXA,WAAW;IACX,KAAAC,aAAa,GAAbA,aAAa;IAJf,KAAAJ,IAAI;EAOb;;AACDP,OAAA,CAAAQ,GAAA,GAAAA,GAAA;AAEK,MAAOI,UAAW,SAAQT,IAAI;EAElCC,YACWK,IAA2B,EAC3BC,WAAmB;IAE5B,KAAK,EAAE;IAHE,KAAAD,IAAI,GAAJA,IAAI;IACJ,KAAAC,WAAW,GAAXA,WAAW;IAHb,KAAAH,IAAI;EAMb;;AACDP,OAAA,CAAAY,UAAA,GAAAA,UAAA;AAEK,MAAOC,QAAS,SAAQV,IAAI;EAEhCC,YAAqBU,QAA6B;IAChD,KAAK,EAAE;IADY,KAAAA,QAAQ,GAARA,QAAQ;IADpB,KAAAP,IAAI;EAGb;;AACDP,OAAA,CAAAa,QAAA,GAAAA,QAAA;AAEK,MAAOE,MAAO,SAAQZ,IAAI;EAE9BC,YACWY,MAA6D,EAC7DN,WAAmB,EACnBC,aAAsB;IAE/B,KAAK,EAAE;IAJE,KAAAK,MAAM,GAANA,MAAM;IACN,KAAAN,WAAW,GAAXA,WAAW;IACX,KAAAC,aAAa,GAAbA,aAAa;IAJf,KAAAJ,IAAI;EAOb;;AAKF;;;AAAAP,OAAA,CAAAe,MAAA,GAAAA,MAAA;AAGM,SAAUE,QAAQA,CAACC,IAAU;EACjC;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"definition.cjs","names":["BodyTypeId","exports","Symbol","for","Body","contentType","contentLength","Empty","_tag","Raw","body","constructor","Uint8Array","FormData","formData","Stream","stream","concrete","self"],"sources":["../../_src/Body/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;;AAEO,MAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,uBAAuB,CAAC;AAW7D;;;;AAIM,MAAgBC,IAAI;EACf,CAACJ,UAAU,IAAgBA,UAAU;EACrCK,WAAW;EACXC,aAAa;;AACvBL,OAAA,CAAAG,IAAA,GAAAA,IAAA;AAEK,MAAOG,KAAM,SAAQH,IAAI;EACpBI,IAAI;;AACdP,OAAA,CAAAM,KAAA,GAAAA,KAAA;AAEK,MAAOE,GAAI,SAAQL,IAAI;EAGhBM,IAAA;EACAL,WAAA;EACAC,aAAA;EAJFE,IAAI;EACbG,YACWD,IAAa,EACbL,WAAoB,EACpBC,aAAsB;IAE/B,KAAK,EAAE;IAJE,KAAAI,IAAI,GAAJA,IAAI;IACJ,KAAAL,WAAW,GAAXA,WAAW;IACX,KAAAC,aAAa,GAAbA,aAAa;EAGxB;;AACDL,OAAA,CAAAQ,GAAA,GAAAA,GAAA;AAEK,MAAOG,UAAW,SAAQR,IAAI;EAGvBM,IAAA;EACAL,WAAA;EAHFG,IAAI;EACbG,YACWD,IAA2B,EAC3BL,WAAmB;IAE5B,KAAK,EAAE;IAHE,KAAAK,IAAI,GAAJA,IAAI;IACJ,KAAAL,WAAW,GAAXA,WAAW;EAGtB;;AACDJ,OAAA,CAAAW,UAAA,GAAAA,UAAA;AAEK,MAAOC,QAAS,SAAQT,IAAI;EAEXU,QAAA;EADZN,IAAI;EACbG,YAAqBG,QAA6B;IAChD,KAAK,EAAE;IADY,KAAAA,QAAQ,GAARA,QAAQ;EAE7B;;AACDb,OAAA,CAAAY,QAAA,GAAAA,QAAA;AAEK,MAAOE,MAAO,SAAQX,IAAI;EAGnBY,MAAA;EACAX,WAAA;EACAC,aAAA;EAJFE,IAAI;EACbG,YACWK,MAA6D,EAC7DX,WAAmB,EACnBC,aAAsB;IAE/B,KAAK,EAAE;IAJE,KAAAU,MAAM,GAANA,MAAM;IACN,KAAAX,WAAW,GAAXA,WAAW;IACX,KAAAC,aAAa,GAAbA,aAAa;EAGxB;;AAKF;;;AAAAL,OAAA,CAAAc,MAAA,GAAAA,MAAA;AAGM,SAAUE,QAAQA,CAACC,IAAU;EACjC;AAAA","ignoreList":[]}
@@ -5,32 +5,30 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.SchemaError = exports.JsonError = exports.BodyErrorTypeId = exports.BodyError = void 0;
7
7
  exports.concrete = concrete;
8
- var _a;
9
8
  const BodyErrorTypeId = exports.BodyErrorTypeId = /*#__PURE__*/Symbol.for("fncts.http.BodyError");
10
9
  /**
11
10
  * @tsplus type fncts.http.BodyError
12
11
  * @tsplus concrete fncts.http.BodyErrorOps
13
12
  */
14
13
  class BodyError {
15
- constructor() {
16
- this[_a] = BodyErrorTypeId;
17
- }
14
+ [BodyErrorTypeId] = BodyErrorTypeId;
18
15
  }
19
16
  exports.BodyError = BodyError;
20
- _a = BodyErrorTypeId;
21
17
  class JsonError extends BodyError {
18
+ error;
19
+ _tag = 0 /* BodyErrorTag.JsonError */;
22
20
  constructor(error) {
23
21
  super();
24
22
  this.error = error;
25
- this._tag = 0 /* BodyErrorTag.JsonError */;
26
23
  }
27
24
  }
28
25
  exports.JsonError = JsonError;
29
26
  class SchemaError extends BodyError {
27
+ error;
28
+ _tag = 1 /* BodyErrorTag.SchemaError */;
30
29
  constructor(error) {
31
30
  super();
32
31
  this.error = error;
33
- this._tag = 1 /* BodyErrorTag.SchemaError */;
34
32
  }
35
33
  }
36
34
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"BodyError.cjs","names":["BodyErrorTypeId","exports","Symbol","for","BodyError","constructor","_a","JsonError","error","_tag","SchemaError","concrete","self"],"sources":["../_src/BodyError.ts"],"sourcesContent":[null],"mappings":";;;;;;;;AAAO,MAAMA,eAAe,GAAAC,OAAA,CAAAD,eAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,sBAAsB,CAAC;AAQjE;;;;AAIM,MAAgBC,SAAS;EAA/BC,YAAA;IACW,KAAAC,EAAA,CAAiB,GAAoBN,eAAe;EAC/D;;AAACC,OAAA,CAAAG,SAAA,GAAAA,SAAA;KADWJ,eAAe;AAGrB,MAAOO,SAAU,SAAQH,SAAS;EAEtCC,YAAqBG,KAAc;IACjC,KAAK,EAAE;IADY,KAAAA,KAAK,GAALA,KAAK;IADjB,KAAAC,IAAI;EAGb;;AACDR,OAAA,CAAAM,SAAA,GAAAA,SAAA;AAEK,MAAOG,WAAY,SAAQN,SAAS;EAExCC,YAAqBG,KAAiB;IACpC,KAAK,EAAE;IADY,KAAAA,KAAK,GAALA,KAAK;IADjB,KAAAC,IAAI;EAGb;;AAKF;;;AAAAR,OAAA,CAAAS,WAAA,GAAAA,WAAA;AAGM,SAAUC,QAAQA,CAACC,IAAe;EACtC;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"BodyError.cjs","names":["BodyErrorTypeId","exports","Symbol","for","BodyError","JsonError","error","_tag","constructor","SchemaError","concrete","self"],"sources":["../_src/BodyError.ts"],"sourcesContent":[null],"mappings":";;;;;;;AAAO,MAAMA,eAAe,GAAAC,OAAA,CAAAD,eAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,sBAAsB,CAAC;AAQjE;;;;AAIM,MAAgBC,SAAS;EACpB,CAACJ,eAAe,IAAqBA,eAAe;;AAC9DC,OAAA,CAAAG,SAAA,GAAAA,SAAA;AAEK,MAAOC,SAAU,SAAQD,SAAS;EAEjBE,KAAA;EADZC,IAAI;EACbC,YAAqBF,KAAc;IACjC,KAAK,EAAE;IADY,KAAAA,KAAK,GAALA,KAAK;EAE1B;;AACDL,OAAA,CAAAI,SAAA,GAAAA,SAAA;AAEK,MAAOI,WAAY,SAAQL,SAAS;EAEnBE,KAAA;EADZC,IAAI;EACbC,YAAqBF,KAAiB;IACpC,KAAK,EAAE;IADY,KAAAA,KAAK,GAALA,KAAK;EAE1B;;AAKF;;;AAAAL,OAAA,CAAAQ,WAAA,GAAAA,WAAA;AAGM,SAAUC,QAAQA,CAACC,IAAe;EACtC;AAAA","ignoreList":[]}
package/_cjs/Headers.cjs CHANGED
@@ -11,16 +11,16 @@ var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require(
11
11
  var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/util/predicates"));
12
12
  var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/collection/Iterable/api"));
13
13
  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); }
14
- var _a;
15
14
  const HeadersTypeId = exports.HeadersTypeId = /*#__PURE__*/Symbol.for("fncts.http.Headers");
16
15
  /**
17
16
  * @tsplus type fncts.http.Headers
18
17
  * @tsplus companion fncts.http.HeadersOps
19
18
  */
20
19
  class Headers {
20
+ backing;
21
+ [HeadersTypeId] = HeadersTypeId;
21
22
  constructor(backing) {
22
23
  this.backing = backing;
23
- this[_a] = HeadersTypeId;
24
24
  }
25
25
  set(key, value) {
26
26
  return new Headers(tsplus_module_1.set(key.toLowerCase(), value)(this.backing));
@@ -52,11 +52,10 @@ class Headers {
52
52
  return Array.from(this.backing);
53
53
  }
54
54
  }
55
- exports.Headers = Headers;
56
- _a = HeadersTypeId;
57
55
  /**
58
56
  * @tsplus static fncts.http.HeadersOps isHeaders
59
57
  */
58
+ exports.Headers = Headers;
60
59
  function isHeaders(u) {
61
60
  return tsplus_module_2.isObject(u) && HeadersTypeId in u;
62
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Headers.cjs","names":["HeadersTypeId","exports","Symbol","for","Headers","constructor","backing","_a","set","key","value","tsplus_module_1","toLowerCase","remove","get","unsafeGet","setAll","input","beginMutation","iterator","k","v","endMutation","toHeadersInit","Array","from","isHeaders","u","tsplus_module_2","isObject","empty","fromHeaders","headers","forEach","make","tsplus_module_3","map","Object","entries"],"sources":["../_src/Headers.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAO,MAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,oBAAoB,CAAC;AAG7D;;;;AAIM,MAAOC,OAAO;EAElBC,YAAqBC,OAAgC;IAAhC,KAAAA,OAAO,GAAPA,OAAO;IADnB,KAAAC,EAAA,CAAe,GAAkBP,aAAa;EACC;EAExD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AC,CAAChB,CAAC,EAAEC,CAAC,CAAC,KAAK,CAACD,CAAC,CAACR,WAAW,EAAE,EAAES,CAAC,CAAU,CAAC,CAAC,CAAC;AACxG","ignoreList":[]}
1
+ {"version":3,"file":"Headers.cjs","names":["HeadersTypeId","exports","Symbol","for","Headers","backing","constructor","set","key","value","tsplus_module_1","toLowerCase","remove","get","unsafeGet","setAll","input","beginMutation","iterator","k","v","endMutation","toHeadersInit","Array","from","isHeaders","u","tsplus_module_2","isObject","empty","fromHeaders","headers","forEach","make","tsplus_module_3","map","Object","entries"],"sources":["../_src/Headers.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;AAAO,MAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,oBAAoB,CAAC;AAG7D;;;;AAIM,MAAOC,OAAO;EAEGC,OAAA;EADZ,CAACL,aAAa,IAAmBA,aAAa;EACvDM,YAAqBD,OAAgC;IAAhC,KAAAA,OAAO,GAAPA,OAAO;EAA4B;EAExDE,GAAGA,CAACC,GAAW,EAAEC,KAAa;IAC5B,OAAO,IAAIL,OAAO,CAACM,eAAA,CAAAH,GAAA,CAAiBC,GAAG,CAACG,WAAW,EAAE,EAAEF,KAAK,EAAzC,IAAI,CAACJ,OAAO,CAA8B,CAAC;EAChE;EAEAO,MAAMA,CAACJ,GAAW;IAChB,OAAO,IAAIJ,OAAO,CAACM,eAAA,CAAAE,MAAA,CAAoBJ,GAAG,CAACG,WAAW,EAAE,EAArC,IAAI,CAACN,OAAO,CAA0B,CAAC;EAC5D;EAEAQ,GAAGA,CAACL,GAAW;IACb,OAAOE,eAAA,CAAAG,GAAA,CAAiBL,GAAG,CAACG,WAAW,EAAE,EAAlC,IAAI,CAACN,OAAO,CAAuB;EAC5C;EAEAS,SAASA,CAACN,GAAW;IACnB,OAAOE,eAAA,CAAAI,SAAA,CAAuBN,GAAG,CAACG,WAAW,EAAE,EAAxC,IAAI,CAACN,OAAO,CAA6B;E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I;IAC7BE,eAAA,CAAAH,GAAA,CAAYC,GAAG,CAACG,WAAW,EAAE,EAAEF,KAAK,EAApCJ,OAAO,CAA8B;EACvC,CAAC,CAAC;EACF,OAAO,IAAID,OAAO,CAAAM,eAAA,CAAAW,WAAA,CAAChB,OAAO,EAAa;AACzC;AAEA;;;AAGM,SAAU4B,IAAIA,CAACjB,KAAoB;EACvC,IAAId,MAAM,CAACgB,QAAQ,IAAIF,KAAK,EAAE;IAC5B,OAAO,IAAIZ,OAAO,CAACM,eAAA,CAAAc,IAAA,CAAaU,eAAA,CAAAC,GAAA,CAAU,CAAC,CAAChB,CAAC,EAAEC,CAAC,CAAC,KAAK,CAACD,CAAC,CAACR,WAAW,EAAE,EAAES,CAAC,CAAC,EAA1CJ,KAAK,CAAsC,CAAC,CAAC;EAC/E;EAEA,OAAO,IAAIZ,OAAO,CAACM,eAAA,CAAAc,IAAA,CAAaY,MAAM,CAACC,OAAO,CAACrB,KAAK,CAAC,CAACmB,GAAG,CAAC,CAAC,CAAChB,CAAC,EAAEC,CAAC,CAAC,KAAK,CAACD,CAAC,CAACR,WAAW,EAAE,EAAES,CAAC,CAAU,CAAC,CAAC,CAAC;AACxG","ignoreList":[]}
@@ -4,17 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.IncomingMessageTypeId = exports.IncomingMessage = void 0;
7
- var _a;
8
7
  const IncomingMessageTypeId = exports.IncomingMessageTypeId = /*#__PURE__*/Symbol.for("fncts.http.IncomingMessage");
9
8
  /**
10
9
  * @tsplus type fncts.http.IncomingMessage
11
10
  * @tsplus companion fncts.http.IncomingMessageOps
12
11
  */
13
12
  class IncomingMessage {
14
- constructor() {
15
- this[_a] = IncomingMessageTypeId;
16
- }
13
+ [IncomingMessageTypeId] = IncomingMessageTypeId;
17
14
  }
18
15
  exports.IncomingMessage = IncomingMessage;
19
- _a = IncomingMessageTypeId;
20
16
  //# sourceMappingURL=definition.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","names":["IncomingMessageTypeId","exports","Symbol","for","IncomingMessage","constructor","_a"],"sources":["../../_src/IncomingMessage/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;;AAGO,MAAMA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,4BAA4B,CAAC;AAG7E;;;;AAIM,MAAgBC,eAAe;EAArCC,YAAA;IACW,KAAAC,EAAA,CAAuB,GAA0BN,qBAAqB;EAQjF;;AAACC,OAAA,CAAAG,eAAA,GAAAA,eAAA;KARWJ,qBAAqB","ignoreList":[]}
1
+ {"version":3,"file":"definition.cjs","names":["IncomingMessageTypeId","exports","Symbol","for","IncomingMessage"],"sources":["../../_src/IncomingMessage/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;AAGO,MAAMA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,4BAA4B,CAAC;AAG7E;;;;AAIM,MAAgBC,eAAe;EAC1B,CAACJ,qBAAqB,IAA2BA,qBAAqB;;AAQhFC,OAAA,CAAAG,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -4,16 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.RequestErrorTypeId = exports.RequestError = void 0;
7
- var _a;
8
7
  const RequestErrorTypeId = exports.RequestErrorTypeId = /*#__PURE__*/Symbol.for("fncts.http.RequestError");
9
8
  class RequestError {
9
+ request;
10
+ reason;
11
+ error;
12
+ [RequestErrorTypeId] = RequestErrorTypeId;
10
13
  constructor(request, reason, error) {
11
14
  this.request = request;
12
15
  this.reason = reason;
13
16
  this.error = error;
14
- this[_a] = RequestErrorTypeId;
15
17
  }
16
18
  }
17
19
  exports.RequestError = RequestError;
18
- _a = RequestErrorTypeId;
19
20
  //# sourceMappingURL=RequestError.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestError.cjs","names":["RequestErrorTypeId","exports","Symbol","for","RequestError","constructor","request","reason","error","_a"],"sources":["../_src/RequestError.ts"],"sourcesContent":[null],"mappings":";;;;;;;AAEO,MAAMA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,yBAAyB,CAAC;AAGjE,MAAOC,YAAY;EAEvBC,YACWC,OAAsB,EACtBC,MAA8B,EAC9BC,KAAc;IAFd,KAAAF,OAAO,GAAPA,OAAO;IACP,KAAAC,MAAM,GAANA,MAAM;IACN,KAAAC,KAAK,GAALA,KAAK;IAJP,KAAAC,EAAA,CAAoB,GAAuBT,kBAAkB;EAKnE;;AACJC,OAAA,CAAAG,YAAA,GAAAA,YAAA;KANWJ,kBAAkB","ignoreList":[]}
1
+ {"version":3,"file":"RequestError.cjs","names":["RequestErrorTypeId","exports","Symbol","for","RequestError","request","reason","error","constructor"],"sources":["../_src/RequestError.ts"],"sourcesContent":[null],"mappings":";;;;;;AAEO,MAAMA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,yBAAyB,CAAC;AAGjE,MAAOC,YAAY;EAGZC,OAAA;EACAC,MAAA;EACAC,KAAA;EAJF,CAACP,kBAAkB,IAAwBA,kBAAkB;EACtEQ,YACWH,OAAsB,EACtBC,MAA8B,EAC9BC,KAAc;IAFd,KAAAF,OAAO,GAAPA,OAAO;IACP,KAAAC,MAAM,GAANA,MAAM;IACN,KAAAC,KAAK,GAALA,KAAK;EACb;;AACJN,OAAA,CAAAG,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -4,16 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ResponseErrorTypeId = exports.ResponseError = void 0;
7
- var _a;
8
7
  const ResponseErrorTypeId = exports.ResponseErrorTypeId = /*#__PURE__*/Symbol.for("fncts.http.ResponseError");
9
8
  class ResponseError extends Error {
9
+ request;
10
+ response;
11
+ reason;
12
+ error;
13
+ [ResponseErrorTypeId] = ResponseErrorTypeId;
10
14
  constructor(request, response, reason, error) {
11
15
  super();
12
16
  this.request = request;
13
17
  this.response = response;
14
18
  this.reason = reason;
15
19
  this.error = error;
16
- this[_a] = ResponseErrorTypeId;
17
20
  }
18
21
  get methodAndUrl() {
19
22
  return `${this.request.method} ${this.request.url}`;
@@ -23,5 +26,4 @@ class ResponseError extends Error {
23
26
  }
24
27
  }
25
28
  exports.ResponseError = ResponseError;
26
- _a = ResponseErrorTypeId;
27
29
  //# sourceMappingURL=ResponseError.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseError.cjs","names":["ResponseErrorTypeId","exports","Symbol","for","ResponseError","Error","constructor","request","response","reason","error","_a","methodAndUrl","method","url","message","status"],"sources":["../_src/ResponseError.ts"],"sourcesContent":[null],"mappings":";;;;;;;AAGO,MAAMA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,0BAA0B,CAAC;AAGnE,MAAOC,aAAc,SAAQC,KAAK;EAEtCC,YACWC,OAAsB,EACtBC,QAAwB,EACxBC,MAAgB,EAChBC,KAAc;IAEvB,KAAK,EAAE;IALE,KAAAH,OAAO,GAAPA,OAAO;IACP,KAAAC,QAAQ,GAARA,QAAQ;IACR,KAAAC,MAAM,GAANA,MAAM;IACN,KAAAC,KAAK,GAALA,KAAK;IALP,KAAAC,EAAA,CAAqB,GAAwBX,mBAAmB;EAQzE;EAEA,IAAIY,YAAYA,CAAA;IACd,OAAO,GAAG,IAAI,CAACL,OAAO,CAACM,MAAM,IAAI,IAAI,CAACN,OAAO,CAACO,GAAG,EAAE;EACrD;EAEA,IAAIC,OAAOA,CAAA;IACT,OAAO,GAAG,IAAI,CAACN,MAAM,WAAW,IAAI,CAACD,QAAQ,CAACQ,MAAM,IAAI,IAAI,CAACJ,YAAY,MAAM,KAAK,CAACG,OAAO,EAAE;EAChG;;AACDd,OAAA,CAAAG,aAAA,GAAAA,aAAA;KAjBWJ,mBAAmB","ignoreList":[]}
1
+ {"version":3,"file":"ResponseError.cjs","names":["ResponseErrorTypeId","exports","Symbol","for","ResponseError","Error","request","response","reason","error","constructor","methodAndUrl","method","url","message","status"],"sources":["../_src/ResponseError.ts"],"sourcesContent":[null],"mappings":";;;;;;AAGO,MAAMA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,0BAA0B,CAAC;AAGnE,MAAOC,aAAc,SAAQC,KAAK;EAG3BC,OAAA;EACAC,QAAA;EACAC,MAAA;EACAC,KAAA;EALF,CAACT,mBAAmB,IAAyBA,mBAAmB;EACzEU,YACWJ,OAAsB,EACtBC,QAAwB,EACxBC,MAAgB,EAChBC,KAAc;IAEvB,KAAK,EAAE;IALE,KAAAH,OAAO,GAAPA,OAAO;IACP,KAAAC,QAAQ,GAARA,QAAQ;IACR,KAAAC,MAAM,GAANA,MAAM;IACN,KAAAC,KAAK,GAALA,KAAK;EAGhB;EAEA,IAAIE,YAAYA,CAAA;IACd,OAAO,GAAG,IAAI,CAACL,OAAO,CAACM,MAAM,IAAI,IAAI,CAACN,OAAO,CAACO,GAAG,EAAE;EACrD;EAEA,IAAIC,OAAOA,CAAA;IACT,OAAO,GAAG,IAAI,CAACN,MAAM,WAAW,IAAI,CAACD,QAAQ,CAACQ,MAAM,IAAI,IAAI,CAACJ,YAAY,MAAM,KAAK,CAACG,OAAO,EAAE;EAChG;;AACDb,OAAA,CAAAG,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -6,33 +6,26 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.RouteTypeId = exports.RouteContextTypeId = exports.RouteContextTag = exports.RouteContext = exports.Route = void 0;
7
7
  var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Tag/constructors"));
8
8
  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); }
9
- var _a, _b;
10
9
  const RouteTypeId = exports.RouteTypeId = /*#__PURE__*/Symbol.for("fncts.http.RouteTypeId");
11
10
  /**
12
11
  * @tsplus type fncts.http.Route
13
12
  * @tsplus companion fncts.http.RouteOps
14
13
  */
15
14
  class Route {
16
- constructor() {
17
- this[_a] = RouteTypeId;
18
- }
15
+ [RouteTypeId] = RouteTypeId;
19
16
  }
20
17
  exports.Route = Route;
21
- _a = RouteTypeId;
22
18
  const RouteContextTypeId = exports.RouteContextTypeId = /*#__PURE__*/Symbol.for("fncts.http.RouteContextTypeId");
23
19
  /**
24
20
  * @tsplus type fncts.http.RouteContext
25
21
  * @tsplus companion fncts.http.RouteContextOps
26
22
  */
27
23
  class RouteContext {
28
- constructor() {
29
- this[_b] = RouteContextTypeId;
30
- }
24
+ [RouteContextTypeId] = RouteContextTypeId;
31
25
  }
32
- exports.RouteContext = RouteContext;
33
- _b = RouteContextTypeId;
34
26
  /**
35
27
  * @tsplus static fncts.http.RouteContextOps Tag
36
28
  */
29
+ exports.RouteContext = RouteContext;
37
30
  const RouteContextTag = exports.RouteContextTag = /*#__PURE__*/tsplus_module_1.makeTag();
38
31
  //# sourceMappingURL=definition.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","names":["RouteTypeId","exports","Symbol","for","Route","constructor","_a","RouteContextTypeId","RouteContext","_b","RouteContextTag","tsplus_module_1","makeTag"],"sources":["../../_src/Route/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;AAIO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,wBAAwB,CAAC;AAK/D;;;;AAIM,MAAgBC,KAAK;EAA3BC,YAAA;IACW,KAAAC,EAAA,CAAa,GAAgBN,WAAW;EAMnD;;AAACC,OAAA,CAAAG,KAAA,GAAAA,KAAA;KANWJ,WAAW;AAYhB,MAAMO,kBAAkB,GAAAN,OAAA,CAAAM,kBAAA,gBAAGL,MAAM,CAACC,GAAG,CAAC,+BAA+B,CAAC;AAG7E;;;;AAIM,MAAgBK,YAAY;EAAlCH,YAAA;IACW,KAAAI,EAAA,CAAoB,GAAuBF,kBAAkB;EAIxE;;AAACN,OAAA,CAAAO,YAAA,GAAAA,YAAA;KAJWD,kBAAkB;AAM9B;;;AAGO,MAAMG,eAAe,GAAAT,OAAA,CAAAS,eAAA,gBAAGC,eAAA,CAAAC,OAAA,EAAmB","ignoreList":[]}
1
+ {"version":3,"file":"definition.cjs","names":["RouteTypeId","exports","Symbol","for","Route","RouteContextTypeId","RouteContext","RouteContextTag","tsplus_module_1","makeTag"],"sources":["../../_src/Route/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;;;AAIO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,wBAAwB,CAAC;AAK/D;;;;AAIM,MAAgBC,KAAK;EAChB,CAACJ,WAAW,IAAiBA,WAAW;;AAMlDC,OAAA,CAAAG,KAAA,GAAAA,KAAA;AAMM,MAAMC,kBAAkB,GAAAJ,OAAA,CAAAI,kBAAA,gBAAGH,MAAM,CAACC,GAAG,CAAC,+BAA+B,CAAC;AAG7E;;;;AAIM,MAAgBG,YAAY;EACvB,CAACD,kBAAkB,IAAwBA,kBAAkB;;AAMxE;;;AAAAJ,OAAA,CAAAK,YAAA,GAAAA,YAAA;AAGO,MAAMC,eAAe,GAAAN,OAAA,CAAAM,eAAA,gBAAGC,eAAA,CAAAC,OAAA,EAAmB","ignoreList":[]}
@@ -9,6 +9,10 @@ var _definition = /*#__PURE__*/require("./definition.cjs");
9
9
  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); }
10
10
  const fileName_1 = "(@fncts/http) src/Route/internal.ts";
11
11
  class RouteImpl extends _definition.Route {
12
+ method;
13
+ path;
14
+ handler;
15
+ prefix;
12
16
  constructor(method, path, handler, prefix = tsplus_module_1.nothing(fileName_1 + ":11:45")) {
13
17
  super();
14
18
  this.method = method;
@@ -19,6 +23,9 @@ class RouteImpl extends _definition.Route {
19
23
  }
20
24
  exports.RouteImpl = RouteImpl;
21
25
  class RouteContextImpl extends _definition.RouteContext {
26
+ route;
27
+ params;
28
+ searchParams;
22
29
  constructor(route, params, searchParams) {
23
30
  super();
24
31
  this.route = route;
@@ -1 +1 @@
1
- {"version":3,"file":"internal.cjs","names":["_definition","require","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","RouteImpl","Route","constructor","method","path","handler","prefix","tsplus_module_1","nothing","fileName_1","exports","RouteContextImpl","RouteContext","route","params","searchParams"],"sources":["../../_src/Route/internal.ts"],"sourcesContent":[null],"mappings":";;;;;;;AAGA,IAAAA,WAAA,gBAAAC,OAAA;AAAsD,SAAAC,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAC,CAAA,EAAAC,CAAA,SAAAA,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JE,KAAAF,KAAK,GAALA,KAAK;IACL,KAAAC,MAAM,GAANA,MAAM;IACN,KAAAC,YAAY,GAAZA,YAAY;EAGvB;;AACDL,OAAA,CAAAC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
1
+ {"version":3,"file":"internal.cjs","names":["_definition","require","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","RouteImpl","Route","method","path","handler","prefix","constructor","tsplus_module_1","nothing","fileName_1","exports","RouteContextImpl","RouteContext","route","params","searchParams"],"sources":["../../_src/Route/internal.ts"],"sourcesContent":[null],"mappings":";;;;;;;AAGA,IAAAA,WAAA,gBAAAC,OAAA;AAAsD,SAAAC,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;;AAEhD,MAAOkB,SAAgB,SAAQC,iBAAW;EAEnCC,MAAA;EACAC,IAAA;EACAC,OAAA;EACAC,MAAA;EAJXC,YACWJ,MAAoB,EACpBC,IAAe,EACfC,OAA4B,EAC5BC,MAAA,GAAwBE,eAAA,CAAAC,OAAA,CAAAC,UAAA,YAAS;IAE1C,KAAK,EAAE;IALE,KAAAP,MAAM,GAANA,MAAM;IACN,KAAAC,IAAI,GAAJA,IAAI;IACJ,KAAAC,OAAO,GAAPA,OAAO;IACP,KAAAC,MAAM,GAANA,MAAM;EAGjB;;AACDK,OAAA,CAAAV,SAAA,GAAAA,SAAA;AAEK,MAAOW,gBAAiB,SAAQC,wBAAY;EAErCC,KAAA;EACAC,MAAA;EACAC,YAAA;EAHXT,YACWO,KAA8B,EAC9BC,MAAoD,EACpDC,YAAsE;IAE/E,KAAK,EAAE;IAJE,KAAAF,KAAK,GAALA,KAAK;IACL,KAAAC,MAAM,GAANA,MAAM;IACN,KAAAC,YAAY,GAAZA,YAAY;EAGvB;;AACDL,OAAA,CAAAC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.RouteNotFoundTypeId = exports.RouteNotFound = void 0;
7
7
  const RouteNotFoundTypeId = exports.RouteNotFoundTypeId = /*#__PURE__*/Symbol.for("fncts.http.RouteNotFound");
8
8
  class RouteNotFound extends Error {
9
+ request;
9
10
  constructor(request) {
10
11
  super();
11
12
  this.request = request;
@@ -1 +1 @@
1
- {"version":3,"file":"RouteNotFound.cjs","names":["RouteNotFoundTypeId","exports","Symbol","for","RouteNotFound","Error","constructor","request","message","method","url"],"sources":["../_src/RouteNotFound.ts"],"sourcesContent":[null],"mappings":";;;;;;AAEO,MAAMA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,0BAA0B,CAAC;AAGnE,MAAOC,aAAc,SAAQC,KAAK;EACtCC,YAAqBC,OAAsB;IACzC,KAAK,EAAE;IADY,KAAAA,OAAO,GAAPA,OAAO;EAE5B;EAEA,IAAIC,OAAOA,CAAA;IACT,OAAO,GAAG,IAAI,CAACD,OAAO,CAACE,MAAM,IAAI,IAAI,CAACF,OAAO,CAACG,GAAG,YAAY;EAC/D;;AACDT,OAAA,CAAAG,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"RouteNotFound.cjs","names":["RouteNotFoundTypeId","exports","Symbol","for","RouteNotFound","Error","request","constructor","message","method","url"],"sources":["../_src/RouteNotFound.ts"],"sourcesContent":[null],"mappings":";;;;;;AAEO,MAAMA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,0BAA0B,CAAC;AAGnE,MAAOC,aAAc,SAAQC,KAAK;EACjBC,OAAA;EAArBC,YAAqBD,OAAsB;IACzC,KAAK,EAAE;IADY,KAAAA,OAAO,GAAPA,OAAO;EAE5B;EAEA,IAAIE,OAAOA,CAAA;IACT,OAAO,GAAG,IAAI,CAACF,OAAO,CAACG,MAAM,IAAI,IAAI,CAACH,OAAO,CAACI,GAAG,YAAY;EAC/D;;AACDT,OAAA,CAAAG,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -5,18 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.RouterTypeId = exports.Router = void 0;
7
7
  var _IO = /*#__PURE__*/require("@fncts/io/IO");
8
- var _a;
9
8
  const RouterTypeId = exports.RouterTypeId = /*#__PURE__*/Symbol.for("fncts.http.Router");
10
9
  /**
11
10
  * @tsplus type fncts.http.Router
12
11
  * @tsplus companion fncts.http.RouterOps
13
12
  */
14
13
  class Router extends _IO.External {
15
- constructor() {
16
- super(...arguments);
17
- this[_a] = RouterTypeId;
18
- }
14
+ [RouterTypeId] = RouterTypeId;
19
15
  }
20
16
  exports.Router = Router;
21
- _a = RouterTypeId;
22
17
  //# sourceMappingURL=definition.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","names":["_IO","require","RouterTypeId","exports","Symbol","for","Router","External","constructor","_a"],"sources":["../../_src/Router/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;AAMA,IAAAA,GAAA,gBAAAC,OAAA;;AAEO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,mBAAmB,CAAC;AAG3D;;;;AAIM,MAAgBC,MACpB,SAAQC,YAAqE;EAD/EC,YAAA;;IAIW,KAAAC,EAAA,CAAc,GAAiBP,YAAY;EAKtD;;AAACC,OAAA,CAAAG,MAAA,GAAAA,MAAA;KALWJ,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"definition.cjs","names":["_IO","require","RouterTypeId","exports","Symbol","for","Router","External"],"sources":["../../_src/Router/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;AAMA,IAAAA,GAAA,gBAAAC,OAAA;AAEO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,mBAAmB,CAAC;AAG3D;;;;AAIM,MAAgBC,MACpB,SAAQC,YAAqE;EAGpE,CAACL,YAAY,IAAkBA,YAAY;;AAKrDC,OAAA,CAAAG,MAAA,GAAAA,MAAA","ignoreList":[]}
@@ -20,6 +20,9 @@ var _definition4 = /*#__PURE__*/require("./definition.cjs");
20
20
  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); }
21
21
  const fileName_1 = "(@fncts/http) src/Router/internal.ts";
22
22
  class RouterInternal extends _definition4.Router {
23
+ routes;
24
+ mounts;
25
+ httpApp;
23
26
  constructor(routes, mounts) {
24
27
  super();
25
28
  this.routes = routes;
@@ -1 +1 @@
1
- {"version":3,"file":"internal.cjs","names":["FindMyWay","_interopRequireWildcard","require","_internal","_RouteNotFound","_definition4","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","RouterInternal","Router","constructor","routes","mounts","httpApp","toHttpApp","toIO","exports","self","router","make","tsplus_module_2","map","prefix","options","RouteContextImpl","RouteImpl","inclduePrefix","tsplus_module_1","nothing","fileName_1","just","mountsLen","length","forEach","route","method","all","path","on","tsplus_module_8","withFiberRuntime","fiber","context","getFiberRef","tsplus_module_3","currentEnvironment","request","tsplus_module_5","unsafeGet","tsplus_module_4","ServerRequestTag","routeContext","url","startsWith","add","tsplus_module_6","RouteContextTag","sliceRequestUrl","tsplus_module_7","locally","handler","result","find","undefined","failNow","RouteNotFound","tsplus_module_9","isJust","value","params","searchParams","prefixLen","modify","slice"],"sources":["../../_src/Router/internal.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAIA,IAAAA,SAAA,gBAAAC,uBAAA,cAAAC,OAAA;AAGA,IAAAC,SAAA,gBAAAD,OAAA;AACA,IAAAE,cAAA,gBAAAF,OAAA;AAEA,IAAAG,YAAA,gBAAAH,OAAA;AAAyC,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,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AAA,CAAAC,gBAAA,EAAxDR,OAAO,CAAqE;IACxF;IACAA,OAAO,GAAGK,eAAA,CAAAO,GAAA,CAAY,IAAI9B,0BAAgB,CAACU,KAAK,EAAE2B,MAAM,CAACQ,MAAM,EAAER,MAAM,CAACS,YAAY,CAAC,EAAAf,eAAA,CAAAC,eAAA,EAA3Ed,OAAO,CAAuF;IACxG,OAAOgB,eAAA,CAAAC,OAAA,CAAAf,eAAA,CAAAC,kBAAA,EAAoCH,OAAO,EAAAb,UAAA,YAAC,CACjDK,KAAK,CAAC0B,OAA2D,CAClE;EACH,CAAC,EAAA/B,UAAA,YAAC;AACJ;AAEA,SAAS4B,eAAeA,CAACX,OAAsB,EAAExB,MAAc;EAC7D,MAAMiD,SAAS,GAAGjD,MAAM,CAACU,MAAM;EAC/B,OAAOc,OAAO,CAAC0B,MAAM,CAAC;IAAEpB,GAAG,EAAEN,OAAO,CAACM,GAAG,CAACpB,MAAM,IAAIuC,SAAS,GAAG,GAAG,GAAGzB,OAAO,CAACM,GAAG,CAACqB,KAAK,CAACF,SAAS;EAAC,CAAE,CAAC;AACtG","ignoreList":[]}
1
+ {"version":3,"file":"internal.cjs","names":["FindMyWay","_interopRequireWildcard","require","_internal","_RouteNotFound","_definition4","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","RouterInternal","Router","routes","mounts","httpApp","constructor","toHttpApp","toIO","exports","self","router","make","tsplus_module_2","map","prefix","options","RouteContextImpl","RouteImpl","inclduePrefix","tsplus_module_1","nothing","fileName_1","just","mountsLen","length","forEach","route","method","all","path","on","tsplus_module_8","withFiberRuntime","fiber","context","getFiberRef","tsplus_module_3","currentEnvironment","request","tsplus_module_5","unsafeGet","tsplus_module_4","ServerRequestTag","routeContext","url","startsWith","add","tsplus_module_6","RouteContextTag","sliceRequestUrl","tsplus_module_7","locally","handler","result","find","undefined","failNow","RouteNotFound","tsplus_module_9","isJust","value","params","search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module_3 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api"));
13
13
  var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/Layer/api"));
14
14
  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); }
15
- var _a;
16
15
  const fileName_1 = "(@fncts/http) src/Server.ts";
17
16
  const ServerTypeId = exports.ServerTypeId = /*#__PURE__*/Symbol.for("fncts.http.Server");
18
17
  /**
@@ -20,15 +19,12 @@ const ServerTypeId = exports.ServerTypeId = /*#__PURE__*/Symbol.for("fncts.http.
20
19
  * @tsplus companion fncts.http.ServerOps
21
20
  */
22
21
  class Server {
23
- constructor() {
24
- this[_a] = ServerTypeId;
25
- }
22
+ [ServerTypeId] = ServerTypeId;
26
23
  }
27
- exports.Server = Server;
28
- _a = ServerTypeId;
29
24
  /**
30
25
  * @tsplus static fncts.http.ServerOps Tag
31
26
  */
27
+ exports.Server = Server;
32
28
  const ServerTag_1 = /*#__PURE__*/tsplus_module_1.makeTag();
33
29
  const ServerTag = exports.ServerTag = ServerTag_1;
34
30
  /**
@@ -36,11 +32,8 @@ const ServerTag = exports.ServerTag = ServerTag_1;
36
32
  */
37
33
  function make(options) {
38
34
  return new class extends Server {
39
- constructor() {
40
- super(...arguments);
41
- this.serve = options.serve;
42
- this.address = options.address;
43
- }
35
+ serve = options.serve;
36
+ address = options.address;
44
37
  }();
45
38
  }
46
39
  function serve(middleware) {
@@ -1 +1 @@
1
- {"version":3,"file":"Server.cjs","names":["ServerTypeId","exports","Symbol","for","Server","constructor","_a","ServerTag_1","tsplus_module_1","makeTag","ServerTag","make","options","serve","address","middleware","httpApp","tsplus_module_4","scopedDiscard","tsplus_module_3","flatMap","server","fileName_1","tsplus_module_2","service","serveIO"],"sources":["../_src/Server.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAIO,MAAMA,YAAY,GAAAC,OAAA,CAAAD,YAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,mBAAmB,CAAC;AAG3D;;;;AAIM,MAAgBC,MAAM;EAA5BC,YAAA;IACW,KAAAC,EAAA,CAAc,GAAiBN,YAAY;EAOtD;;AAACC,OAAA,CAAAG,MAAA,GAAAA,MAAA;KAPWJ,YAAY;AASxB;;;AAGO,MAAMO,WAAA,gBAAYC,eAAA,CAAAC,OAAA,EAAa;MAAzBC,SAAS,GAAAT,OAAA,CAAAS,SAAA,GAAAH,WAAA;AAetB;;;AAGM,SAAUI,IAAIA,CAACC,OAGpB;EACC,OAAO,IAAK,cAAcR,MAAM;IAApBC,YAAA;;MACV,KAAAQ,KAAK,GAAGD,OAAO,CAACC,KAAK;MACrB,KAAAC,OAAO,GAAGF,OAAO,CAACE,OAAO;IAC3B;GAAC,CAAC,CAAE;AACN;AAcM,SAAUD,KAAKA,CACnBE,UAA0C;EAE1C,OAAQC,OAAO,IACbC,eAAA,CAAAC,aAAA,OAAoBC,eAAA,CAAAC,OAAA,CAAgCC,MAAM,IAAKA,MAAM,CAACR,KAAK,CAACG,OAAO,EAAED,UAAW,CAAC,EAAAO,UAAA,aAA7EC,eAAA,CAAAC,OAAA,CAAAjB,WAAA,EAAAe,UAAA,YAAsB,CAAwD,EAAAA,UAAA,YAAQ;AAC9G;AAcM,SAAUG,OAAOA,CACrBV,UAA0C;EAE1C,OAAQC,OAAO,IAAKG,eAAA,CAAAC,OAAA,CAAgCC,MAAM,IAAKA,MAAM,CAACR,KAAK,CAACG,OAAO,EAAED,UAAW,CAAC,EAAAO,UAAA,aAA7EC,eAAA,CAAAC,OAAA,CAAAjB,WAAA,EAAAe,UAAA,YAAsB,CAA+D;AAC3G","ignoreList":[]}
1
+ {"version":3,"file":"Server.cjs","names":["ServerTypeId","exports","Symbol","for","Server","ServerTag_1","tsplus_module_1","makeTag","ServerTag","make","options","serve","address","middleware","httpApp","tsplus_module_4","scopedDiscard","tsplus_module_3","flatMap","server","fileName_1","tsplus_module_2","service","serveIO"],"sources":["../_src/Server.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAIO,MAAMA,YAAY,GAAAC,OAAA,CAAAD,YAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,mBAAmB,CAAC;AAG3D;;;;AAIM,MAAgBC,MAAM;EACjB,CAACJ,YAAY,IAAkBA,YAAY;;AAStD;;;AAAAC,OAAA,CAAAG,MAAA,GAAAA,MAAA;AAGO,MAAMC,WAAA,gBAAYC,eAAA,CAAAC,OAAA,EAAa;MAAzBC,SAAS,GAAAP,OAAA,CAAAO,SAAA,GAAAH,WAAA;AAetB;;;AAGM,SAAUI,IAAIA,CAACC,OAGpB;EACC,OAAO,IAAK,cAAcN,MAAM;IAC9BO,KAAK,GAAGD,OAAO,CAACC,KAAK;IACrBC,OAAO,GAAGF,OAAO,CAACE,OAAO;GAC1B,CAAC,CAAE;AACN;AAcM,SAAUD,KAAKA,CACnBE,UAA0C;EAE1C,OAAQC,OAAO,IACbC,eAAA,CAAAC,aAAA,OAAoBC,eAAA,CAAAC,OAAA,CAAgCC,MAAM,IAAKA,MAAM,CAACR,KAAK,CAACG,OAAO,EAAED,UAAW,CAAC,EAAAO,UAAA,aAA7EC,eAAA,CAAAC,OAAA,CAAAjB,WAAA,EAAAe,UAAA,YAAsB,CAAwD,EAAAA,UAAA,YAAQ;AAC9G;AAcM,SAAUG,OAAOA,CACrBV,UAA0C;EAE1C,OAAQC,OAAO,IAAKG,eAAA,CAAAC,OAAA,CAAgCC,MAAM,IAAKA,MAAM,CAACR,KAAK,CAACG,OAAO,EAAED,UAAW,CAAC,EAAAO,UAAA,aAA7EC,eAAA,CAAAC,OAAA,CAAAjB,WAAA,EAAAe,UAAA,YAAsB,CAA+D;AAC3G","ignoreList":[]}
@@ -6,16 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.clientAbortFiberId = exports.ServeErrorTypeId = exports.ServeError = void 0;
7
7
  var _FiberId = /*#__PURE__*/require("@fncts/base/data/FiberId");
8
8
  var _Global = /*#__PURE__*/require("@fncts/base/data/Global");
9
- var _a;
10
9
  const clientAbortFiberId = exports.clientAbortFiberId = /*#__PURE__*/(0, _Global.globalValue)("fncts.http.ServerError.clientAbortFiberId", () => new _FiberId.Runtime(-499, 0));
11
10
  const ServeErrorTypeId = exports.ServeErrorTypeId = /*#__PURE__*/Symbol.for("fncts.http.ServeError");
12
11
  class ServeError extends Error {
12
+ error;
13
+ [ServeErrorTypeId] = ServeErrorTypeId;
13
14
  constructor(error) {
14
15
  super();
15
16
  this.error = error;
16
- this[_a] = ServeErrorTypeId;
17
17
  }
18
18
  }
19
19
  exports.ServeError = ServeError;
20
- _a = ServeErrorTypeId;
21
20
  //# sourceMappingURL=ServerError.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServerError.cjs","names":["_FiberId","require","_Global","clientAbortFiberId","exports","globalValue","Runtime","ServeErrorTypeId","Symbol","for","ServeError","Error","constructor","error","_a"],"sources":["../_src/ServerError.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,QAAA,gBAAAC,OAAA;AACA,IAAAC,OAAA,gBAAAD,OAAA;;AAEO,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,gBAAG,IAAAE,mBAAW,EAAC,2CAA2C,EAAE,MAAM,IAAIC,gBAAO,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAE/G,MAAMC,gBAAgB,GAAAH,OAAA,CAAAG,gBAAA,gBAAGC,MAAM,CAACC,GAAG,CAAC,uBAAuB,CAAC;AAG7D,MAAOC,UAAW,SAAQC,KAAK;EAEnCC,YAAqBC,KAAe;IAClC,KAAK,EAAE;IADY,KAAAA,KAAK,GAALA,KAAK;IADjB,KAAAC,EAAA,CAAkB,GAAqBP,gBAAgB;EAGhE;;AACDH,OAAA,CAAAM,UAAA,GAAAA,UAAA;KAJWH,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"ServerError.cjs","names":["_FiberId","require","_Global","clientAbortFiberId","exports","globalValue","Runtime","ServeErrorTypeId","Symbol","for","ServeError","Error","error","constructor"],"sources":["../_src/ServerError.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,QAAA,gBAAAC,OAAA;AACA,IAAAC,OAAA,gBAAAD,OAAA;AAEO,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,gBAAG,IAAAE,mBAAW,EAAC,2CAA2C,EAAE,MAAM,IAAIC,gBAAO,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAE/G,MAAMC,gBAAgB,GAAAH,OAAA,CAAAG,gBAAA,gBAAGC,MAAM,CAACC,GAAG,CAAC,uBAAuB,CAAC;AAG7D,MAAOC,UAAW,SAAQC,KAAK;EAEdC,KAAA;EADZ,CAACL,gBAAgB,IAAsBA,gBAAgB;EAChEM,YAAqBD,KAAe;IAClC,KAAK,EAAE;IADY,KAAAA,KAAK,GAALA,KAAK;EAE1B;;AACDR,OAAA,CAAAM,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -7,22 +7,17 @@ exports.ServerRequestTypeId = exports.ServerRequestTag = exports.ServerRequest =
7
7
  var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Tag/constructors"));
8
8
  var _definition = /*#__PURE__*/require("../IncomingMessage/definition.cjs");
9
9
  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); }
10
- var _a;
11
10
  const ServerRequestTypeId = exports.ServerRequestTypeId = /*#__PURE__*/Symbol.for("fncts.http.ServerRequest");
12
11
  /**
13
12
  * @tsplus type fncts.http.ServerRequest
14
13
  * @tsplus companion fncts.http.ServerRequestOps
15
14
  */
16
15
  class ServerRequest extends _definition.IncomingMessage {
17
- constructor() {
18
- super(...arguments);
19
- this[_a] = ServerRequestTypeId;
20
- }
16
+ [ServerRequestTypeId] = ServerRequestTypeId;
21
17
  }
22
- exports.ServerRequest = ServerRequest;
23
- _a = ServerRequestTypeId;
24
18
  /**
25
19
  * @tsplus static fncts.http.ServerRequestOps Tag
26
20
  */
21
+ exports.ServerRequest = ServerRequest;
27
22
  const ServerRequestTag = exports.ServerRequestTag = /*#__PURE__*/tsplus_module_1.makeTag();
28
23
  //# sourceMappingURL=definition.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","names":["_definition","require","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ServerRequestTypeId","exports","Symbol","for","ServerRequest","IncomingMessage","constructor","_a","ServerRequestTag","tsplus_module_1","makeTag"],"sources":["../../_src/ServerRequest/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;;AAKA,IAAAA,WAAA,gBAAAC,OAAA;AAAmE,SAAAC,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAC,CAAA,EAAAC,CAAA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","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ServerRequestTypeId","exports","Symbol","for","ServerRequest","IncomingMessage","ServerRequestTag","tsplus_module_1","makeTag"],"sources":["../../_src/ServerRequest/definition.ts"],"sourcesContent":[null],"mappings":";;;;;;;AAKA,IAAAA,WAAA,gBAAAC,OAAA;AAAmE,SAAAC,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAE5D,MAAMkB,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,gBAAGE,MAAM,CAACC,GAAG,CAAC,0BAA0B,CAAC;AAGzE;;;;AAIM,MAAgBC,aAAc,SAAQC,2BAA6B;EAC9D,CAACL,mBAAmB,IAAyBA,mBAAmB;;AAc3E;;;AAAAC,OAAA,CAAAG,aAAA,GAAAA,aAAA;AAGO,MAAME,gBAAgB,GAAAL,OAAA,CAAAK,gBAAA,gBAAGC,eAAA,CAAAC,OAAA,EAAoB","ignoreList":[]}
@@ -18,6 +18,10 @@ var _definition = /*#__PURE__*/require("./definition.cjs");
18
18
  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); }
19
19
  const fileName_1 = "(@fncts/http) src/ServerRequest/internal.ts";
20
20
  class ServerRequestImpl extends _definition.ServerRequest {
21
+ source;
22
+ url;
23
+ headersOverride;
24
+ remoteAddressOverride;
21
25
  constructor(source, url, headersOverride, remoteAddressOverride) {
22
26
  super();
23
27
  this.source = source;
@@ -36,9 +40,10 @@ class ServerRequestImpl extends _definition.ServerRequest {
36
40
  }
37
41
  get headers() {
38
42
  // eslint-disable-next-line @0x706b/align-assignments/align-assignments
39
- this.headersOverride ?? (this.headersOverride = tsplus_module_2.fromHeaders(this.source.headers));
43
+ this.headersOverride ??= tsplus_module_2.fromHeaders(this.source.headers);
40
44
  return this.headersOverride;
41
45
  }
46
+ textIO;
42
47
  get text() {
43
48
  if (this.textIO) {
44
49
  return this.textIO;
@@ -52,6 +57,7 @@ class ServerRequestImpl extends _definition.ServerRequest {
52
57
  get urlParamsBody() {
53
58
  return tsplus_module_3.flatMap(text => tsplus_module_3.tryCatch(() => tsplus_module_7.make(new URLSearchParams(text)), error => new _RequestError.RequestError(this, "Decode", error), fileName_1 + ":62:18"), fileName_1 + ":61:29")(this.text);
54
59
  }
60
+ arrayBufferIO;
55
61
  get arrayBuffer() {
56
62
  if (this.arrayBufferIO) {
57
63
  return this.arrayBufferIO;