@zudojs/http 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (662) hide show
  1. package/README.md +41 -0
  2. package/dist/httpAdapter/fetch/httpFetch.body.d.ts +20 -0
  3. package/dist/httpAdapter/fetch/httpFetch.body.d.ts.map +1 -0
  4. package/dist/httpAdapter/fetch/httpFetch.body.js +57 -0
  5. package/dist/httpAdapter/fetch/httpFetch.body.js.map +1 -0
  6. package/dist/httpAdapter/fetch/httpFetch.helper.d.ts.map +1 -0
  7. package/dist/httpAdapter/fetch/httpFetch.requestContext.d.ts.map +1 -0
  8. package/dist/httpAdapter/fetch/httpFetch.responseWriter.d.ts.map +1 -0
  9. package/dist/httpAdapter/fetch/httpFetch.type.d.ts.map +1 -0
  10. package/dist/httpAdapter/fetch/index.d.ts.map +1 -0
  11. package/dist/httpAdapter/http.adapter.d.ts +116 -0
  12. package/dist/httpAdapter/http.adapter.d.ts.map +1 -0
  13. package/dist/httpAdapter/http.adapter.js +284 -0
  14. package/dist/httpAdapter/http.adapter.js.map +1 -0
  15. package/dist/httpAdapter/http.adapters.d.ts.map +1 -0
  16. package/dist/httpAdapter/http.adapters.js +137 -0
  17. package/dist/httpAdapter/http.adapters.js.map +1 -0
  18. package/dist/httpAdapter/httpFetch.adapter.d.ts.map +1 -0
  19. package/dist/httpAdapter/index.d.ts +10 -0
  20. package/dist/httpAdapter/index.d.ts.map +1 -0
  21. package/dist/httpAdapter/index.js +10 -0
  22. package/dist/httpAdapter/index.js.map +1 -0
  23. package/dist/httpAdapter/node/httpNode.adapter.d.ts +42 -0
  24. package/dist/httpAdapter/node/httpNode.adapter.d.ts.map +1 -0
  25. package/dist/httpAdapter/node/httpNode.adapter.js +221 -0
  26. package/dist/httpAdapter/node/httpNode.adapter.js.map +1 -0
  27. package/dist/httpAdapter/node/httpNode.request.d.ts.map +1 -0
  28. package/dist/httpAdapter/node/httpNode.response.d.ts.map +1 -0
  29. package/dist/httpAdapter/node/httpNode.server.d.ts +39 -0
  30. package/dist/httpAdapter/node/httpNode.server.d.ts.map +1 -0
  31. package/dist/httpAdapter/node/httpNode.server.js +228 -0
  32. package/dist/httpAdapter/node/httpNode.server.js.map +1 -0
  33. package/dist/httpAdapter/node/httpNode.type.d.ts.map +1 -0
  34. package/dist/httpAdapter/node/index.d.ts +11 -0
  35. package/dist/httpAdapter/node/index.d.ts.map +1 -0
  36. package/dist/httpAdapter/node/index.js +11 -0
  37. package/dist/httpAdapter/node/index.js.map +1 -0
  38. package/dist/httpAgent/http.agent.d.ts.map +1 -0
  39. package/dist/httpAgent/index.d.ts +7 -0
  40. package/dist/httpAgent/index.d.ts.map +1 -0
  41. package/dist/httpAgent/index.js +7 -0
  42. package/dist/httpAgent/index.js.map +1 -0
  43. package/dist/httpBody/http.body.d.ts +36 -0
  44. package/dist/httpBody/http.body.d.ts.map +1 -0
  45. package/dist/httpBody/http.body.js +245 -0
  46. package/dist/httpBody/http.body.js.map +1 -0
  47. package/dist/httpBody/httpBody.formData.d.ts +48 -0
  48. package/dist/httpBody/httpBody.formData.d.ts.map +1 -0
  49. package/dist/httpBody/httpBody.formData.js +366 -0
  50. package/dist/httpBody/httpBody.formData.js.map +1 -0
  51. package/dist/httpBody/httpBody.parser.d.ts +44 -0
  52. package/dist/httpBody/httpBody.parser.d.ts.map +1 -0
  53. package/dist/httpBody/httpBody.parser.js +233 -0
  54. package/dist/httpBody/httpBody.parser.js.map +1 -0
  55. package/dist/httpBody/index.d.ts +9 -0
  56. package/dist/httpBody/index.d.ts.map +1 -0
  57. package/dist/httpBody/index.js +9 -0
  58. package/dist/httpBody/index.js.map +1 -0
  59. package/dist/httpCacheControl/core/httpCacheControl.parse.d.ts.map +1 -0
  60. package/dist/httpCacheControl/core/httpCacheControl.type.d.ts.map +1 -0
  61. package/dist/httpCacheControl/core/httpCacheControl.validation.d.ts.map +1 -0
  62. package/dist/httpCacheControl/core/index.d.ts.map +1 -0
  63. package/dist/httpCacheControl/httpCacheControl.core.d.ts.map +1 -0
  64. package/dist/httpCacheControl/httpCacheControl.factory.d.ts.map +1 -0
  65. package/dist/httpCacheControl/httpCacheControl.freshness.d.ts.map +1 -0
  66. package/dist/httpCacheControl/httpCacheControl.requestHelper.d.ts.map +1 -0
  67. package/dist/httpCacheControl/httpCacheControl.responseHelper.d.ts.map +1 -0
  68. package/dist/httpCacheControl/index.d.ts +7 -0
  69. package/dist/httpCacheControl/index.d.ts.map +1 -0
  70. package/dist/httpCacheControl/index.js +7 -0
  71. package/dist/httpCacheControl/index.js.map +1 -0
  72. package/dist/httpClient/httpClient.abort.d.ts.map +1 -0
  73. package/dist/httpClient/httpClient.body.d.ts.map +1 -0
  74. package/dist/httpClient/httpClient.client.d.ts.map +1 -0
  75. package/dist/httpClient/httpClient.context.d.ts.map +1 -0
  76. package/dist/httpClient/httpClient.error.d.ts +9 -0
  77. package/dist/httpClient/httpClient.error.d.ts.map +1 -0
  78. package/dist/httpClient/httpClient.error.js +9 -0
  79. package/dist/httpClient/httpClient.error.js.map +1 -0
  80. package/dist/httpClient/httpClient.errorNormalizer.d.ts.map +1 -0
  81. package/dist/httpClient/httpClient.executor.d.ts.map +1 -0
  82. package/dist/httpClient/httpClient.factory.d.ts.map +1 -0
  83. package/dist/httpClient/httpClient.headers.d.ts.map +1 -0
  84. package/dist/httpClient/httpClient.helpers.d.ts.map +1 -0
  85. package/dist/httpClient/httpClient.interceptors.d.ts.map +1 -0
  86. package/dist/httpClient/httpClient.methods.d.ts.map +1 -0
  87. package/dist/httpClient/httpClient.response.d.ts.map +1 -0
  88. package/dist/httpClient/httpClient.retry.d.ts +38 -0
  89. package/dist/httpClient/httpClient.retry.d.ts.map +1 -0
  90. package/dist/httpClient/httpClient.retry.js +61 -0
  91. package/dist/httpClient/httpClient.retry.js.map +1 -0
  92. package/dist/httpClient/httpClient.type.d.ts.map +1 -0
  93. package/dist/httpClient/httpClient.typeGuards.d.ts.map +1 -0
  94. package/dist/httpClient/httpClient.url.d.ts.map +1 -0
  95. package/dist/httpClient/index.d.ts +17 -0
  96. package/dist/httpClient/index.d.ts.map +1 -0
  97. package/dist/httpClient/index.js +17 -0
  98. package/dist/httpClient/index.js.map +1 -0
  99. package/dist/httpCompression/http.compression.d.ts.map +1 -0
  100. package/dist/httpCompression/index.d.ts +7 -0
  101. package/dist/httpCompression/index.d.ts.map +1 -0
  102. package/dist/httpCompression/index.js +7 -0
  103. package/dist/httpCompression/index.js.map +1 -0
  104. package/dist/httpConditional/httpConditional.core.d.ts.map +1 -0
  105. package/dist/httpConditional/index.d.ts +7 -0
  106. package/dist/httpConditional/index.d.ts.map +1 -0
  107. package/dist/httpConditional/index.js +7 -0
  108. package/dist/httpConditional/index.js.map +1 -0
  109. package/dist/httpConstants/http.constants.d.ts +171 -0
  110. package/dist/httpConstants/http.constants.d.ts.map +1 -0
  111. package/dist/httpConstants/http.constants.js +294 -0
  112. package/dist/httpConstants/http.constants.js.map +1 -0
  113. package/dist/httpConstants/index.d.ts +7 -0
  114. package/dist/httpConstants/index.d.ts.map +1 -0
  115. package/dist/httpConstants/index.js +7 -0
  116. package/dist/httpConstants/index.js.map +1 -0
  117. package/dist/httpContentDisposition/httpContentDisposition.core.d.ts.map +1 -0
  118. package/dist/httpContentDisposition/index.d.ts +7 -0
  119. package/dist/httpContentDisposition/index.d.ts.map +1 -0
  120. package/dist/httpContentDisposition/index.js +7 -0
  121. package/dist/httpContentDisposition/index.js.map +1 -0
  122. package/dist/httpContentType/httpContentType.boundary.d.ts.map +1 -0
  123. package/dist/httpContentType/httpContentType.category.d.ts.map +1 -0
  124. package/dist/httpContentType/httpContentType.categoryBinary.d.ts.map +1 -0
  125. package/dist/httpContentType/httpContentType.charset.d.ts.map +1 -0
  126. package/dist/httpContentType/httpContentType.constructors.d.ts.map +1 -0
  127. package/dist/httpContentType/httpContentType.formatter.d.ts.map +1 -0
  128. package/dist/httpContentType/httpContentType.matcher.d.ts.map +1 -0
  129. package/dist/httpContentType/httpContentType.mediaTypes.d.ts.map +1 -0
  130. package/dist/httpContentType/httpContentType.normalizer.d.ts.map +1 -0
  131. package/dist/httpContentType/httpContentType.parameter.d.ts.map +1 -0
  132. package/dist/httpContentType/httpContentType.parser.d.ts.map +1 -0
  133. package/dist/httpContentType/httpContentType.parserHelpers.d.ts.map +1 -0
  134. package/dist/httpContentType/httpContentType.type.d.ts.map +1 -0
  135. package/dist/httpContentType/index.d.ts +19 -0
  136. package/dist/httpContentType/index.d.ts.map +1 -0
  137. package/dist/httpContentType/index.js +19 -0
  138. package/dist/httpContentType/index.js.map +1 -0
  139. package/dist/httpContext/http.context.d.ts +45 -0
  140. package/dist/httpContext/http.context.d.ts.map +1 -0
  141. package/dist/httpContext/http.context.js +157 -0
  142. package/dist/httpContext/http.context.js.map +1 -0
  143. package/dist/httpContext/index.d.ts +7 -0
  144. package/dist/httpContext/index.d.ts.map +1 -0
  145. package/dist/httpContext/index.js +7 -0
  146. package/dist/httpContext/index.js.map +1 -0
  147. package/dist/httpCookies/http.cookies.d.ts.map +1 -0
  148. package/dist/httpCookies/index.d.ts +7 -0
  149. package/dist/httpCookies/index.d.ts.map +1 -0
  150. package/dist/httpCookies/index.js +7 -0
  151. package/dist/httpCookies/index.js.map +1 -0
  152. package/dist/httpCors/http.cors.d.ts.map +1 -0
  153. package/dist/httpCors/index.d.ts +7 -0
  154. package/dist/httpCors/index.d.ts.map +1 -0
  155. package/dist/httpCors/index.js +7 -0
  156. package/dist/httpCors/index.js.map +1 -0
  157. package/dist/httpCsp/checks/httpCsp.checks.d.ts.map +1 -0
  158. package/dist/httpCsp/checks/index.d.ts.map +1 -0
  159. package/dist/httpCsp/formatting/httpCsp.formatting.d.ts.map +1 -0
  160. package/dist/httpCsp/formatting/index.d.ts.map +1 -0
  161. package/dist/httpCsp/index.d.ts +19 -0
  162. package/dist/httpCsp/index.d.ts.map +1 -0
  163. package/dist/httpCsp/index.js +17 -0
  164. package/dist/httpCsp/index.js.map +1 -0
  165. package/dist/httpCsp/internal/httpCsp.internal.d.ts.map +1 -0
  166. package/dist/httpCsp/internal/index.d.ts.map +1 -0
  167. package/dist/httpCsp/nonce/httpCsp.nonce.d.ts.map +1 -0
  168. package/dist/httpCsp/nonce/index.d.ts.map +1 -0
  169. package/dist/httpCsp/parsing/httpCsp.parsing.d.ts.map +1 -0
  170. package/dist/httpCsp/parsing/index.d.ts.map +1 -0
  171. package/dist/httpCsp/policies/httpCsp.policies.d.ts.map +1 -0
  172. package/dist/httpCsp/policies/index.d.ts.map +1 -0
  173. package/dist/httpCsp/reportOnly/httpCsp.reportOnly.d.ts.map +1 -0
  174. package/dist/httpCsp/reportOnly/index.d.ts.map +1 -0
  175. package/dist/httpCsp/sources/httpCsp.sources.d.ts.map +1 -0
  176. package/dist/httpCsp/sources/index.d.ts.map +1 -0
  177. package/dist/httpCsp/types/httpCsp.constant.d.ts.map +1 -0
  178. package/dist/httpCsp/types/httpCsp.type.d.ts.map +1 -0
  179. package/dist/httpCsp/types/index.d.ts.map +1 -0
  180. package/dist/httpCsp/validation/httpCsp.validate.d.ts.map +1 -0
  181. package/dist/httpCsp/validation/httpCsp.validation.d.ts.map +1 -0
  182. package/dist/httpCsp/validation/index.d.ts.map +1 -0
  183. package/dist/httpErrors/factories/httpError.clientError.d.ts.map +1 -0
  184. package/dist/httpErrors/factories/httpError.serverError.d.ts.map +1 -0
  185. package/dist/httpErrors/httpError.base.d.ts +42 -0
  186. package/dist/httpErrors/httpError.base.d.ts.map +1 -0
  187. package/dist/httpErrors/httpError.base.js +73 -0
  188. package/dist/httpErrors/httpError.base.js.map +1 -0
  189. package/dist/httpErrors/httpError.helper.d.ts.map +1 -0
  190. package/dist/httpErrors/httpError.invalidJson.d.ts.map +1 -0
  191. package/dist/httpErrors/httpError.type.d.ts +69 -0
  192. package/dist/httpErrors/httpError.type.d.ts.map +1 -0
  193. package/dist/httpErrors/httpError.type.js +7 -0
  194. package/dist/httpErrors/httpError.type.js.map +1 -0
  195. package/dist/httpErrors/httpError.typeGuard.d.ts.map +1 -0
  196. package/dist/httpErrors/index.d.ts +13 -0
  197. package/dist/httpErrors/index.d.ts.map +1 -0
  198. package/dist/httpErrors/index.js +13 -0
  199. package/dist/httpErrors/index.js.map +1 -0
  200. package/dist/httpFormData/index.d.ts +7 -0
  201. package/dist/httpFormData/index.d.ts.map +1 -0
  202. package/dist/httpFormData/index.js +7 -0
  203. package/dist/httpFormData/index.js.map +1 -0
  204. package/dist/httpHeaders/authorization/httpHeaders.authorization.d.ts.map +1 -0
  205. package/dist/httpHeaders/authorization/index.d.ts +8 -0
  206. package/dist/httpHeaders/authorization/index.d.ts.map +1 -0
  207. package/dist/httpHeaders/authorization/index.js +8 -0
  208. package/dist/httpHeaders/authorization/index.js.map +1 -0
  209. package/dist/httpHeaders/basic/httpHeaders.basic.d.ts.map +1 -0
  210. package/dist/httpHeaders/basic/httpHeaders.basicMatch.d.ts.map +1 -0
  211. package/dist/httpHeaders/basic/index.d.ts +8 -0
  212. package/dist/httpHeaders/basic/index.d.ts.map +1 -0
  213. package/dist/httpHeaders/basic/index.js +8 -0
  214. package/dist/httpHeaders/basic/index.js.map +1 -0
  215. package/dist/httpHeaders/cacheControl/httpHeaders.cacheControl.d.ts.map +1 -0
  216. package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlBuilder.d.ts.map +1 -0
  217. package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlParse.d.ts.map +1 -0
  218. package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlTokens.d.ts.map +1 -0
  219. package/dist/httpHeaders/cacheControl/index.d.ts +10 -0
  220. package/dist/httpHeaders/cacheControl/index.d.ts.map +1 -0
  221. package/dist/httpHeaders/cacheControl/index.js +10 -0
  222. package/dist/httpHeaders/cacheControl/index.js.map +1 -0
  223. package/dist/httpHeaders/conversion/httpHeaders.conversion.d.ts.map +1 -0
  224. package/dist/httpHeaders/conversion/httpHeaders.conversionObject.d.ts.map +1 -0
  225. package/dist/httpHeaders/conversion/index.d.ts +8 -0
  226. package/dist/httpHeaders/conversion/index.d.ts.map +1 -0
  227. package/dist/httpHeaders/conversion/index.js +8 -0
  228. package/dist/httpHeaders/conversion/index.js.map +1 -0
  229. package/dist/httpHeaders/date/httpHeaders.date.d.ts.map +1 -0
  230. package/dist/httpHeaders/date/index.d.ts +8 -0
  231. package/dist/httpHeaders/date/index.d.ts.map +1 -0
  232. package/dist/httpHeaders/date/index.js +8 -0
  233. package/dist/httpHeaders/date/index.js.map +1 -0
  234. package/dist/httpHeaders/etag/httpHeaders.etag.d.ts.map +1 -0
  235. package/dist/httpHeaders/etag/httpHeaders.etagMatch.d.ts.map +1 -0
  236. package/dist/httpHeaders/etag/index.d.ts +8 -0
  237. package/dist/httpHeaders/etag/index.d.ts.map +1 -0
  238. package/dist/httpHeaders/etag/index.js +8 -0
  239. package/dist/httpHeaders/etag/index.js.map +1 -0
  240. package/dist/httpHeaders/forwarded/httpHeaders.forwarded.d.ts.map +1 -0
  241. package/dist/httpHeaders/forwarded/index.d.ts +8 -0
  242. package/dist/httpHeaders/forwarded/index.d.ts.map +1 -0
  243. package/dist/httpHeaders/forwarded/index.js +8 -0
  244. package/dist/httpHeaders/forwarded/index.js.map +1 -0
  245. package/dist/httpHeaders/http.headers.d.ts.map +1 -0
  246. package/dist/httpHeaders/index.d.ts +14 -0
  247. package/dist/httpHeaders/index.d.ts.map +1 -0
  248. package/dist/httpHeaders/index.js +14 -0
  249. package/dist/httpHeaders/index.js.map +1 -0
  250. package/dist/httpHeaders/internal/httpHeaders.internal.cacheControl.d.ts.map +1 -0
  251. package/dist/httpHeaders/internal/httpHeaders.internal.mediaType.d.ts.map +1 -0
  252. package/dist/httpHeaders/internal/httpHeaders.internal.specificity.d.ts.map +1 -0
  253. package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.d.ts.map +1 -0
  254. package/dist/httpHeaders/internal/httpHeaders.internal.weightedValues.d.ts.map +1 -0
  255. package/dist/httpHeaders/internal/index.d.ts +12 -0
  256. package/dist/httpHeaders/internal/index.d.ts.map +1 -0
  257. package/dist/httpHeaders/internal/index.js +12 -0
  258. package/dist/httpHeaders/internal/index.js.map +1 -0
  259. package/dist/httpHeaders/list/httpHeaders.list.d.ts.map +1 -0
  260. package/dist/httpHeaders/list/httpHeaders.listMutation.d.ts.map +1 -0
  261. package/dist/httpHeaders/list/index.d.ts +8 -0
  262. package/dist/httpHeaders/list/index.d.ts.map +1 -0
  263. package/dist/httpHeaders/list/index.js +8 -0
  264. package/dist/httpHeaders/list/index.js.map +1 -0
  265. package/dist/httpHeaders/negotiation/httpHeaders.contentNegotiation.d.ts.map +1 -0
  266. package/dist/httpHeaders/negotiation/httpHeaders.contentNegotiationSelect.d.ts.map +1 -0
  267. package/dist/httpHeaders/negotiation/httpHeaders.encodingNegotiation.d.ts.map +1 -0
  268. package/dist/httpHeaders/negotiation/httpHeaders.encodingNegotiationSelect.d.ts.map +1 -0
  269. package/dist/httpHeaders/negotiation/httpHeaders.languageNegotiation.d.ts.map +1 -0
  270. package/dist/httpHeaders/negotiation/index.d.ts +11 -0
  271. package/dist/httpHeaders/negotiation/index.d.ts.map +1 -0
  272. package/dist/httpHeaders/negotiation/index.js +11 -0
  273. package/dist/httpHeaders/negotiation/index.js.map +1 -0
  274. package/dist/httpHeaders/range/httpHeaders.contentRange.d.ts.map +1 -0
  275. package/dist/httpHeaders/range/httpHeaders.contentRangeParse.d.ts.map +1 -0
  276. package/dist/httpHeaders/range/httpHeaders.range.d.ts.map +1 -0
  277. package/dist/httpHeaders/range/httpHeaders.rangeResolution.d.ts.map +1 -0
  278. package/dist/httpHeaders/range/httpHeaders.rangeSingle.d.ts.map +1 -0
  279. package/dist/httpHeaders/range/index.d.ts +11 -0
  280. package/dist/httpHeaders/range/index.d.ts.map +1 -0
  281. package/dist/httpHeaders/range/index.js +11 -0
  282. package/dist/httpHeaders/range/index.js.map +1 -0
  283. package/dist/httpHeaders/security/httpHeaders.security.d.ts.map +1 -0
  284. package/dist/httpHeaders/security/index.d.ts +8 -0
  285. package/dist/httpHeaders/security/index.d.ts.map +1 -0
  286. package/dist/httpHeaders/security/index.js +8 -0
  287. package/dist/httpHeaders/security/index.js.map +1 -0
  288. package/dist/httpHeaders/types/httpHeaders.type.d.ts.map +1 -0
  289. package/dist/httpHeaders/types/index.d.ts +7 -0
  290. package/dist/httpHeaders/types/index.d.ts.map +1 -0
  291. package/dist/httpHeaders/types/index.js +7 -0
  292. package/dist/httpHeaders/types/index.js.map +1 -0
  293. package/dist/httpHsts/http.hsts.d.ts.map +1 -0
  294. package/dist/httpHsts/index.d.ts +7 -0
  295. package/dist/httpHsts/index.d.ts.map +1 -0
  296. package/dist/httpHsts/index.js +7 -0
  297. package/dist/httpHsts/index.js.map +1 -0
  298. package/dist/httpInterceptors/builtin/httpInterceptor.request.d.ts.map +1 -0
  299. package/dist/httpInterceptors/builtin/httpInterceptor.request.js +79 -0
  300. package/dist/httpInterceptors/builtin/httpInterceptor.request.js.map +1 -0
  301. package/dist/httpInterceptors/builtin/httpInterceptor.response.d.ts.map +1 -0
  302. package/dist/httpInterceptors/builtin/index.d.ts.map +1 -0
  303. package/dist/httpInterceptors/http.interceptors.d.ts.map +1 -0
  304. package/dist/httpInterceptors/httpInterceptor.helper.d.ts.map +1 -0
  305. package/dist/httpInterceptors/httpInterceptor.middleware.d.ts.map +1 -0
  306. package/dist/httpInterceptors/httpInterceptor.type.d.ts.map +1 -0
  307. package/dist/httpInterceptors/index.d.ts +7 -0
  308. package/dist/httpInterceptors/index.d.ts.map +1 -0
  309. package/dist/httpInterceptors/index.js +7 -0
  310. package/dist/httpInterceptors/index.js.map +1 -0
  311. package/dist/httpInterceptors/manager/httpInterceptor.lookup.d.ts.map +1 -0
  312. package/dist/httpInterceptors/manager/httpInterceptor.manager.d.ts.map +1 -0
  313. package/dist/httpInterceptors/manager/httpInterceptor.registration.d.ts.map +1 -0
  314. package/dist/httpInterceptors/manager/httpInterceptor.snapshot.d.ts.map +1 -0
  315. package/dist/httpInterceptors/manager/index.d.ts.map +1 -0
  316. package/dist/httpKeepAlive/httpKeepAlive.core.d.ts.map +1 -0
  317. package/dist/httpKeepAlive/index.d.ts +7 -0
  318. package/dist/httpKeepAlive/index.d.ts.map +1 -0
  319. package/dist/httpKeepAlive/index.js +7 -0
  320. package/dist/httpKeepAlive/index.js.map +1 -0
  321. package/dist/httpMethods/http.methods.d.ts.map +1 -0
  322. package/dist/httpMethods/index.d.ts +7 -0
  323. package/dist/httpMethods/index.d.ts.map +1 -0
  324. package/dist/httpMethods/index.js +7 -0
  325. package/dist/httpMethods/index.js.map +1 -0
  326. package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.d.ts.map +1 -0
  327. package/dist/httpMiddleware/builtin/compose/index.d.ts.map +1 -0
  328. package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.d.ts.map +1 -0
  329. package/dist/httpMiddleware/builtin/conditional/index.d.ts.map +1 -0
  330. package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.d.ts.map +1 -0
  331. package/dist/httpMiddleware/builtin/cors/index.d.ts.map +1 -0
  332. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.d.ts.map +1 -0
  333. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.js +52 -0
  334. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.js.map +1 -0
  335. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.d.ts.map +1 -0
  336. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.normalizer.d.ts.map +1 -0
  337. package/dist/httpMiddleware/builtin/helpers/index.d.ts.map +1 -0
  338. package/dist/httpMiddleware/builtin/image/httpMiddleware.image.d.ts.map +1 -0
  339. package/dist/httpMiddleware/builtin/image/index.d.ts +7 -0
  340. package/dist/httpMiddleware/builtin/image/index.d.ts.map +1 -0
  341. package/dist/httpMiddleware/builtin/image/index.js +7 -0
  342. package/dist/httpMiddleware/builtin/image/index.js.map +1 -0
  343. package/dist/httpMiddleware/builtin/index.d.ts +18 -0
  344. package/dist/httpMiddleware/builtin/index.d.ts.map +1 -0
  345. package/dist/httpMiddleware/builtin/index.js +22 -0
  346. package/dist/httpMiddleware/builtin/index.js.map +1 -0
  347. package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.d.ts.map +1 -0
  348. package/dist/httpMiddleware/builtin/logging/index.d.ts.map +1 -0
  349. package/dist/httpMiddleware/builtin/security/httpMiddleware.security.d.ts.map +1 -0
  350. package/dist/httpMiddleware/builtin/security/index.d.ts.map +1 -0
  351. package/dist/httpMiddleware/builtin/static/httpMiddleware.static.d.ts.map +1 -0
  352. package/dist/httpMiddleware/builtin/static/index.d.ts +7 -0
  353. package/dist/httpMiddleware/builtin/static/index.d.ts.map +1 -0
  354. package/dist/httpMiddleware/builtin/static/index.js +7 -0
  355. package/dist/httpMiddleware/builtin/static/index.js.map +1 -0
  356. package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.d.ts.map +1 -0
  357. package/dist/httpMiddleware/builtin/timing/index.d.ts.map +1 -0
  358. package/dist/httpMiddleware/builtin/video/httpMiddleware.video.d.ts.map +1 -0
  359. package/dist/httpMiddleware/builtin/video/index.d.ts +7 -0
  360. package/dist/httpMiddleware/builtin/video/index.d.ts.map +1 -0
  361. package/dist/httpMiddleware/builtin/video/index.js +7 -0
  362. package/dist/httpMiddleware/builtin/video/index.js.map +1 -0
  363. package/dist/httpMiddleware/httpMiddleware.error.d.ts +38 -0
  364. package/dist/httpMiddleware/httpMiddleware.error.d.ts.map +1 -0
  365. package/dist/httpMiddleware/httpMiddleware.error.js +60 -0
  366. package/dist/httpMiddleware/httpMiddleware.error.js.map +1 -0
  367. package/dist/httpMiddleware/httpMiddleware.state.d.ts.map +1 -0
  368. package/dist/httpMiddleware/httpMiddleware.type.d.ts.map +1 -0
  369. package/dist/httpMiddleware/index.d.ts +11 -0
  370. package/dist/httpMiddleware/index.d.ts.map +1 -0
  371. package/dist/httpMiddleware/index.js +11 -0
  372. package/dist/httpMiddleware/index.js.map +1 -0
  373. package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.d.ts.map +1 -0
  374. package/dist/httpMiddleware/pipeline/httpPipeline.execution.d.ts.map +1 -0
  375. package/dist/httpMiddleware/pipeline/httpPipeline.helper.d.ts.map +1 -0
  376. package/dist/httpMiddleware/pipeline/httpPipeline.registration.d.ts.map +1 -0
  377. package/dist/httpMiddleware/pipeline/index.d.ts +10 -0
  378. package/dist/httpMiddleware/pipeline/index.d.ts.map +1 -0
  379. package/dist/httpMiddleware/pipeline/index.js +10 -0
  380. package/dist/httpMiddleware/pipeline/index.js.map +1 -0
  381. package/dist/httpMime/http.mime.d.ts.map +1 -0
  382. package/dist/httpMime/index.d.ts +7 -0
  383. package/dist/httpMime/index.d.ts.map +1 -0
  384. package/dist/httpMime/index.js +7 -0
  385. package/dist/httpMime/index.js.map +1 -0
  386. package/dist/httpMultipart/http.multipart.d.ts +42 -0
  387. package/dist/httpMultipart/http.multipart.d.ts.map +1 -0
  388. package/dist/httpMultipart/http.multipart.js +334 -0
  389. package/dist/httpMultipart/http.multipart.js.map +1 -0
  390. package/dist/httpMultipart/index.d.ts +7 -0
  391. package/dist/httpMultipart/index.d.ts.map +1 -0
  392. package/dist/httpMultipart/index.js +7 -0
  393. package/dist/httpMultipart/index.js.map +1 -0
  394. package/dist/httpNegotiation/httpNegotiation.accept.d.ts.map +1 -0
  395. package/dist/httpNegotiation/httpNegotiation.charset.d.ts.map +1 -0
  396. package/dist/httpNegotiation/httpNegotiation.construction.d.ts.map +1 -0
  397. package/dist/httpNegotiation/httpNegotiation.core.d.ts.map +1 -0
  398. package/dist/httpNegotiation/httpNegotiation.encoding.d.ts.map +1 -0
  399. package/dist/httpNegotiation/httpNegotiation.formatting.d.ts.map +1 -0
  400. package/dist/httpNegotiation/httpNegotiation.helpers.d.ts.map +1 -0
  401. package/dist/httpNegotiation/httpNegotiation.internal.d.ts.map +1 -0
  402. package/dist/httpNegotiation/httpNegotiation.language.d.ts.map +1 -0
  403. package/dist/httpNegotiation/httpNegotiation.mediaType.d.ts.map +1 -0
  404. package/dist/httpNegotiation/httpNegotiation.negotiate.d.ts.map +1 -0
  405. package/dist/httpNegotiation/httpNegotiation.parsing.d.ts.map +1 -0
  406. package/dist/httpNegotiation/httpNegotiation.quality.d.ts.map +1 -0
  407. package/dist/httpNegotiation/httpNegotiation.sorting.d.ts.map +1 -0
  408. package/dist/httpNegotiation/httpNegotiation.types.d.ts.map +1 -0
  409. package/dist/httpNegotiation/index.d.ts +7 -0
  410. package/dist/httpNegotiation/index.d.ts.map +1 -0
  411. package/dist/httpNegotiation/index.js +7 -0
  412. package/dist/httpNegotiation/index.js.map +1 -0
  413. package/dist/httpProtocol/http.protocol.d.ts.map +1 -0
  414. package/dist/httpProtocol/index.d.ts +7 -0
  415. package/dist/httpProtocol/index.d.ts.map +1 -0
  416. package/dist/httpProtocol/index.js +7 -0
  417. package/dist/httpProtocol/index.js.map +1 -0
  418. package/dist/httpProxy/http.proxy.d.ts.map +1 -0
  419. package/dist/httpProxy/index.d.ts +8 -0
  420. package/dist/httpProxy/index.d.ts.map +1 -0
  421. package/dist/httpProxy/index.js +8 -0
  422. package/dist/httpProxy/index.js.map +1 -0
  423. package/dist/httpQuery/http.query.d.ts.map +1 -0
  424. package/dist/httpQuery/httpQuery.string.d.ts.map +1 -0
  425. package/dist/httpQuery/index.d.ts +8 -0
  426. package/dist/httpQuery/index.d.ts.map +1 -0
  427. package/dist/httpQuery/index.js +8 -0
  428. package/dist/httpQuery/index.js.map +1 -0
  429. package/dist/httpRange/http.range.d.ts.map +1 -0
  430. package/dist/httpRange/index.d.ts +7 -0
  431. package/dist/httpRange/index.d.ts.map +1 -0
  432. package/dist/httpRange/index.js +7 -0
  433. package/dist/httpRange/index.js.map +1 -0
  434. package/dist/httpRedirect/http.redirect.d.ts.map +1 -0
  435. package/dist/httpRedirect/index.d.ts +7 -0
  436. package/dist/httpRedirect/index.d.ts.map +1 -0
  437. package/dist/httpRedirect/index.js +7 -0
  438. package/dist/httpRedirect/index.js.map +1 -0
  439. package/dist/httpRequest/http.request.d.ts.map +1 -0
  440. package/dist/httpRequest/httpRequest.context.constant.d.ts.map +1 -0
  441. package/dist/httpRequest/httpRequest.context.constant.js +8 -0
  442. package/dist/httpRequest/httpRequest.context.constant.js.map +1 -0
  443. package/dist/httpRequest/httpRequest.context.d.ts.map +1 -0
  444. package/dist/httpRequest/httpRequest.context.id.d.ts.map +1 -0
  445. package/dist/httpRequest/httpRequest.context.js +402 -0
  446. package/dist/httpRequest/httpRequest.context.js.map +1 -0
  447. package/dist/httpRequest/httpRequest.context.type.d.ts.map +1 -0
  448. package/dist/httpRequest/index.d.ts +8 -0
  449. package/dist/httpRequest/index.d.ts.map +1 -0
  450. package/dist/httpRequest/index.js +8 -0
  451. package/dist/httpRequest/index.js.map +1 -0
  452. package/dist/httpResponse/core/httpResponse.statusText.d.ts.map +1 -0
  453. package/dist/httpResponse/core/httpResponse.type.d.ts.map +1 -0
  454. package/dist/httpResponse/core/index.d.ts.map +1 -0
  455. package/dist/httpResponse/http.response.d.ts.map +1 -0
  456. package/dist/httpResponse/httpResponse.context.d.ts.map +1 -0
  457. package/dist/httpResponse/httpResponse.helper.d.ts.map +1 -0
  458. package/dist/httpResponse/httpResponse.writer.d.ts +52 -0
  459. package/dist/httpResponse/httpResponse.writer.d.ts.map +1 -0
  460. package/dist/httpResponse/httpResponse.writer.js +278 -0
  461. package/dist/httpResponse/httpResponse.writer.js.map +1 -0
  462. package/dist/httpResponse/index.d.ts +9 -0
  463. package/dist/httpResponse/index.d.ts.map +1 -0
  464. package/dist/httpResponse/index.js +9 -0
  465. package/dist/httpResponse/index.js.map +1 -0
  466. package/dist/httpSecurity/httpSecurity.config.d.ts +43 -0
  467. package/dist/httpSecurity/httpSecurity.config.d.ts.map +1 -0
  468. package/dist/httpSecurity/httpSecurity.config.js +26 -0
  469. package/dist/httpSecurity/httpSecurity.config.js.map +1 -0
  470. package/dist/httpSecurity/httpSecurity.guard.d.ts +29 -0
  471. package/dist/httpSecurity/httpSecurity.guard.d.ts.map +1 -0
  472. package/dist/httpSecurity/httpSecurity.guard.js +40 -0
  473. package/dist/httpSecurity/httpSecurity.guard.js.map +1 -0
  474. package/dist/httpSecurity/httpSecurity.validator.d.ts +42 -0
  475. package/dist/httpSecurity/httpSecurity.validator.d.ts.map +1 -0
  476. package/dist/httpSecurity/httpSecurity.validator.js +151 -0
  477. package/dist/httpSecurity/httpSecurity.validator.js.map +1 -0
  478. package/dist/httpSecurity/index.d.ts +14 -0
  479. package/dist/httpSecurity/index.d.ts.map +1 -0
  480. package/dist/httpSecurity/index.js +11 -0
  481. package/dist/httpSecurity/index.js.map +1 -0
  482. package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.d.ts.map +1 -0
  483. package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.d.ts.map +1 -0
  484. package/dist/httpSecurityHeaders/core/index.d.ts.map +1 -0
  485. package/dist/httpSecurityHeaders/httpSecurity.headers.d.ts.map +1 -0
  486. package/dist/httpSecurityHeaders/httpSecurityHeader.factory.d.ts.map +1 -0
  487. package/dist/httpSecurityHeaders/httpSecurityHeader.individual.d.ts.map +1 -0
  488. package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.d.ts.map +1 -0
  489. package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.d.ts.map +1 -0
  490. package/dist/httpSecurityHeaders/index.d.ts +7 -0
  491. package/dist/httpSecurityHeaders/index.d.ts.map +1 -0
  492. package/dist/httpSecurityHeaders/index.js +7 -0
  493. package/dist/httpSecurityHeaders/index.js.map +1 -0
  494. package/dist/httpServer/core/httpServer.core.d.ts +55 -0
  495. package/dist/httpServer/core/httpServer.core.d.ts.map +1 -0
  496. package/dist/httpServer/core/httpServer.core.js +240 -0
  497. package/dist/httpServer/core/httpServer.core.js.map +1 -0
  498. package/dist/httpServer/core/index.d.ts +7 -0
  499. package/dist/httpServer/core/index.d.ts.map +1 -0
  500. package/dist/httpServer/core/index.js +7 -0
  501. package/dist/httpServer/core/index.js.map +1 -0
  502. package/dist/httpServer/factory/httpServer.factory.d.ts +24 -0
  503. package/dist/httpServer/factory/httpServer.factory.d.ts.map +1 -0
  504. package/dist/httpServer/factory/httpServer.factory.js +67 -0
  505. package/dist/httpServer/factory/httpServer.factory.js.map +1 -0
  506. package/dist/httpServer/factory/index.d.ts +7 -0
  507. package/dist/httpServer/factory/index.d.ts.map +1 -0
  508. package/dist/httpServer/factory/index.js +7 -0
  509. package/dist/httpServer/factory/index.js.map +1 -0
  510. package/dist/httpServer/index.d.ts +10 -0
  511. package/dist/httpServer/index.d.ts.map +1 -0
  512. package/dist/httpServer/index.js +10 -0
  513. package/dist/httpServer/index.js.map +1 -0
  514. package/dist/httpServer/manager/httpServer.manager.d.ts +19 -0
  515. package/dist/httpServer/manager/httpServer.manager.d.ts.map +1 -0
  516. package/dist/httpServer/manager/httpServer.manager.js +57 -0
  517. package/dist/httpServer/manager/httpServer.manager.js.map +1 -0
  518. package/dist/httpServer/manager/index.d.ts +7 -0
  519. package/dist/httpServer/manager/index.d.ts.map +1 -0
  520. package/dist/httpServer/manager/index.js +7 -0
  521. package/dist/httpServer/manager/index.js.map +1 -0
  522. package/dist/httpServer/types/httpServer.type.d.ts +43 -0
  523. package/dist/httpServer/types/httpServer.type.d.ts.map +1 -0
  524. package/dist/httpServer/types/httpServer.type.js +8 -0
  525. package/dist/httpServer/types/httpServer.type.js.map +1 -0
  526. package/dist/httpStatus/httpStatus.categoryPredicate.d.ts.map +1 -0
  527. package/dist/httpStatus/httpStatus.clientErrorConstant.d.ts.map +1 -0
  528. package/dist/httpStatus/httpStatus.clientErrorTextConstant.d.ts.map +1 -0
  529. package/dist/httpStatus/httpStatus.collection.d.ts.map +1 -0
  530. package/dist/httpStatus/httpStatus.commonPredicate.d.ts.map +1 -0
  531. package/dist/httpStatus/httpStatus.constant.d.ts.map +1 -0
  532. package/dist/httpStatus/httpStatus.errorPredicate.d.ts.map +1 -0
  533. package/dist/httpStatus/httpStatus.info.d.ts.map +1 -0
  534. package/dist/httpStatus/httpStatus.informationalSuccessConstant.d.ts.map +1 -0
  535. package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.d.ts.map +1 -0
  536. package/dist/httpStatus/httpStatus.lookup.d.ts.map +1 -0
  537. package/dist/httpStatus/httpStatus.name.d.ts.map +1 -0
  538. package/dist/httpStatus/httpStatus.predicate.d.ts.map +1 -0
  539. package/dist/httpStatus/httpStatus.redirectErrorConstant.d.ts.map +1 -0
  540. package/dist/httpStatus/httpStatus.redirectErrorTextConstant.d.ts.map +1 -0
  541. package/dist/httpStatus/httpStatus.redirectPredicate.d.ts.map +1 -0
  542. package/dist/httpStatus/httpStatus.redirectionConstant.d.ts.map +1 -0
  543. package/dist/httpStatus/httpStatus.redirectionTextConstant.d.ts.map +1 -0
  544. package/dist/httpStatus/httpStatus.semantics.d.ts.map +1 -0
  545. package/dist/httpStatus/httpStatus.serverErrorConstant.d.ts.map +1 -0
  546. package/dist/httpStatus/httpStatus.serverErrorTextConstant.d.ts.map +1 -0
  547. package/dist/httpStatus/httpStatus.statusConstant.d.ts.map +1 -0
  548. package/dist/httpStatus/httpStatus.statusTextConstant.d.ts.map +1 -0
  549. package/dist/httpStatus/httpStatus.type.d.ts.map +1 -0
  550. package/dist/httpStatus/httpStatus.validator.d.ts.map +1 -0
  551. package/dist/httpStatus/httpStatusCodes.constant.d.ts.map +1 -0
  552. package/dist/httpStatus/index.d.ts +20 -0
  553. package/dist/httpStatus/index.d.ts.map +1 -0
  554. package/dist/httpStatus/index.js +20 -0
  555. package/dist/httpStatus/index.js.map +1 -0
  556. package/dist/httpStream/httpStream.backpressure.d.ts +6 -0
  557. package/dist/httpStream/httpStream.backpressure.d.ts.map +1 -0
  558. package/dist/httpStream/httpStream.backpressure.js +38 -0
  559. package/dist/httpStream/httpStream.backpressure.js.map +1 -0
  560. package/dist/httpStream/httpStream.constants.d.ts +5 -0
  561. package/dist/httpStream/httpStream.constants.d.ts.map +1 -0
  562. package/dist/httpStream/httpStream.constants.js +5 -0
  563. package/dist/httpStream/httpStream.constants.js.map +1 -0
  564. package/dist/httpStream/httpStream.consume.d.ts +6 -0
  565. package/dist/httpStream/httpStream.consume.d.ts.map +1 -0
  566. package/dist/httpStream/httpStream.consume.js +70 -0
  567. package/dist/httpStream/httpStream.consume.js.map +1 -0
  568. package/dist/httpStream/httpStream.destroy.d.ts +5 -0
  569. package/dist/httpStream/httpStream.destroy.d.ts.map +1 -0
  570. package/dist/httpStream/httpStream.destroy.js +11 -0
  571. package/dist/httpStream/httpStream.destroy.js.map +1 -0
  572. package/dist/httpStream/httpStream.error.d.ts +8 -0
  573. package/dist/httpStream/httpStream.error.d.ts.map +1 -0
  574. package/dist/httpStream/httpStream.error.js +17 -0
  575. package/dist/httpStream/httpStream.error.js.map +1 -0
  576. package/dist/httpStream/httpStream.eventHelper.d.ts +13 -0
  577. package/dist/httpStream/httpStream.eventHelper.d.ts.map +1 -0
  578. package/dist/httpStream/httpStream.eventHelper.js +50 -0
  579. package/dist/httpStream/httpStream.eventHelper.js.map +1 -0
  580. package/dist/httpStream/httpStream.helper.d.ts +8 -0
  581. package/dist/httpStream/httpStream.helper.d.ts.map +1 -0
  582. package/dist/httpStream/httpStream.helper.js +35 -0
  583. package/dist/httpStream/httpStream.helper.js.map +1 -0
  584. package/dist/httpStream/httpStream.pipe.d.ts +7 -0
  585. package/dist/httpStream/httpStream.pipe.d.ts.map +1 -0
  586. package/dist/httpStream/httpStream.pipe.js +107 -0
  587. package/dist/httpStream/httpStream.pipe.js.map +1 -0
  588. package/dist/httpStream/httpStream.progress.d.ts +6 -0
  589. package/dist/httpStream/httpStream.progress.d.ts.map +1 -0
  590. package/dist/httpStream/httpStream.progress.js +100 -0
  591. package/dist/httpStream/httpStream.progress.js.map +1 -0
  592. package/dist/httpStream/httpStream.read.d.ts +7 -0
  593. package/dist/httpStream/httpStream.read.d.ts.map +1 -0
  594. package/dist/httpStream/httpStream.read.js +20 -0
  595. package/dist/httpStream/httpStream.read.js.map +1 -0
  596. package/dist/httpStream/httpStream.request.d.ts +8 -0
  597. package/dist/httpStream/httpStream.request.d.ts.map +1 -0
  598. package/dist/httpStream/httpStream.request.js +11 -0
  599. package/dist/httpStream/httpStream.request.js.map +1 -0
  600. package/dist/httpStream/httpStream.state.d.ts +8 -0
  601. package/dist/httpStream/httpStream.state.d.ts.map +1 -0
  602. package/dist/httpStream/httpStream.state.js +17 -0
  603. package/dist/httpStream/httpStream.state.js.map +1 -0
  604. package/dist/httpStream/httpStream.transform.d.ts +8 -0
  605. package/dist/httpStream/httpStream.transform.d.ts.map +1 -0
  606. package/dist/httpStream/httpStream.transform.js +17 -0
  607. package/dist/httpStream/httpStream.transform.js.map +1 -0
  608. package/dist/httpStream/httpStream.types.d.ts +19 -0
  609. package/dist/httpStream/httpStream.types.d.ts.map +1 -0
  610. package/dist/httpStream/httpStream.types.js +5 -0
  611. package/dist/httpStream/httpStream.types.js.map +1 -0
  612. package/dist/httpStream/index.d.ts +20 -0
  613. package/dist/httpStream/index.d.ts.map +1 -0
  614. package/dist/httpStream/index.js +20 -0
  615. package/dist/httpStream/index.js.map +1 -0
  616. package/dist/httpTrustProxy/httpTrustProxy.compilation.d.ts.map +1 -0
  617. package/dist/httpTrustProxy/httpTrustProxy.core.d.ts.map +1 -0
  618. package/dist/httpTrustProxy/httpTrustProxy.helper.d.ts.map +1 -0
  619. package/dist/httpTrustProxy/httpTrustProxy.parsing.d.ts.map +1 -0
  620. package/dist/httpTrustProxy/httpTrustProxy.type.d.ts.map +1 -0
  621. package/dist/httpTrustProxy/index.d.ts +7 -0
  622. package/dist/httpTrustProxy/index.d.ts.map +1 -0
  623. package/dist/httpTrustProxy/index.js +7 -0
  624. package/dist/httpTrustProxy/index.js.map +1 -0
  625. package/dist/httpTypes/http.types.d.ts +212 -0
  626. package/dist/httpTypes/http.types.d.ts.map +1 -0
  627. package/dist/httpTypes/http.types.js +15 -0
  628. package/dist/httpTypes/http.types.js.map +1 -0
  629. package/dist/httpTypes/index.d.ts +7 -0
  630. package/dist/httpTypes/index.d.ts.map +1 -0
  631. package/dist/httpTypes/index.js +7 -0
  632. package/dist/httpTypes/index.js.map +1 -0
  633. package/dist/httpUrl/http.url.d.ts.map +1 -0
  634. package/dist/httpUrl/index.d.ts +7 -0
  635. package/dist/httpUrl/index.d.ts.map +1 -0
  636. package/dist/httpUrl/index.js +7 -0
  637. package/dist/httpUrl/index.js.map +1 -0
  638. package/dist/httpValidation/httpValidationAssertion.d.ts.map +1 -0
  639. package/dist/httpValidation/httpValidationAuthority.d.ts.map +1 -0
  640. package/dist/httpValidation/httpValidationAuthorization.d.ts.map +1 -0
  641. package/dist/httpValidation/httpValidationCacheControl.d.ts.map +1 -0
  642. package/dist/httpValidation/httpValidationContentLength.d.ts.map +1 -0
  643. package/dist/httpValidation/httpValidationContentType.d.ts.map +1 -0
  644. package/dist/httpValidation/httpValidationCookie.d.ts.map +1 -0
  645. package/dist/httpValidation/httpValidationDate.d.ts.map +1 -0
  646. package/dist/httpValidation/httpValidationETag.d.ts.map +1 -0
  647. package/dist/httpValidation/httpValidationHeader.d.ts.map +1 -0
  648. package/dist/httpValidation/httpValidationHostname.d.ts.map +1 -0
  649. package/dist/httpValidation/httpValidationMessage.d.ts.map +1 -0
  650. package/dist/httpValidation/httpValidationMethod.d.ts.map +1 -0
  651. package/dist/httpValidation/httpValidationPort.d.ts.map +1 -0
  652. package/dist/httpValidation/httpValidationRange.d.ts.map +1 -0
  653. package/dist/httpValidation/httpValidationRequestTarget.d.ts.map +1 -0
  654. package/dist/httpValidation/httpValidationStatusCode.d.ts.map +1 -0
  655. package/dist/httpValidation/httpValidationToken.d.ts.map +1 -0
  656. package/dist/httpValidation/httpValidationTypes.type.d.ts.map +1 -0
  657. package/dist/httpValidation/httpValidationUrl.d.ts.map +1 -0
  658. package/dist/httpValidation/index.d.ts +29 -0
  659. package/dist/httpValidation/index.d.ts.map +1 -0
  660. package/dist/httpValidation/index.js +29 -0
  661. package/dist/httpValidation/index.js.map +1 -0
  662. package/package.json +57 -0
@@ -0,0 +1,151 @@
1
+ /**
2
+ * @zudojs/http — Request validation functions.
3
+ *
4
+ * Validates incoming HTTP requests against security constraints:
5
+ * body size, header count, header values, URL length, host, and
6
+ * request ID format.
7
+ */
8
+ import { DEFAULT_SECURITY_CONFIG } from "./httpSecurity.config.js";
9
+ /** Merge user config with defaults. */
10
+ function resolveConfig(config) {
11
+ return { ...DEFAULT_SECURITY_CONFIG, ...config };
12
+ }
13
+ /**
14
+ * Validate request headers against security limits.
15
+ */
16
+ export function validateHeaders(headers, config) {
17
+ const cfg = resolveConfig(config);
18
+ const errors = [];
19
+ const entries = Object.entries(headers);
20
+ if (entries.length > cfg.maxHeaders) {
21
+ errors.push(`Too many headers: ${entries.length} > ${cfg.maxHeaders}`);
22
+ }
23
+ for (const [key, value] of entries) {
24
+ if (typeof value === "string" && value.length > cfg.maxHeaderValueSize) {
25
+ errors.push(`Header "${key}" value too large: ${value.length} > ${cfg.maxHeaderValueSize}`);
26
+ }
27
+ if (cfg.enableCrlfProtection &&
28
+ typeof value === "string" &&
29
+ /[\r\n]/.test(value)) {
30
+ errors.push(`Header "${key}" contains CRLF characters`);
31
+ }
32
+ }
33
+ return { valid: errors.length === 0, errors };
34
+ }
35
+ /**
36
+ * Validate the Host header against allowed hosts.
37
+ */
38
+ export function validateHost(host, config) {
39
+ if (!host) {
40
+ return { valid: false, errors: ["Missing Host header"] };
41
+ }
42
+ const cfg = resolveConfig(config);
43
+ if (cfg.allowedHosts.length === 0) {
44
+ return { valid: true, errors: [] };
45
+ }
46
+ const hostname = host.split(":")[0] ?? host;
47
+ const allowed = cfg.allowedHosts.some((h) => h === hostname || h === host);
48
+ return allowed
49
+ ? { valid: true, errors: [] }
50
+ : { valid: false, errors: [`Host "${host}" is not in allowed hosts`] };
51
+ }
52
+ /**
53
+ * Validate request URL length.
54
+ */
55
+ export function validateUrl(url, config) {
56
+ const cfg = resolveConfig(config);
57
+ if (url.length > cfg.maxUrlLength) {
58
+ return {
59
+ valid: false,
60
+ errors: [`URL too long: ${url.length} > ${cfg.maxUrlLength}`],
61
+ };
62
+ }
63
+ return { valid: true, errors: [] };
64
+ }
65
+ /**
66
+ * Validate query string length.
67
+ */
68
+ export function validateQuery(query, config) {
69
+ const cfg = resolveConfig(config);
70
+ if (query.length > cfg.maxQueryLength) {
71
+ return {
72
+ valid: false,
73
+ errors: [
74
+ `Query string too long: ${query.length} > ${cfg.maxQueryLength}`,
75
+ ],
76
+ };
77
+ }
78
+ return { valid: true, errors: [] };
79
+ }
80
+ /**
81
+ * Validate Content-Length header against body size limit.
82
+ */
83
+ export function validateContentLength(contentLength, config) {
84
+ if (!contentLength) {
85
+ return { valid: true, errors: [] };
86
+ }
87
+ const cfg = resolveConfig(config);
88
+ const length = Number(contentLength);
89
+ if (!Number.isFinite(length) || length < 0) {
90
+ return { valid: false, errors: ["Invalid Content-Length value"] };
91
+ }
92
+ if (!Number.isSafeInteger(length)) {
93
+ return { valid: false, errors: ["Content-Length is not a safe integer"] };
94
+ }
95
+ if (length > cfg.maxBodySize) {
96
+ return {
97
+ valid: false,
98
+ errors: [
99
+ `Content-Length exceeds body limit: ${length} > ${cfg.maxBodySize}`,
100
+ ],
101
+ };
102
+ }
103
+ return { valid: true, errors: [] };
104
+ }
105
+ /**
106
+ * Validate X-Request-ID format and length.
107
+ */
108
+ export function validateRequestId(requestId, config) {
109
+ if (!requestId) {
110
+ return { valid: true, errors: [] };
111
+ }
112
+ const cfg = resolveConfig(config);
113
+ if (requestId.length > cfg.maxRequestIdLength) {
114
+ return {
115
+ valid: false,
116
+ errors: [
117
+ `Request ID too long: ${requestId.length} > ${cfg.maxRequestIdLength}`,
118
+ ],
119
+ };
120
+ }
121
+ if (!cfg.requestIdPattern.test(requestId)) {
122
+ return {
123
+ valid: false,
124
+ errors: ["Request ID contains invalid characters"],
125
+ };
126
+ }
127
+ return { valid: true, errors: [] };
128
+ }
129
+ /**
130
+ * Validate transfer encoding to prevent request smuggling.
131
+ */
132
+ export function validateTransferEncoding(transferEncoding, contentLength, config) {
133
+ const cfg = resolveConfig(config);
134
+ if (!cfg.enableSmugglingProtection) {
135
+ return { valid: true, errors: [] };
136
+ }
137
+ if (transferEncoding && contentLength) {
138
+ return {
139
+ valid: false,
140
+ errors: ["Request contains both Transfer-Encoding and Content-Length"],
141
+ };
142
+ }
143
+ if (transferEncoding && !transferEncoding.toLowerCase().includes("chunked")) {
144
+ return {
145
+ valid: false,
146
+ errors: [`Unsupported Transfer-Encoding: "${transferEncoding}"`],
147
+ };
148
+ }
149
+ return { valid: true, errors: [] };
150
+ }
151
+ //# sourceMappingURL=httpSecurity.validator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpSecurity.validator.js","sourceRoot":"","sources":["../../src/httpSecurity/httpSecurity.validator.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAQnE,uCAAuC;AACvC,SAAS,aAAa,CACpB,MAAoC;IAEpC,OAAO,EAAE,GAAG,uBAAuB,EAAE,GAAG,MAAM,EAAE,CAAC;AACnD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAsD,EACtD,MAAoC;IAEpC,MAAM,GAAG,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,MAAM,GAAa,EAAE,CAAC;IAE5B,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACxC,IAAI,OAAO,CAAC,MAAM,GAAG,GAAG,CAAC,UAAU,EAAE,CAAC;QACpC,MAAM,CAAC,IAAI,CAAC,qBAAqB,OAAO,CAAC,MAAM,MAAM,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,OAAO,EAAE,CAAC;QACnC,IAAI,OAAO,K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wC,CAAC;SACnD,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AACrC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CACtC,gBAAoC,EACpC,aAAiC,EACjC,MAAoC;IAEpC,MAAM,GAAG,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IAClC,IAAI,CAAC,GAAG,CAAC,yBAAyB,EAAE,CAAC;QACnC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACrC,CAAC;IAED,IAAI,gBAAgB,IAAI,aAAa,EAAE,CAAC;QACtC,OAAO;YACL,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,CAAC,4DAA4D,CAAC;SACvE,CAAC;IACJ,CAAC;IAED,IAAI,gBAAgB,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QAC5E,OAAO;YACL,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,CAAC,mCAAmC,gBAAgB,GAAG,CAAC;SACjE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AACrC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @zudojs/http — Security module.
3
+ *
4
+ * Request validation, guard middleware, and security configuration
5
+ * for the HTTP layer. Enforces body limits, header validation,
6
+ * host validation, request smuggling protection, and request ID validation.
7
+ */
8
+ export type { HTTPSecurityConfig } from "./httpSecurity.config.js";
9
+ export { DEFAULT_SECURITY_CONFIG } from "./httpSecurity.config.js";
10
+ export type { SecurityValidationResult } from "./httpSecurity.validator.js";
11
+ export { validateHeaders, validateHost, validateUrl, validateQuery, validateContentLength, validateRequestId, validateTransferEncoding, } from "./httpSecurity.validator.js";
12
+ export type { GuardableRequest, GuardResult } from "./httpSecurity.guard.js";
13
+ export { guardRequest } from "./httpSecurity.guard.js";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/httpSecurity/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,YAAY,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,EACL,eAAe,EACf,YAAY,EACZ,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAErC,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @zudojs/http — Security module.
3
+ *
4
+ * Request validation, guard middleware, and security configuration
5
+ * for the HTTP layer. Enforces body limits, header validation,
6
+ * host validation, request smuggling protection, and request ID validation.
7
+ */
8
+ export { DEFAULT_SECURITY_CONFIG } from "./httpSecurity.config.js";
9
+ export { validateHeaders, validateHost, validateUrl, validateQuery, validateContentLength, validateRequestId, validateTransferEncoding, } from "./httpSecurity.validator.js";
10
+ export { guardRequest } from "./httpSecurity.guard.js";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/httpSecurity/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAInE,OAAO,EACL,eAAe,EACf,YAAY,EACZ,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAE,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GAAG,KAAK,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CACtC,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CACvC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC;AAE1E,eAAO,MAAM,qBAAqB;aAChC,GAAG,EAAE,yBAAyB;aAC9B,IAAI,EAAE,2BAA2B;aACjC,IAAI,EAAE,wBAAwB;aAC9B,GAAG,EAAE,iBAAiB;aACtB,GAAG,EAAE,kBAAkB;aACvB,EAAE,EAAE,iBAAiB;aACrB,EAAE,EAAE,oBAAoB;aACxB,IAAI,EAAE,8BAA8B;aACpC,IAAI,EAAE,4BAA4B;aAClC,IAAI,EAAE,8BAA8B;aACpC,KAAK,EAAE,mCAAmC;aAC1C,EAAE,EAAE,WAAW;CACP,CAAC;AAEX,eAAO,MAAM,uBAAuB,EAAE,mBACH,CAAC;AAEpC,eAAO,MAAM,8BAA8B,EAAG,SAAkB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpSecurityHeader.validation.d.ts","sourceRoot":"","sources":["../../../src/httpSecurityHeaders/core/httpSecurityHeader.validation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACxC;IAAE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CA6BjE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG;IAChD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,CAcA;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG;IAClD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,CAMA;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,GACZ,KAAK,IAAI,mBAAmB,CAa9B;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,MAAM,GACZ,KAAK,IAAI,yBAAyB,CAOpC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,MAAM,GACZ,KAAK,IAAI,uBAAuB,CASlC;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,MAAM,GACZ,KAAK,IAAI,yBAAyB,CAOpC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/httpSecurityHeaders/core/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpSecurity.headers.d.ts","sourceRoot":"","sources":["../../src/httpSecurityHeaders/httpSecurity.headers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpSecurityHeader.factory.d.ts","sourceRoot":"","sources":["../../src/httpSecurityHeaders/httpSecurityHeader.factory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EAChB,MAAM,mCAAmC,CAAC;AAoB3C;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,GAAE,sBAA2B,GACnC,eAAe,CAgFjB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpSecurityHeader.individual.d.ts","sourceRoot":"","sources":["../../src/httpSecurityHeaders/httpSecurityHeader.individual.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,GACrD,MAAM,CAaR;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,GAAE;IACP,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CACvB,GACL,MAAM,CAYR;AAED;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,GAAE,aAAsB,GAAG,MAAM,CAE1E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,GAAE,mBAAuD,GAC9D,MAAM,CAER;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAYzE;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,GAAE,yBAA0C,GACjD,MAAM,CAER;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,GAAE,uBAAuC,GAC9C,MAAM,CAER;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,GAAE,yBAAuC,GAC9C,MAAM,CAER;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CACjD,MAAM,GAAE,2BAAoC,GAC3C,MAAM,CAER"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpSecurityHeader.permissionsPolicy.d.ts","sourceRoot":"","sources":["../../src/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAYzE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,iBAAiB,CAoCnB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpSecurityHeader.recommended.d.ts","sourceRoot":"","sources":["../../src/httpSecurityHeaders/httpSecurityHeader.recommended.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIzE,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvD,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;IACzD,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,GAAE,iCAAsC,GAC9C,eAAe,CAajB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAY3E;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B,CAMA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @zudojs/http/httpSecurityHeaders
3
+ *
4
+ * HTTP httpSecurityHeaders module.
5
+ */
6
+ export * from "./httpSecurity.headers.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/httpSecurityHeaders/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @zudojs/http/httpSecurityHeaders
3
+ *
4
+ * HTTP httpSecurityHeaders module.
5
+ */
6
+ export * from "./httpSecurity.headers.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/httpSecurityHeaders/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Zudojs HTTP server core.
3
+ *
4
+ * @module httpServer/core
5
+ */
6
+ import type { HttpAdapter, HttpHandler, HttpErrorHandler } from "../../httpAdapter/http.adapter.js";
7
+ import type { HttpServerState, HttpServerAddress, HttpServerOptions, HttpServerEvents, HttpServerSnapshot } from "../types/httpServer.type.js";
8
+ export declare class HttpServer {
9
+ readonly name: string;
10
+ readonly adapter: HttpAdapter;
11
+ readonly metadata: Readonly<Record<string, unknown>>;
12
+ readonly gracefulShutdownTimeout: number;
13
+ private stateValue;
14
+ private addressValue;
15
+ private startedAtValue;
16
+ private stoppedAtValue;
17
+ private requestCount;
18
+ private readonly events;
19
+ private readonly configuredHandler;
20
+ private readonly configuredErrorHandler;
21
+ private startPromise;
22
+ private stopPromise;
23
+ constructor(options: HttpServerOptions);
24
+ get state(): HttpServerState;
25
+ get isRunning(): boolean;
26
+ get isStarting(): boolean;
27
+ get isStopping(): boolean;
28
+ get isStopped(): boolean;
29
+ get address(): HttpServerAddress | undefined;
30
+ get startedAt(): Date | undefined;
31
+ get stoppedAt(): Date | undefined;
32
+ get requests(): number;
33
+ get uptime(): number;
34
+ start(): Promise<this>;
35
+ stop(options?: {
36
+ readonly force?: boolean;
37
+ readonly timeout?: number;
38
+ }): Promise<this>;
39
+ restart(): Promise<this>;
40
+ close(): Promise<this>;
41
+ setHandler(handler: HttpHandler): this;
42
+ setErrorHandler(handler: HttpErrorHandler): this;
43
+ private adapterHandler;
44
+ private adapterErrorHandler;
45
+ recordRequest(): void;
46
+ recordResponse(): void;
47
+ resetRequestCount(): void;
48
+ on(event: keyof HttpServerEvents, listener: NonNullable<HttpServerEvents[keyof HttpServerEvents]>): () => void;
49
+ snapshot(): HttpServerSnapshot;
50
+ toJSON(): HttpServerSnapshot;
51
+ private performStart;
52
+ private performStop;
53
+ private refreshAddress;
54
+ }
55
+ //# sourceMappingURL=httpServer.core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpServer.core.d.ts","sourceRoot":"","sources":["../../../src/httpServer/core/httpServer.core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,KAAK,EACV,WAAW,EAEX,WAAW,EACX,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAcrC,qBAAa,UAAU;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,OAAO,E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B;IAEK,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAE3B;IAED,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAIrC;IAED,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAI/C;IAED,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,mBAAmB;IAU3B,aAAa,IAAI,IAAI,CAIpB;IAED,cAAc,IAAI,IAAI,CAErB;IAED,iBAAiB,IAAI,IAAI,CAExB;IAED,EAAE,CACA,KAAK,EAAE,MAAM,gBAAgB,EAC7B,QAAQ,EAAE,WAAW,CAAC,gBAAgB,CAAC,MAAM,gBAAgB,CAAC,CAAC,GAC9D,MAAM,IAAI,CAqBZ;IAED,QAAQ,IAAI,kBAAkB,CA0B7B;IAED,MAAM,IAAI,kBAAkB,CAE3B;YAEa,YAAY;YAIZ,WAAW;IAczB,OAAO,CAAC,cAAc;CASvB"}
@@ -0,0 +1,240 @@
1
+ /**
2
+ * Zudojs HTTP server core.
3
+ *
4
+ * @module httpServer/core
5
+ */
6
+ import { isHttpAdapter, startAdapter, stopAdapter, } from "../../httpAdapter/http.adapter.js";
7
+ import { HttpServerLifecycleError, InvalidHttpServerStateError, HttpServerStartError, HttpServerStopError, } from "@zudojs/errors";
8
+ import { withTimeout, validateShutdownTimeout, } from "../factory/httpServer.factory.js";
9
+ export class HttpServer {
10
+ name;
11
+ adapter;
12
+ metadata;
13
+ gracefulShutdownTimeout;
14
+ stateValue = "created";
15
+ addressValue;
16
+ startedAtValue;
17
+ stoppedAtValue;
18
+ requestCount = 0;
19
+ events;
20
+ configuredHandler;
21
+ configuredErrorHandler;
22
+ startPromise;
23
+ stopPromise;
24
+ constructor(options) {
25
+ if (!isHttpAdapter(options.adapter)) {
26
+ throw new TypeError("HttpServer requires a valid HTTP adapter.");
27
+ }
28
+ this.name = options.name ?? "zudojs-http";
29
+ this.adapter = options.adapter;
30
+ this.metadata = Object.freeze({
31
+ ...(options.metadata ?? {}),
32
+ });
33
+ this.gracefulShutdownTimeout = validateShutdownTimeout(options.gracefulShutdownTimeout ?? 30_000);
34
+ this.events = {};
35
+ this.configuredHandler = options.handler;
36
+ this.configuredErrorHandler = options.errorHandler;
37
+ if (options.handler) {
38
+ this.adapterHandler(options.handler);
39
+ }
40
+ if (options.errorHandler) {
41
+ this.adapterErrorHandler(options.errorHandler);
42
+ }
43
+ }
44
+ get state() {
45
+ return this.stateValue;
46
+ }
47
+ get isRunning() {
48
+ return this.stateValue === "running";
49
+ }
50
+ get isStarting() {
51
+ return this.stateValue === "starting";
52
+ }
53
+ get isStopping() {
54
+ return this.stateValue === "stopping";
55
+ }
56
+ get isStopped() {
57
+ return this.stateValue === "stopped" || this.stateValue === "created";
58
+ }
59
+ get address() {
60
+ return this.addressValue;
61
+ }
62
+ get startedAt() {
63
+ return this.startedAtValue;
64
+ }
65
+ get stoppedAt() {
66
+ return this.stoppedAtValue;
67
+ }
68
+ get requests() {
69
+ return this.requestCount;
70
+ }
71
+ get uptime() {
72
+ if (!this.startedAtValue) {
73
+ return 0;
74
+ }
75
+ const end = this.stoppedAtValue ?? new Date();
76
+ return Math.max(0, end.getTime() - this.startedAtValue.getTime());
77
+ }
78
+ async start() {
79
+ if (this.stateValue === "running") {
80
+ return this;
81
+ }
82
+ if (this.stateValue === "starting") {
83
+ await this.startPromise;
84
+ return this;
85
+ }
86
+ if (this.stateValue === "stopping") {
87
+ throw new InvalidHttpServerStateError(this.stateValue, "start");
88
+ }
89
+ this.stateValue = "starting";
90
+ this.events.onStarting?.(this);
91
+ this.startPromise = this.performStart();
92
+ try {
93
+ await this.startPromise;
94
+ this.stateValue = "running";
95
+ this.startedAtValue = new Date();
96
+ this.stoppedAtValue = undefined;
97
+ this.refreshAddress();
98
+ this.events.onStarted?.(this);
99
+ return this;
100
+ }
101
+ catch (error) {
102
+ this.stateValue = "failed";
103
+ const wrapped = error instanceof HttpServerStartError
104
+ ? error
105
+ : new HttpServerStartError("Failed to start the HTTP server.", error);
106
+ this.events.onError?.(wrapped, this);
107
+ throw wrapped;
108
+ }
109
+ finally {
110
+ this.startPromise = undefined;
111
+ }
112
+ }
113
+ async stop(options = {}) {
114
+ if (this.stateValue === "created" || this.stateValue === "stopped") {
115
+ return this;
116
+ }
117
+ if (this.stateValue === "stopping") {
118
+ await this.stopPromise;
119
+ return this;
120
+ }
121
+ if (this.stateValue === "starting") {
122
+ throw new InvalidHttpServerStateError(this.stateValue, "stop");
123
+ }
124
+ this.stateValue = "stopping";
125
+ this.events.onStopping?.(this);
126
+ const timeout = validateShutdownTimeout(options.timeout ?? this.gracefulShutdownTimeout);
127
+ this.stopPromise = this.performStop(options.force ?? false, timeout);
128
+ try {
129
+ await this.stopPromise;
130
+ this.stateValue = "stopped";
131
+ this.stoppedAtValue = new Date();
132
+ this.events.onStopped?.(this);
133
+ return this;
134
+ }
135
+ catch (error) {
136
+ this.stateValue = "failed";
137
+ const wrapped = error instanceof HttpServerStopError
138
+ ? error
139
+ : new HttpServerStopError("Failed to stop the HTTP server.", error);
140
+ this.events.onError?.(wrapped, this);
141
+ throw wrapped;
142
+ }
143
+ finally {
144
+ this.stopPromise = undefined;
145
+ }
146
+ }
147
+ async restart() {
148
+ if (this.stateValue === "running" || this.stateValue === "failed") {
149
+ await this.stop({
150
+ force: this.stateValue === "failed",
151
+ });
152
+ }
153
+ return this.start();
154
+ }
155
+ async close() {
156
+ return this.stop();
157
+ }
158
+ setHandler(handler) {
159
+ this.adapterHandler(handler);
160
+ return this;
161
+ }
162
+ setErrorHandler(handler) {
163
+ this.adapterErrorHandler(handler);
164
+ return this;
165
+ }
166
+ adapterHandler(handler) {
167
+ const adapter = this.adapter;
168
+ if ("handler" in adapter) {
169
+ adapter.handler = handler;
170
+ return;
171
+ }
172
+ }
173
+ adapterErrorHandler(handler) {
174
+ const adapter = this.adapter;
175
+ if ("errorHandler" in adapter) {
176
+ adapter.errorHandler = handler;
177
+ }
178
+ }
179
+ recordRequest() {
180
+ this.requestCount += 1;
181
+ this.events.onRequest?.(this);
182
+ }
183
+ recordResponse() {
184
+ this.events.onResponse?.(this);
185
+ }
186
+ resetRequestCount() {
187
+ this.requestCount = 0;
188
+ }
189
+ on(event, listener) {
190
+ const events = this.events;
191
+ const previous = events[event];
192
+ if (previous) {
193
+ throw new HttpServerLifecycleError(`A listener for "${String(event)}" is already registered.`, {
194
+ code: "HTTP_SERVER_EVENT_LISTENER_EXISTS",
195
+ });
196
+ }
197
+ events[event] = listener;
198
+ return () => {
199
+ if (events[event] === listener) {
200
+ events[event] = undefined;
201
+ }
202
+ };
203
+ }
204
+ snapshot() {
205
+ const address = this.addressValue;
206
+ const startedAt = this.startedAtValue;
207
+ const stoppedAt = this.stoppedAtValue;
208
+ return {
209
+ name: this.name,
210
+ state: this.stateValue,
211
+ adapter: this.adapter.name,
212
+ address: address === undefined ? undefined : { ...address },
213
+ startedAt: startedAt === undefined ? undefined : new Date(startedAt.getTime()),
214
+ stoppedAt: stoppedAt === undefined ? undefined : new Date(stoppedAt.getTime()),
215
+ uptime: this.uptime,
216
+ requests: this.requestCount,
217
+ metadata: Object.freeze({ ...this.metadata }),
218
+ };
219
+ }
220
+ toJSON() {
221
+ return this.snapshot();
222
+ }
223
+ async performStart() {
224
+ await startAdapter(this.adapter);
225
+ }
226
+ async performStop(force, timeout) {
227
+ if (force) {
228
+ await stopAdapter(this.adapter);
229
+ return;
230
+ }
231
+ await withTimeout(stopAdapter(this.adapter), timeout, "HTTP server shutdown timed out.");
232
+ }
233
+ refreshAddress() {
234
+ const adapter = this.adapter;
235
+ if (adapter.address) {
236
+ this.addressValue = adapter.address;
237
+ }
238
+ }
239
+ }
240
+ //# sourceMappingURL=httpServer.core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpServer.core.js","sourceRoot":"","sources":["../../../src/httpServer/core/httpServer.core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,aAAa,EACb,YAAY,EACZ,WAAW,GACZ,MAAM,mCAAmC,CAAC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CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;YAErE,MAAM,EAAE,IAAI,CAAC,MAAM;YAEnB,QAAQ,EAAE,IAAI,CAAC,YAAY;YAE3B,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;SAC9C,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IAEO,KAAK,CAAC,YAAY;QACxB,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,KAAc,EAAE,OAAe;QACvD,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEhC,OAAO;QACT,CAAC;QAED,MAAM,WAAW,CACf,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,EACzB,OAAO,EACP,iCAAiC,CAClC,CAAC;IACJ,CAAC;IAEO,cAAc;QACpB,MAAM,OAAO,GAAG,IAAI,CAAC,OAEpB,CAAC;QAEF,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;QACtC,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @zudojs/http/httpServer/core
3
+ *
4
+ * HTTP server core module.
5
+ */
6
+ export * from "./httpServer.core.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/httpServer/core/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @zudojs/http/httpServer/core
3
+ *
4
+ * HTTP server core module.
5
+ */
6
+ export * from "./httpServer.core.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/httpServer/core/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zudojs HTTP server factory and utilities.
3
+ *
4
+ * @module httpServer/factory
5
+ */
6
+ import { HttpServer } from "../core/httpServer.core.js";
7
+ import type { HttpServerState, HttpServerAddress } from "../types/httpServer.type.js";
8
+ export declare function createHttpServer(options: {
9
+ readonly name?: string;
10
+ readonly adapter: unknown;
11
+ readonly handler?: unknown;
12
+ readonly errorHandler?: unknown;
13
+ readonly gracefulShutdownTimeout?: number;
14
+ readonly metadata?: Readonly<Record<string, unknown>>;
15
+ }): HttpServer;
16
+ export declare function startServer(server: HttpServer): Promise<HttpServer>;
17
+ export declare function stopServer(server: HttpServer): Promise<HttpServer>;
18
+ export declare function restartServer(server: HttpServer): Promise<HttpServer>;
19
+ export declare function isHttpServer(value: unknown): value is HttpServer;
20
+ export declare function getServerState(server: HttpServer): HttpServerState;
21
+ export declare function getServerAddress(server: HttpServer): HttpServerAddress | undefined;
22
+ export declare function withTimeout<T>(promise: Promise<T>, timeout: number, message: string): Promise<T>;
23
+ export declare function validateShutdownTimeout(timeout: number): number;
24
+ //# sourceMappingURL=httpServer.factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpServer.factory.d.ts","sourceRoot":"","sources":["../../../src/httpServer/factory/httpServer.factory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AAErC,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IACxC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,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