@zudojs/http 0.1.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1070) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +15 -7
  3. package/dist/httpAdapter/fetch/httpFetch.helper.d.ts +19 -0
  4. package/dist/httpAdapter/fetch/httpFetch.helper.js +35 -0
  5. package/dist/httpAdapter/fetch/httpFetch.requestContext.d.ts +20 -0
  6. package/dist/httpAdapter/fetch/httpFetch.requestContext.js +72 -0
  7. package/dist/httpAdapter/fetch/httpFetch.responseWriter.d.ts +31 -0
  8. package/dist/httpAdapter/fetch/httpFetch.responseWriter.js +69 -0
  9. package/dist/httpAdapter/fetch/httpFetch.type.d.ts +30 -0
  10. package/dist/httpAdapter/fetch/httpFetch.type.js +7 -0
  11. package/dist/httpAdapter/fetch/index.d.ts +11 -0
  12. package/dist/httpAdapter/fetch/index.js +11 -0
  13. package/dist/httpAdapter/http.adapter.d.ts +20 -0
  14. package/dist/httpAdapter/http.adapter.js +23 -4
  15. package/dist/httpAdapter/http.adapters.d.ts +71 -0
  16. package/dist/httpAdapter/httpAdapter.errorResponse.d.ts +35 -0
  17. package/dist/httpAdapter/httpAdapter.errorResponse.js +120 -0
  18. package/dist/httpAdapter/httpFetch.adapter.d.ts +11 -0
  19. package/dist/httpAdapter/httpFetch.adapter.js +10 -0
  20. package/dist/httpAdapter/node/httpNode.adapter.d.ts +29 -0
  21. package/dist/httpAdapter/node/httpNode.adapter.js +161 -23
  22. package/dist/httpAdapter/node/httpNode.request.d.ts +33 -0
  23. package/dist/httpAdapter/node/httpNode.request.js +183 -0
  24. package/dist/httpAdapter/node/httpNode.response.d.ts +27 -0
  25. package/dist/httpAdapter/node/httpNode.response.js +93 -0
  26. package/dist/httpAdapter/node/httpNode.server.d.ts +18 -1
  27. package/dist/httpAdapter/node/httpNode.server.js +42 -3
  28. package/dist/httpAdapter/node/httpNode.type.d.ts +84 -0
  29. package/dist/httpAdapter/node/httpNode.type.js +44 -0
  30. package/dist/httpAgent/http.agent.d.ts +63 -0
  31. package/dist/httpAgent/http.agent.js +297 -0
  32. package/dist/httpBody/http.body.d.ts +31 -2
  33. package/dist/httpBody/http.body.js +77 -17
  34. package/dist/httpBody/httpBody.formData.d.ts +15 -0
  35. package/dist/httpBody/httpBody.formData.js +75 -163
  36. package/dist/httpBody/httpBody.parser.d.ts +12 -0
  37. package/dist/httpBody/httpBody.parser.js +44 -14
  38. package/dist/httpCacheControl/core/httpCacheControl.parse.d.ts +27 -0
  39. package/dist/httpCacheControl/core/httpCacheControl.parse.js +229 -0
  40. package/dist/httpCacheControl/core/httpCacheControl.type.d.ts +54 -0
  41. package/dist/httpCacheControl/core/httpCacheControl.type.js +8 -0
  42. package/dist/httpCacheControl/core/httpCacheControl.validation.d.ts +13 -0
  43. package/dist/httpCacheControl/core/httpCacheControl.validation.js +87 -0
  44. package/dist/httpCacheControl/core/index.d.ts +9 -0
  45. package/dist/httpCacheControl/core/index.js +9 -0
  46. package/dist/httpCacheControl/httpCacheControl.core.d.ts +13 -0
  47. package/dist/httpCacheControl/httpCacheControl.core.js +13 -0
  48. package/dist/httpCacheControl/httpCacheControl.factory.d.ts +35 -0
  49. package/dist/httpCacheControl/httpCacheControl.factory.js +53 -0
  50. package/dist/httpCacheControl/httpCacheControl.freshness.d.ts +36 -0
  51. package/dist/httpCacheControl/httpCacheControl.freshness.js +124 -0
  52. package/dist/httpCacheControl/httpCacheControl.requestHelper.d.ts +39 -0
  53. package/dist/httpCacheControl/httpCacheControl.requestHelper.js +56 -0
  54. package/dist/httpCacheControl/httpCacheControl.responseHelper.d.ts +40 -0
  55. package/dist/httpCacheControl/httpCacheControl.responseHelper.js +87 -0
  56. package/dist/httpClient/httpClient.abort.d.ts +7 -0
  57. package/dist/httpClient/httpClient.abort.js +34 -0
  58. package/dist/httpClient/httpClient.body.d.ts +8 -0
  59. package/dist/httpClient/httpClient.body.js +53 -0
  60. package/dist/httpClient/httpClient.client.d.ts +24 -0
  61. package/dist/httpClient/httpClient.client.js +84 -0
  62. package/dist/httpClient/httpClient.context.d.ts +8 -0
  63. package/dist/httpClient/httpClient.context.js +42 -0
  64. package/dist/httpClient/httpClient.errorNormalizer.d.ts +8 -0
  65. package/dist/httpClient/httpClient.errorNormalizer.js +32 -0
  66. package/dist/httpClient/httpClient.executor.d.ts +14 -0
  67. package/dist/httpClient/httpClient.executor.js +179 -0
  68. package/dist/httpClient/httpClient.factory.d.ts +10 -0
  69. package/dist/httpClient/httpClient.factory.js +13 -0
  70. package/dist/httpClient/httpClient.headers.d.ts +7 -0
  71. package/dist/httpClient/httpClient.headers.js +16 -0
  72. package/dist/httpClient/httpClient.helpers.d.ts +18 -0
  73. package/dist/httpClient/httpClient.helpers.js +59 -0
  74. package/dist/httpClient/httpClient.interceptors.d.ts +10 -0
  75. package/dist/httpClient/httpClient.interceptors.js +25 -0
  76. package/dist/httpClient/httpClient.methods.d.ts +15 -0
  77. package/dist/httpClient/httpClient.methods.js +27 -0
  78. package/dist/httpClient/httpClient.response.d.ts +8 -0
  79. package/dist/httpClient/httpClient.response.js +78 -0
  80. package/dist/httpClient/httpClient.retry.d.ts +1 -1
  81. package/dist/httpClient/httpClient.retry.js +36 -7
  82. package/dist/httpClient/httpClient.type.d.ts +88 -0
  83. package/dist/httpClient/httpClient.type.js +7 -0
  84. package/dist/httpClient/httpClient.typeGuards.d.ts +14 -0
  85. package/dist/httpClient/httpClient.typeGuards.js +23 -0
  86. package/dist/httpClient/httpClient.url.d.ts +9 -0
  87. package/dist/httpClient/httpClient.url.js +40 -0
  88. package/dist/httpCompression/http.compression.d.ts +71 -0
  89. package/dist/httpCompression/http.compression.js +334 -0
  90. package/dist/httpConditional/httpConditional.core.d.ts +141 -0
  91. package/dist/httpConditional/httpConditional.core.js +552 -0
  92. package/dist/httpConstants/http.constants.d.ts +38 -3
  93. package/dist/httpConstants/http.constants.js +49 -7
  94. package/dist/httpContentDisposition/httpContentDisposition.core.d.ts +87 -0
  95. package/dist/httpContentDisposition/httpContentDisposition.core.js +447 -0
  96. package/dist/httpContentType/httpContentType.boundary.d.ts +8 -0
  97. package/dist/httpContentType/httpContentType.boundary.js +26 -0
  98. package/dist/httpContentType/httpContentType.category.d.ts +9 -0
  99. package/dist/httpContentType/httpContentType.category.js +23 -0
  100. package/dist/httpContentType/httpContentType.categoryBinary.d.ts +9 -0
  101. package/dist/httpContentType/httpContentType.categoryBinary.js +30 -0
  102. package/dist/httpContentType/httpContentType.charset.d.ts +8 -0
  103. package/dist/httpContentType/httpContentType.charset.js +36 -0
  104. package/dist/httpContentType/httpContentType.constructors.d.ts +10 -0
  105. package/dist/httpContentType/httpContentType.constructors.js +37 -0
  106. package/dist/httpContentType/httpContentType.formatter.d.ts +7 -0
  107. package/dist/httpContentType/httpContentType.formatter.js +44 -0
  108. package/dist/httpContentType/httpContentType.matcher.d.ts +6 -0
  109. package/dist/httpContentType/httpContentType.matcher.js +53 -0
  110. package/dist/httpContentType/httpContentType.mediaTypes.d.ts +21 -0
  111. package/dist/httpContentType/httpContentType.mediaTypes.js +21 -0
  112. package/dist/httpContentType/httpContentType.normalizer.d.ts +7 -0
  113. package/dist/httpContentType/httpContentType.normalizer.js +29 -0
  114. package/dist/httpContentType/httpContentType.parameter.d.ts +7 -0
  115. package/dist/httpContentType/httpContentType.parameter.js +20 -0
  116. package/dist/httpContentType/httpContentType.parser.d.ts +6 -0
  117. package/dist/httpContentType/httpContentType.parser.js +44 -0
  118. package/dist/httpContentType/httpContentType.parserHelpers.d.ts +21 -0
  119. package/dist/httpContentType/httpContentType.parserHelpers.js +91 -0
  120. package/dist/httpContentType/httpContentType.type.d.ts +17 -0
  121. package/dist/httpContentType/httpContentType.type.js +5 -0
  122. package/dist/httpContext/http.context.js +31 -11
  123. package/dist/httpCookies/http.cookies.d.ts +92 -0
  124. package/dist/httpCookies/http.cookies.js +417 -0
  125. package/dist/httpCors/http.cors.d.ts +152 -0
  126. package/dist/httpCors/http.cors.js +480 -0
  127. package/dist/httpCsp/checks/httpCsp.checks.d.ts +9 -0
  128. package/dist/httpCsp/checks/httpCsp.checks.js +30 -0
  129. package/dist/httpCsp/checks/index.d.ts +5 -0
  130. package/dist/httpCsp/checks/index.js +5 -0
  131. package/dist/httpCsp/formatting/httpCsp.formatting.d.ts +7 -0
  132. package/dist/httpCsp/formatting/httpCsp.formatting.js +70 -0
  133. package/dist/httpCsp/formatting/index.d.ts +5 -0
  134. package/dist/httpCsp/formatting/index.js +5 -0
  135. package/dist/httpCsp/internal/httpCsp.internal.d.ts +19 -0
  136. package/dist/httpCsp/internal/httpCsp.internal.js +81 -0
  137. package/dist/httpCsp/internal/index.d.ts +5 -0
  138. package/dist/httpCsp/internal/index.js +5 -0
  139. package/dist/httpCsp/nonce/httpCsp.nonce.d.ts +18 -0
  140. package/dist/httpCsp/nonce/httpCsp.nonce.js +82 -0
  141. package/dist/httpCsp/nonce/index.d.ts +5 -0
  142. package/dist/httpCsp/nonce/index.js +5 -0
  143. package/dist/httpCsp/parsing/httpCsp.parsing.d.ts +9 -0
  144. package/dist/httpCsp/parsing/httpCsp.parsing.js +61 -0
  145. package/dist/httpCsp/parsing/index.d.ts +5 -0
  146. package/dist/httpCsp/parsing/index.js +5 -0
  147. package/dist/httpCsp/policies/httpCsp.policies.d.ts +17 -0
  148. package/dist/httpCsp/policies/httpCsp.policies.js +52 -0
  149. package/dist/httpCsp/policies/index.d.ts +5 -0
  150. package/dist/httpCsp/policies/index.js +5 -0
  151. package/dist/httpCsp/reportOnly/httpCsp.reportOnly.d.ts +7 -0
  152. package/dist/httpCsp/reportOnly/httpCsp.reportOnly.js +17 -0
  153. package/dist/httpCsp/reportOnly/index.d.ts +5 -0
  154. package/dist/httpCsp/reportOnly/index.js +5 -0
  155. package/dist/httpCsp/sources/httpCsp.sources.d.ts +10 -0
  156. package/dist/httpCsp/sources/httpCsp.sources.js +22 -0
  157. package/dist/httpCsp/sources/index.d.ts +5 -0
  158. package/dist/httpCsp/sources/index.js +5 -0
  159. package/dist/httpCsp/types/httpCsp.constant.d.ts +9 -0
  160. package/dist/httpCsp/types/httpCsp.constant.js +39 -0
  161. package/dist/httpCsp/types/httpCsp.type.d.ts +43 -0
  162. package/dist/httpCsp/types/httpCsp.type.js +5 -0
  163. package/dist/httpCsp/types/index.d.ts +7 -0
  164. package/dist/httpCsp/types/index.js +5 -0
  165. package/dist/httpCsp/validation/httpCsp.validate.d.ts +6 -0
  166. package/dist/httpCsp/validation/httpCsp.validate.js +23 -0
  167. package/dist/httpCsp/validation/httpCsp.validation.d.ts +6 -0
  168. package/dist/httpCsp/validation/httpCsp.validation.js +14 -0
  169. package/dist/httpCsp/validation/index.d.ts +6 -0
  170. package/dist/httpCsp/validation/index.js +6 -0
  171. package/dist/httpErrors/factories/httpError.clientError.d.ts +40 -0
  172. package/dist/httpErrors/factories/httpError.clientError.js +79 -0
  173. package/dist/httpErrors/factories/httpError.serverError.d.ts +28 -0
  174. package/dist/httpErrors/factories/httpError.serverError.js +52 -0
  175. package/dist/httpErrors/httpError.base.d.ts +0 -2
  176. package/dist/httpErrors/httpError.base.js +4 -2
  177. package/dist/httpErrors/httpError.helper.d.ts +19 -0
  178. package/dist/httpErrors/httpError.helper.js +20 -0
  179. package/dist/httpErrors/httpError.invalidJson.d.ts +20 -0
  180. package/dist/httpErrors/httpError.invalidJson.js +26 -0
  181. package/dist/httpErrors/httpError.typeGuard.d.ts +23 -0
  182. package/dist/httpErrors/httpError.typeGuard.js +35 -0
  183. package/dist/httpErrors/httpError.util.d.ts +22 -0
  184. package/dist/httpErrors/httpError.util.js +36 -0
  185. package/dist/httpHeaders/authorization/httpHeaders.authorization.d.ts +34 -0
  186. package/dist/httpHeaders/authorization/httpHeaders.authorization.js +53 -0
  187. package/dist/httpHeaders/authorization/index.d.ts +0 -1
  188. package/dist/httpHeaders/authorization/index.js +0 -1
  189. package/dist/httpHeaders/basic/httpHeaders.basic.d.ts +23 -0
  190. package/dist/httpHeaders/basic/httpHeaders.basic.js +29 -0
  191. package/dist/httpHeaders/basic/httpHeaders.basicMatch.d.ts +26 -0
  192. package/dist/httpHeaders/basic/httpHeaders.basicMatch.js +45 -0
  193. package/dist/httpHeaders/conversion/httpHeaders.conversion.d.ts +31 -0
  194. package/dist/httpHeaders/conversion/httpHeaders.conversion.js +103 -0
  195. package/dist/httpHeaders/conversion/httpHeaders.conversionObject.d.ts +21 -0
  196. package/dist/httpHeaders/conversion/httpHeaders.conversionObject.js +30 -0
  197. package/dist/httpHeaders/etag/httpHeaders.etag.d.ts +27 -0
  198. package/dist/httpHeaders/etag/httpHeaders.etag.js +44 -0
  199. package/dist/httpHeaders/etag/httpHeaders.etagMatch.d.ts +26 -0
  200. package/dist/httpHeaders/etag/httpHeaders.etagMatch.js +53 -0
  201. package/dist/httpHeaders/forwarded/httpHeaders.forwarded.d.ts +35 -0
  202. package/dist/httpHeaders/forwarded/httpHeaders.forwarded.js +39 -0
  203. package/dist/httpHeaders/forwarded/index.d.ts +0 -1
  204. package/dist/httpHeaders/forwarded/index.js +0 -1
  205. package/dist/httpHeaders/http.headers.d.ts +100 -0
  206. package/dist/httpHeaders/http.headers.js +324 -0
  207. package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.d.ts +13 -0
  208. package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.js +15 -0
  209. package/dist/httpHeaders/internal/index.d.ts +0 -5
  210. package/dist/httpHeaders/internal/index.js +0 -5
  211. package/dist/httpHeaders/list/httpHeaders.list.d.ts +32 -0
  212. package/dist/httpHeaders/list/httpHeaders.list.js +82 -0
  213. package/dist/httpHeaders/list/httpHeaders.listMutation.d.ts +25 -0
  214. package/dist/httpHeaders/list/httpHeaders.listMutation.js +40 -0
  215. package/dist/httpHeaders/security/httpHeaders.security.d.ts +87 -0
  216. package/dist/httpHeaders/security/httpHeaders.security.js +135 -0
  217. package/dist/httpHeaders/security/index.d.ts +0 -1
  218. package/dist/httpHeaders/security/index.js +0 -1
  219. package/dist/httpHeaders/types/httpHeaders.type.d.ts +19 -0
  220. package/dist/httpHeaders/types/httpHeaders.type.js +7 -0
  221. package/dist/httpHsts/http.hsts.d.ts +45 -0
  222. package/dist/httpHsts/http.hsts.js +224 -0
  223. package/dist/httpInterceptors/builtin/httpInterceptor.request.d.ts +70 -0
  224. package/dist/httpInterceptors/builtin/httpInterceptor.response.d.ts +33 -0
  225. package/dist/httpInterceptors/builtin/httpInterceptor.response.js +43 -0
  226. package/dist/httpInterceptors/builtin/index.d.ts +8 -0
  227. package/dist/httpInterceptors/builtin/index.js +8 -0
  228. package/dist/httpInterceptors/http.interceptors.d.ts +11 -0
  229. package/dist/httpInterceptors/http.interceptors.js +11 -0
  230. package/dist/httpInterceptors/httpInterceptor.helper.d.ts +27 -0
  231. package/dist/httpInterceptors/httpInterceptor.helper.js +53 -0
  232. package/dist/httpInterceptors/httpInterceptor.type.d.ts +48 -0
  233. package/dist/httpInterceptors/httpInterceptor.type.js +7 -0
  234. package/dist/httpInterceptors/manager/httpInterceptor.lookup.d.ts +11 -0
  235. package/dist/httpInterceptors/manager/httpInterceptor.lookup.js +62 -0
  236. package/dist/httpInterceptors/manager/httpInterceptor.manager.d.ts +24 -0
  237. package/dist/httpInterceptors/manager/httpInterceptor.manager.js +58 -0
  238. package/dist/httpInterceptors/manager/httpInterceptor.registration.d.ts +28 -0
  239. package/dist/httpInterceptors/manager/httpInterceptor.registration.js +119 -0
  240. package/dist/httpInterceptors/manager/httpInterceptor.snapshot.d.ts +12 -0
  241. package/dist/httpInterceptors/manager/httpInterceptor.snapshot.js +17 -0
  242. package/dist/httpInterceptors/manager/index.d.ts +10 -0
  243. package/dist/httpInterceptors/manager/index.js +10 -0
  244. package/dist/httpKeepAlive/httpKeepAlive.core.d.ts +63 -0
  245. package/dist/httpKeepAlive/httpKeepAlive.core.js +357 -0
  246. package/dist/httpMethods/http.methods.d.ts +72 -4
  247. package/dist/httpMethods/http.methods.js +97 -9
  248. package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.d.ts +10 -0
  249. package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.js +34 -0
  250. package/dist/httpMiddleware/builtin/compose/index.d.ts +7 -0
  251. package/dist/httpMiddleware/builtin/compose/index.js +7 -0
  252. package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.d.ts +14 -0
  253. package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.js +70 -0
  254. package/dist/httpMiddleware/builtin/conditional/index.d.ts +7 -0
  255. package/dist/httpMiddleware/builtin/conditional/index.js +7 -0
  256. package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.d.ts +28 -0
  257. package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.js +120 -0
  258. package/dist/httpMiddleware/builtin/cors/index.d.ts +7 -0
  259. package/dist/httpMiddleware/builtin/cors/index.js +7 -0
  260. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.d.ts +16 -0
  261. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.d.ts +16 -0
  262. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.js +23 -0
  263. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.response.d.ts +55 -0
  264. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.response.js +92 -0
  265. package/dist/httpMiddleware/builtin/helpers/index.d.ts +9 -0
  266. package/dist/httpMiddleware/builtin/helpers/index.js +9 -0
  267. package/dist/httpMiddleware/builtin/image/httpMiddleware.image.d.ts +26 -0
  268. package/dist/httpMiddleware/builtin/image/httpMiddleware.image.js +90 -0
  269. package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.d.ts +16 -0
  270. package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.js +42 -0
  271. package/dist/httpMiddleware/builtin/logging/index.d.ts +7 -0
  272. package/dist/httpMiddleware/builtin/logging/index.js +7 -0
  273. package/dist/httpMiddleware/builtin/security/httpMiddleware.security.d.ts +21 -0
  274. package/dist/httpMiddleware/builtin/security/httpMiddleware.security.js +50 -0
  275. package/dist/httpMiddleware/builtin/security/index.d.ts +7 -0
  276. package/dist/httpMiddleware/builtin/security/index.js +7 -0
  277. package/dist/httpMiddleware/builtin/static/httpMiddleware.static.d.ts +22 -0
  278. package/dist/httpMiddleware/builtin/static/httpMiddleware.static.js +210 -0
  279. package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.d.ts +8 -0
  280. package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.js +18 -0
  281. package/dist/httpMiddleware/builtin/timing/index.d.ts +7 -0
  282. package/dist/httpMiddleware/builtin/timing/index.js +7 -0
  283. package/dist/httpMiddleware/builtin/video/httpMiddleware.video.d.ts +26 -0
  284. package/dist/httpMiddleware/builtin/video/httpMiddleware.video.js +83 -0
  285. package/dist/httpMiddleware/httpMiddleware.state.d.ts +16 -0
  286. package/dist/httpMiddleware/httpMiddleware.state.js +30 -0
  287. package/dist/httpMiddleware/httpMiddleware.type.d.ts +54 -0
  288. package/dist/httpMiddleware/httpMiddleware.type.js +7 -0
  289. package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.d.ts +35 -0
  290. package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.js +87 -0
  291. package/dist/httpMiddleware/pipeline/httpPipeline.execution.d.ts +18 -0
  292. package/dist/httpMiddleware/pipeline/httpPipeline.execution.js +97 -0
  293. package/dist/httpMiddleware/pipeline/httpPipeline.helper.d.ts +36 -0
  294. package/dist/httpMiddleware/pipeline/httpPipeline.helper.js +114 -0
  295. package/dist/httpMiddleware/pipeline/httpPipeline.registration.d.ts +27 -0
  296. package/dist/httpMiddleware/pipeline/httpPipeline.registration.js +100 -0
  297. package/dist/httpMime/http.mime.d.ts +144 -0
  298. package/dist/httpMime/http.mime.js +481 -0
  299. package/dist/httpMultipart/http.multipart.d.ts +55 -0
  300. package/dist/httpMultipart/http.multipart.js +295 -99
  301. package/dist/httpNegotiation/httpNegotiation.core.d.ts +119 -0
  302. package/dist/httpNegotiation/httpNegotiation.core.js +519 -0
  303. package/dist/httpProtocol/http.protocol.d.ts +80 -0
  304. package/dist/httpProtocol/http.protocol.js +482 -0
  305. package/dist/httpProxy/http.proxy.d.ts +179 -0
  306. package/dist/httpProxy/http.proxy.js +540 -0
  307. package/dist/httpQuery/http.query.d.ts +110 -0
  308. package/dist/httpQuery/http.query.js +484 -0
  309. package/dist/httpQuery/index.d.ts +0 -1
  310. package/dist/httpQuery/index.js +0 -1
  311. package/dist/httpRange/http.range.d.ts +53 -0
  312. package/dist/httpRange/http.range.js +341 -0
  313. package/dist/httpRedirect/http.redirect.d.ts +140 -0
  314. package/dist/httpRedirect/http.redirect.js +442 -0
  315. package/dist/httpRequest/http.request.d.ts +71 -0
  316. package/dist/httpRequest/http.request.js +313 -0
  317. package/dist/httpRequest/httpRequest.context.constant.d.ts +8 -0
  318. package/dist/httpRequest/httpRequest.context.d.ts +122 -0
  319. package/dist/httpRequest/httpRequest.context.id.d.ts +8 -0
  320. package/dist/httpRequest/httpRequest.context.id.js +16 -0
  321. package/dist/httpRequest/httpRequest.context.type.d.ts +47 -0
  322. package/dist/httpRequest/httpRequest.context.type.js +8 -0
  323. package/dist/httpResponse/core/httpResponse.statusText.d.ts +10 -0
  324. package/dist/httpResponse/core/httpResponse.statusText.js +76 -0
  325. package/dist/httpResponse/core/httpResponse.type.d.ts +44 -0
  326. package/dist/httpResponse/core/httpResponse.type.js +8 -0
  327. package/dist/httpResponse/core/index.d.ts +8 -0
  328. package/dist/httpResponse/core/index.js +8 -0
  329. package/dist/httpResponse/http.response.d.ts +34 -0
  330. package/dist/httpResponse/http.response.js +204 -0
  331. package/dist/httpResponse/httpResponse.context.d.ts +70 -0
  332. package/dist/httpResponse/httpResponse.context.js +207 -0
  333. package/dist/httpResponse/httpResponse.fromWeb.d.ts +57 -0
  334. package/dist/httpResponse/httpResponse.fromWeb.js +114 -0
  335. package/dist/httpResponse/httpResponse.helper.d.ts +73 -0
  336. package/dist/httpResponse/httpResponse.helper.js +174 -0
  337. package/dist/httpResponse/httpResponse.writer.d.ts +8 -0
  338. package/dist/httpResponse/httpResponse.writer.js +43 -6
  339. package/dist/httpResponse/index.d.ts +1 -0
  340. package/dist/httpResponse/index.js +1 -0
  341. package/dist/httpRouter/core/error/httpRouter.error.d.ts +7 -0
  342. package/dist/httpRouter/core/error/httpRouter.error.js +7 -0
  343. package/dist/httpRouter/core/error/index.d.ts +7 -0
  344. package/dist/httpRouter/core/error/index.js +7 -0
  345. package/dist/httpRouter/core/factory/httpRoute.factory.base.d.ts +44 -0
  346. package/dist/httpRouter/core/factory/httpRoute.factory.base.js +186 -0
  347. package/dist/httpRouter/core/factory/httpRoute.factory.d.ts +36 -0
  348. package/dist/httpRouter/core/factory/httpRoute.factory.js +67 -0
  349. package/dist/httpRouter/core/factory/index.d.ts +8 -0
  350. package/dist/httpRouter/core/factory/index.js +8 -0
  351. package/dist/httpRouter/core/group/httpRouterGroup.core.d.ts +27 -0
  352. package/dist/httpRouter/core/group/httpRouterGroup.core.js +68 -0
  353. package/dist/httpRouter/core/group/index.d.ts +7 -0
  354. package/dist/httpRouter/core/group/index.js +7 -0
  355. package/dist/httpRouter/core/index.d.ts +13 -0
  356. package/dist/httpRouter/core/index.js +13 -0
  357. package/dist/httpRouter/core/register/httpRouter.register.d.ts +45 -0
  358. package/dist/httpRouter/core/register/httpRouter.register.js +309 -0
  359. package/dist/httpRouter/core/register/index.d.ts +7 -0
  360. package/dist/httpRouter/core/register/index.js +7 -0
  361. package/dist/httpRouter/core/registry/core/httpRegistry.helper.d.ts +34 -0
  362. package/dist/httpRouter/core/registry/core/httpRegistry.helper.js +69 -0
  363. package/dist/httpRouter/core/registry/core/httpRegistry.type.d.ts +33 -0
  364. package/dist/httpRouter/core/registry/core/httpRegistry.type.js +7 -0
  365. package/dist/httpRouter/core/registry/core/index.d.ts +8 -0
  366. package/dist/httpRouter/core/registry/core/index.js +8 -0
  367. package/dist/httpRouter/core/registry/httpRegistry.core.d.ts +23 -0
  368. package/dist/httpRouter/core/registry/httpRegistry.core.js +97 -0
  369. package/dist/httpRouter/core/registry/httpRegistry.factory.d.ts +25 -0
  370. package/dist/httpRouter/core/registry/httpRegistry.factory.js +32 -0
  371. package/dist/httpRouter/core/registry/httpRegistry.group.d.ts +23 -0
  372. package/dist/httpRouter/core/registry/httpRegistry.group.js +72 -0
  373. package/dist/httpRouter/core/registry/index.d.ts +16 -0
  374. package/dist/httpRouter/core/registry/index.js +15 -0
  375. package/dist/httpRouter/core/types/httpRouter.type.d.ts +109 -0
  376. package/dist/httpRouter/core/types/httpRouter.type.js +10 -0
  377. package/dist/httpRouter/core/types/index.d.ts +7 -0
  378. package/dist/httpRouter/core/types/index.js +7 -0
  379. package/dist/httpRouter/core/util/httpRoute.util.d.ts +26 -0
  380. package/dist/httpRouter/core/util/httpRoute.util.js +113 -0
  381. package/dist/httpRouter/core/util/index.d.ts +7 -0
  382. package/dist/httpRouter/core/util/index.js +7 -0
  383. package/dist/httpRouter/dispatch/httpRoute.dispatcher.d.ts +66 -0
  384. package/dist/httpRouter/dispatch/httpRoute.dispatcher.js +317 -0
  385. package/dist/httpRouter/dispatch/httpRoute.stack.d.ts +90 -0
  386. package/dist/httpRouter/dispatch/httpRoute.stack.js +301 -0
  387. package/dist/httpRouter/dispatch/index.d.ts +6 -0
  388. package/dist/httpRouter/dispatch/index.js +6 -0
  389. package/dist/httpRouter/httpRouter.context.d.ts +67 -0
  390. package/dist/httpRouter/httpRouter.context.js +239 -0
  391. package/dist/httpRouter/httpRouter.state.d.ts +18 -0
  392. package/dist/httpRouter/httpRouter.state.js +31 -0
  393. package/dist/httpRouter/index.d.ts +13 -0
  394. package/dist/httpRouter/index.js +13 -0
  395. package/dist/httpRouter/matching/httpRoute.matcher.core.d.ts +10 -0
  396. package/dist/httpRouter/matching/httpRoute.matcher.core.js +72 -0
  397. package/dist/httpRouter/matching/httpRoute.matcher.d.ts +63 -0
  398. package/dist/httpRouter/matching/httpRoute.matcher.js +274 -0
  399. package/dist/httpRouter/matching/index.d.ts +7 -0
  400. package/dist/httpRouter/matching/index.js +6 -0
  401. package/dist/httpRouter/pattern/core/httpPattern.compilation.d.ts +11 -0
  402. package/dist/httpRouter/pattern/core/httpPattern.compilation.js +44 -0
  403. package/dist/httpRouter/pattern/core/httpPattern.matching.d.ts +23 -0
  404. package/dist/httpRouter/pattern/core/httpPattern.matching.js +93 -0
  405. package/dist/httpRouter/pattern/core/httpPattern.regexBuilding.d.ts +11 -0
  406. package/dist/httpRouter/pattern/core/httpPattern.regexBuilding.js +49 -0
  407. package/dist/httpRouter/pattern/core/httpPattern.segmentParsing.d.ts +11 -0
  408. package/dist/httpRouter/pattern/core/httpPattern.segmentParsing.js +117 -0
  409. package/dist/httpRouter/pattern/core/httpPattern.type.d.ts +40 -0
  410. package/dist/httpRouter/pattern/core/httpPattern.type.js +8 -0
  411. package/dist/httpRouter/pattern/core/index.d.ts +11 -0
  412. package/dist/httpRouter/pattern/core/index.js +11 -0
  413. package/dist/httpRouter/pattern/httpPattern.factory.d.ts +19 -0
  414. package/dist/httpRouter/pattern/httpPattern.factory.js +25 -0
  415. package/dist/httpRouter/pattern/httpRoute.pattern.parse.d.ts +38 -0
  416. package/dist/httpRouter/pattern/httpRoute.pattern.parse.js +134 -0
  417. package/dist/httpRouter/pattern/index.d.ts +19 -0
  418. package/dist/httpRouter/pattern/index.js +17 -0
  419. package/dist/httpRouter/result/httpRoute.result.builder.d.ts +7 -0
  420. package/dist/httpRouter/result/httpRoute.result.builder.js +70 -0
  421. package/dist/httpRouter/result/httpRoute.result.class.d.ts +21 -0
  422. package/dist/httpRouter/result/httpRoute.result.class.js +33 -0
  423. package/dist/httpRouter/result/httpRoute.result.d.ts +17 -0
  424. package/dist/httpRouter/result/httpRoute.result.error.4xx.d.ts +14 -0
  425. package/dist/httpRouter/result/httpRoute.result.error.4xx.js +76 -0
  426. package/dist/httpRouter/result/httpRoute.result.error.5xx.d.ts +9 -0
  427. package/dist/httpRouter/result/httpRoute.result.error.5xx.js +32 -0
  428. package/dist/httpRouter/result/httpRoute.result.factory.d.ts +13 -0
  429. package/dist/httpRouter/result/httpRoute.result.factory.js +54 -0
  430. package/dist/httpRouter/result/httpRoute.result.guard.d.ts +9 -0
  431. package/dist/httpRouter/result/httpRoute.result.guard.js +33 -0
  432. package/dist/httpRouter/result/httpRoute.result.js +31 -0
  433. package/dist/httpRouter/result/httpRoute.result.normalize.d.ts +8 -0
  434. package/dist/httpRouter/result/httpRoute.result.normalize.js +73 -0
  435. package/dist/httpRouter/result/httpRoute.result.output.d.ts +7 -0
  436. package/dist/httpRouter/result/httpRoute.result.output.js +34 -0
  437. package/dist/httpRouter/result/httpRoute.result.serialize.d.ts +8 -0
  438. package/dist/httpRouter/result/httpRoute.result.serialize.js +61 -0
  439. package/dist/httpRouter/result/httpRoute.result.type.d.ts +41 -0
  440. package/dist/httpRouter/result/httpRoute.result.type.js +9 -0
  441. package/dist/httpRouter/result/httpRoute.result.util.d.ts +8 -0
  442. package/dist/httpRouter/result/httpRoute.result.util.js +52 -0
  443. package/dist/httpRouter/result/index.d.ts +6 -0
  444. package/dist/httpRouter/result/index.js +5 -0
  445. package/dist/httpRouter/tree/core/httpTree.helper.d.ts +31 -0
  446. package/dist/httpRouter/tree/core/httpTree.helper.js +80 -0
  447. package/dist/httpRouter/tree/core/httpTree.nodeCreation.d.ts +11 -0
  448. package/dist/httpRouter/tree/core/httpTree.nodeCreation.js +54 -0
  449. package/dist/httpRouter/tree/core/httpTree.traversal.d.ts +26 -0
  450. package/dist/httpRouter/tree/core/httpTree.traversal.js +73 -0
  451. package/dist/httpRouter/tree/core/httpTree.type.d.ts +52 -0
  452. package/dist/httpRouter/tree/core/httpTree.type.js +7 -0
  453. package/dist/httpRouter/tree/core/index.d.ts +10 -0
  454. package/dist/httpRouter/tree/core/index.js +10 -0
  455. package/dist/httpRouter/tree/httpTree.core.d.ts +21 -0
  456. package/dist/httpRouter/tree/httpTree.core.js +96 -0
  457. package/dist/httpRouter/tree/httpTree.factory.d.ts +12 -0
  458. package/dist/httpRouter/tree/httpTree.factory.js +13 -0
  459. package/dist/httpRouter/tree/index.d.ts +7 -0
  460. package/dist/httpRouter/tree/index.js +6 -0
  461. package/dist/httpSecurity/httpSecurity.config.d.ts +17 -11
  462. package/dist/httpSecurity/httpSecurity.config.js +9 -6
  463. package/dist/httpSecurity/httpSecurity.guard.d.ts +28 -0
  464. package/dist/httpSecurity/httpSecurity.guard.js +40 -0
  465. package/dist/httpSecurity/index.d.ts +1 -1
  466. package/dist/httpSecurity/index.js +1 -1
  467. package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.d.ts +56 -0
  468. package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.js +20 -0
  469. package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.d.ts +44 -0
  470. package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.js +111 -0
  471. package/dist/httpSecurityHeaders/core/index.d.ts +8 -0
  472. package/dist/httpSecurityHeaders/core/index.js +8 -0
  473. package/dist/httpSecurityHeaders/httpSecurity.headers.d.ts +12 -0
  474. package/dist/httpSecurityHeaders/httpSecurity.headers.js +12 -0
  475. package/dist/httpSecurityHeaders/httpSecurityHeader.factory.d.ts +11 -0
  476. package/dist/httpSecurityHeaders/httpSecurityHeader.factory.js +71 -0
  477. package/dist/httpSecurityHeaders/httpSecurityHeader.individual.d.ts +65 -0
  478. package/dist/httpSecurityHeaders/httpSecurityHeader.individual.js +123 -0
  479. package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.d.ts +15 -0
  480. package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.js +59 -0
  481. package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.d.ts +65 -0
  482. package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.js +120 -0
  483. package/dist/httpServer/core/httpServer.core.d.ts +15 -3
  484. package/dist/httpServer/core/httpServer.core.js +80 -25
  485. package/dist/httpServer/types/httpServer.type.d.ts +17 -2
  486. package/dist/httpStatus/httpStatus.categoryPredicate.d.ts +12 -0
  487. package/dist/httpStatus/httpStatus.categoryPredicate.js +24 -0
  488. package/dist/httpStatus/httpStatus.clientErrorConstant.d.ts +43 -0
  489. package/dist/httpStatus/httpStatus.clientErrorConstant.js +43 -0
  490. package/dist/httpStatus/httpStatus.clientErrorTextConstant.d.ts +35 -0
  491. package/dist/httpStatus/httpStatus.clientErrorTextConstant.js +35 -0
  492. package/dist/httpStatus/httpStatus.collection.d.ts +11 -0
  493. package/dist/httpStatus/httpStatus.collection.js +22 -0
  494. package/dist/httpStatus/httpStatus.commonPredicate.d.ts +8 -0
  495. package/dist/httpStatus/httpStatus.commonPredicate.js +8 -0
  496. package/dist/httpStatus/httpStatus.constant.d.ts +8 -0
  497. package/dist/httpStatus/httpStatus.constant.js +8 -0
  498. package/dist/httpStatus/httpStatus.errorPredicate.d.ts +21 -0
  499. package/dist/httpStatus/httpStatus.errorPredicate.js +52 -0
  500. package/dist/httpStatus/httpStatus.info.d.ts +24 -0
  501. package/dist/httpStatus/httpStatus.info.js +31 -0
  502. package/dist/httpStatus/httpStatus.informationalSuccessConstant.d.ts +24 -0
  503. package/dist/httpStatus/httpStatus.informationalSuccessConstant.js +24 -0
  504. package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.d.ts +24 -0
  505. package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.js +24 -0
  506. package/dist/httpStatus/httpStatus.lookup.d.ts +9 -0
  507. package/dist/httpStatus/httpStatus.lookup.js +28 -0
  508. package/dist/httpStatus/httpStatus.name.d.ts +8 -0
  509. package/dist/httpStatus/httpStatus.name.js +16 -0
  510. package/dist/httpStatus/httpStatus.predicate.d.ts +9 -0
  511. package/dist/httpStatus/httpStatus.predicate.js +9 -0
  512. package/dist/httpStatus/httpStatus.redirectErrorConstant.d.ts +9 -0
  513. package/dist/httpStatus/httpStatus.redirectErrorConstant.js +9 -0
  514. package/dist/httpStatus/httpStatus.redirectErrorTextConstant.d.ts +9 -0
  515. package/dist/httpStatus/httpStatus.redirectErrorTextConstant.js +9 -0
  516. package/dist/httpStatus/httpStatus.redirectPredicate.d.ts +10 -0
  517. package/dist/httpStatus/httpStatus.redirectPredicate.js +25 -0
  518. package/dist/httpStatus/httpStatus.redirectionConstant.d.ts +14 -0
  519. package/dist/httpStatus/httpStatus.redirectionConstant.js +14 -0
  520. package/dist/httpStatus/httpStatus.redirectionTextConstant.d.ts +14 -0
  521. package/dist/httpStatus/httpStatus.redirectionTextConstant.js +14 -0
  522. package/dist/httpStatus/httpStatus.semantics.d.ts +20 -0
  523. package/dist/httpStatus/httpStatus.semantics.js +49 -0
  524. package/dist/httpStatus/httpStatus.serverErrorConstant.d.ts +17 -0
  525. package/dist/httpStatus/httpStatus.serverErrorConstant.js +17 -0
  526. package/dist/httpStatus/httpStatus.serverErrorTextConstant.d.ts +17 -0
  527. package/dist/httpStatus/httpStatus.serverErrorTextConstant.js +17 -0
  528. package/dist/httpStatus/httpStatus.statusConstant.d.ts +74 -0
  529. package/dist/httpStatus/httpStatus.statusConstant.js +17 -0
  530. package/dist/httpStatus/httpStatus.statusTextConstant.d.ts +72 -0
  531. package/dist/httpStatus/httpStatus.statusTextConstant.js +17 -0
  532. package/dist/httpStatus/httpStatus.type.d.ts +15 -0
  533. package/dist/httpStatus/httpStatus.type.js +9 -0
  534. package/dist/httpStatus/httpStatus.validator.d.ts +8 -0
  535. package/dist/httpStatus/httpStatus.validator.js +17 -0
  536. package/dist/httpStatus/httpStatusCodes.constant.d.ts +239 -0
  537. package/dist/httpStatus/httpStatusCodes.constant.js +232 -0
  538. package/dist/httpStream/httpStream.backpressure.d.ts +9 -0
  539. package/dist/httpStream/httpStream.backpressure.js +44 -9
  540. package/dist/httpStream/httpStream.consume.d.ts +8 -0
  541. package/dist/httpStream/httpStream.consume.js +31 -3
  542. package/dist/httpStream/httpStream.error.d.ts +11 -0
  543. package/dist/httpStream/httpStream.error.js +17 -1
  544. package/dist/httpStream/httpStream.eventHelper.d.ts +0 -2
  545. package/dist/httpStream/httpStream.eventHelper.js +0 -24
  546. package/dist/httpStream/httpStream.helper.d.ts +13 -0
  547. package/dist/httpStream/httpStream.helper.js +18 -2
  548. package/dist/httpStream/httpStream.pipe.js +15 -4
  549. package/dist/httpStream/httpStream.progress.js +42 -8
  550. package/dist/httpStream/httpStream.transform.d.ts +3 -3
  551. package/dist/httpStream/httpStream.types.d.ts +20 -1
  552. package/dist/httpTrustProxy/httpTrustProxy.compilation.d.ts +32 -0
  553. package/dist/httpTrustProxy/httpTrustProxy.compilation.js +119 -0
  554. package/dist/httpTrustProxy/httpTrustProxy.core.d.ts +14 -0
  555. package/dist/httpTrustProxy/httpTrustProxy.core.js +14 -0
  556. package/dist/httpTrustProxy/httpTrustProxy.helper.d.ts +73 -0
  557. package/dist/httpTrustProxy/httpTrustProxy.helper.js +226 -0
  558. package/dist/httpTrustProxy/httpTrustProxy.ip.d.ts +49 -0
  559. package/dist/httpTrustProxy/httpTrustProxy.ip.js +238 -0
  560. package/dist/httpTrustProxy/httpTrustProxy.parsing.d.ts +32 -0
  561. package/dist/httpTrustProxy/httpTrustProxy.parsing.js +133 -0
  562. package/dist/httpTrustProxy/httpTrustProxy.type.d.ts +41 -0
  563. package/dist/httpTrustProxy/httpTrustProxy.type.js +12 -0
  564. package/dist/httpUrl/http.url.d.ts +143 -0
  565. package/dist/httpUrl/http.url.js +712 -0
  566. package/dist/httpValidation/httpValidationAssertion.d.ts +9 -0
  567. package/dist/httpValidation/httpValidationAssertion.js +26 -0
  568. package/dist/httpValidation/httpValidationAuthority.d.ts +8 -0
  569. package/dist/httpValidation/httpValidationAuthority.js +43 -0
  570. package/dist/httpValidation/httpValidationAuthorization.d.ts +7 -0
  571. package/dist/httpValidation/httpValidationAuthorization.js +22 -0
  572. package/dist/httpValidation/httpValidationCacheControl.d.ts +7 -0
  573. package/dist/httpValidation/httpValidationCacheControl.js +26 -0
  574. package/dist/httpValidation/httpValidationContentLength.d.ts +9 -0
  575. package/dist/httpValidation/httpValidationContentLength.js +25 -0
  576. package/dist/httpValidation/httpValidationContentType.d.ts +9 -0
  577. package/dist/httpValidation/httpValidationContentType.js +32 -0
  578. package/dist/httpValidation/httpValidationCookie.d.ts +8 -0
  579. package/dist/httpValidation/httpValidationCookie.js +19 -0
  580. package/dist/httpValidation/httpValidationDate.d.ts +7 -0
  581. package/dist/httpValidation/httpValidationDate.js +13 -0
  582. package/dist/httpValidation/httpValidationETag.d.ts +7 -0
  583. package/dist/httpValidation/httpValidationETag.js +16 -0
  584. package/dist/httpValidation/httpValidationHeader.d.ts +16 -0
  585. package/dist/httpValidation/httpValidationHeader.js +77 -0
  586. package/dist/httpValidation/httpValidationHostname.d.ts +7 -0
  587. package/dist/httpValidation/httpValidationHostname.js +27 -0
  588. package/dist/httpValidation/httpValidationMessage.d.ts +13 -0
  589. package/dist/httpValidation/httpValidationMessage.js +45 -0
  590. package/dist/httpValidation/httpValidationMethod.d.ts +9 -0
  591. package/dist/httpValidation/httpValidationMethod.js +25 -0
  592. package/dist/httpValidation/httpValidationPort.d.ts +9 -0
  593. package/dist/httpValidation/httpValidationPort.js +25 -0
  594. package/dist/httpValidation/httpValidationRange.d.ts +7 -0
  595. package/dist/httpValidation/httpValidationRange.js +41 -0
  596. package/dist/httpValidation/httpValidationRequestTarget.d.ts +10 -0
  597. package/dist/httpValidation/httpValidationRequestTarget.js +48 -0
  598. package/dist/httpValidation/httpValidationStatusCode.d.ts +9 -0
  599. package/dist/httpValidation/httpValidationStatusCode.js +25 -0
  600. package/dist/httpValidation/httpValidationToken.d.ts +10 -0
  601. package/dist/httpValidation/httpValidationToken.js +25 -0
  602. package/dist/httpValidation/httpValidationTypes.type.d.ts +15 -0
  603. package/dist/httpValidation/httpValidationTypes.type.js +7 -0
  604. package/dist/httpValidation/httpValidationUrl.d.ts +11 -0
  605. package/dist/httpValidation/httpValidationUrl.js +62 -0
  606. package/dist/index.d.ts +84 -0
  607. package/dist/index.js +83 -0
  608. package/package.json +27 -16
  609. package/dist/httpAdapter/fetch/httpFetch.body.d.ts.map +0 -1
  610. package/dist/httpAdapter/fetch/httpFetch.body.js.map +0 -1
  611. package/dist/httpAdapter/fetch/httpFetch.helper.d.ts.map +0 -1
  612. package/dist/httpAdapter/fetch/httpFetch.requestContext.d.ts.map +0 -1
  613. package/dist/httpAdapter/fetch/httpFetch.responseWriter.d.ts.map +0 -1
  614. package/dist/httpAdapter/fetch/httpFetch.type.d.ts.map +0 -1
  615. package/dist/httpAdapter/fetch/index.d.ts.map +0 -1
  616. package/dist/httpAdapter/http.adapter.d.ts.map +0 -1
  617. package/dist/httpAdapter/http.adapter.js.map +0 -1
  618. package/dist/httpAdapter/http.adapters.d.ts.map +0 -1
  619. package/dist/httpAdapter/http.adapters.js.map +0 -1
  620. package/dist/httpAdapter/httpFetch.adapter.d.ts.map +0 -1
  621. package/dist/httpAdapter/index.d.ts.map +0 -1
  622. package/dist/httpAdapter/index.js.map +0 -1
  623. package/dist/httpAdapter/node/httpNode.adapter.d.ts.map +0 -1
  624. package/dist/httpAdapter/node/httpNode.adapter.js.map +0 -1
  625. package/dist/httpAdapter/node/httpNode.request.d.ts.map +0 -1
  626. package/dist/httpAdapter/node/httpNode.response.d.ts.map +0 -1
  627. package/dist/httpAdapter/node/httpNode.server.d.ts.map +0 -1
  628. package/dist/httpAdapter/node/httpNode.server.js.map +0 -1
  629. package/dist/httpAdapter/node/httpNode.type.d.ts.map +0 -1
  630. package/dist/httpAdapter/node/index.d.ts.map +0 -1
  631. package/dist/httpAdapter/node/index.js.map +0 -1
  632. package/dist/httpAgent/http.agent.d.ts.map +0 -1
  633. package/dist/httpAgent/index.d.ts.map +0 -1
  634. package/dist/httpAgent/index.js.map +0 -1
  635. package/dist/httpBody/http.body.d.ts.map +0 -1
  636. package/dist/httpBody/http.body.js.map +0 -1
  637. package/dist/httpBody/httpBody.formData.d.ts.map +0 -1
  638. package/dist/httpBody/httpBody.formData.js.map +0 -1
  639. package/dist/httpBody/httpBody.parser.d.ts.map +0 -1
  640. package/dist/httpBody/httpBody.parser.js.map +0 -1
  641. package/dist/httpBody/index.d.ts.map +0 -1
  642. package/dist/httpBody/index.js.map +0 -1
  643. package/dist/httpCacheControl/core/httpCacheControl.parse.d.ts.map +0 -1
  644. package/dist/httpCacheControl/core/httpCacheControl.type.d.ts.map +0 -1
  645. package/dist/httpCacheControl/core/httpCacheControl.validation.d.ts.map +0 -1
  646. package/dist/httpCacheControl/core/index.d.ts.map +0 -1
  647. package/dist/httpCacheControl/httpCacheControl.core.d.ts.map +0 -1
  648. package/dist/httpCacheControl/httpCacheControl.factory.d.ts.map +0 -1
  649. package/dist/httpCacheControl/httpCacheControl.freshness.d.ts.map +0 -1
  650. package/dist/httpCacheControl/httpCacheControl.requestHelper.d.ts.map +0 -1
  651. package/dist/httpCacheControl/httpCacheControl.responseHelper.d.ts.map +0 -1
  652. package/dist/httpCacheControl/index.d.ts.map +0 -1
  653. package/dist/httpCacheControl/index.js.map +0 -1
  654. package/dist/httpClient/httpClient.abort.d.ts.map +0 -1
  655. package/dist/httpClient/httpClient.body.d.ts.map +0 -1
  656. package/dist/httpClient/httpClient.client.d.ts.map +0 -1
  657. package/dist/httpClient/httpClient.context.d.ts.map +0 -1
  658. package/dist/httpClient/httpClient.error.d.ts.map +0 -1
  659. package/dist/httpClient/httpClient.error.js.map +0 -1
  660. package/dist/httpClient/httpClient.errorNormalizer.d.ts.map +0 -1
  661. package/dist/httpClient/httpClient.executor.d.ts.map +0 -1
  662. package/dist/httpClient/httpClient.factory.d.ts.map +0 -1
  663. package/dist/httpClient/httpClient.headers.d.ts.map +0 -1
  664. package/dist/httpClient/httpClient.helpers.d.ts.map +0 -1
  665. package/dist/httpClient/httpClient.interceptors.d.ts.map +0 -1
  666. package/dist/httpClient/httpClient.methods.d.ts.map +0 -1
  667. package/dist/httpClient/httpClient.response.d.ts.map +0 -1
  668. package/dist/httpClient/httpClient.retry.d.ts.map +0 -1
  669. package/dist/httpClient/httpClient.retry.js.map +0 -1
  670. package/dist/httpClient/httpClient.type.d.ts.map +0 -1
  671. package/dist/httpClient/httpClient.typeGuards.d.ts.map +0 -1
  672. package/dist/httpClient/httpClient.url.d.ts.map +0 -1
  673. package/dist/httpClient/index.d.ts.map +0 -1
  674. package/dist/httpClient/index.js.map +0 -1
  675. package/dist/httpCompression/http.compression.d.ts.map +0 -1
  676. package/dist/httpCompression/index.d.ts.map +0 -1
  677. package/dist/httpCompression/index.js.map +0 -1
  678. package/dist/httpConditional/httpConditional.core.d.ts.map +0 -1
  679. package/dist/httpConditional/index.d.ts.map +0 -1
  680. package/dist/httpConditional/index.js.map +0 -1
  681. package/dist/httpConstants/http.constants.d.ts.map +0 -1
  682. package/dist/httpConstants/http.constants.js.map +0 -1
  683. package/dist/httpConstants/index.d.ts.map +0 -1
  684. package/dist/httpConstants/index.js.map +0 -1
  685. package/dist/httpContentDisposition/httpContentDisposition.core.d.ts.map +0 -1
  686. package/dist/httpContentDisposition/index.d.ts.map +0 -1
  687. package/dist/httpContentDisposition/index.js.map +0 -1
  688. package/dist/httpContentType/httpContentType.boundary.d.ts.map +0 -1
  689. package/dist/httpContentType/httpContentType.category.d.ts.map +0 -1
  690. package/dist/httpContentType/httpContentType.categoryBinary.d.ts.map +0 -1
  691. package/dist/httpContentType/httpContentType.charset.d.ts.map +0 -1
  692. package/dist/httpContentType/httpContentType.constructors.d.ts.map +0 -1
  693. package/dist/httpContentType/httpContentType.formatter.d.ts.map +0 -1
  694. package/dist/httpContentType/httpContentType.matcher.d.ts.map +0 -1
  695. package/dist/httpContentType/httpContentType.mediaTypes.d.ts.map +0 -1
  696. package/dist/httpContentType/httpContentType.normalizer.d.ts.map +0 -1
  697. package/dist/httpContentType/httpContentType.parameter.d.ts.map +0 -1
  698. package/dist/httpContentType/httpContentType.parser.d.ts.map +0 -1
  699. package/dist/httpContentType/httpContentType.parserHelpers.d.ts.map +0 -1
  700. package/dist/httpContentType/httpContentType.type.d.ts.map +0 -1
  701. package/dist/httpContentType/index.d.ts.map +0 -1
  702. package/dist/httpContentType/index.js.map +0 -1
  703. package/dist/httpContext/http.context.d.ts.map +0 -1
  704. package/dist/httpContext/http.context.js.map +0 -1
  705. package/dist/httpContext/index.d.ts.map +0 -1
  706. package/dist/httpContext/index.js.map +0 -1
  707. package/dist/httpCookies/http.cookies.d.ts.map +0 -1
  708. package/dist/httpCookies/index.d.ts.map +0 -1
  709. package/dist/httpCookies/index.js.map +0 -1
  710. package/dist/httpCors/http.cors.d.ts.map +0 -1
  711. package/dist/httpCors/index.d.ts.map +0 -1
  712. package/dist/httpCors/index.js.map +0 -1
  713. package/dist/httpCsp/checks/httpCsp.checks.d.ts.map +0 -1
  714. package/dist/httpCsp/checks/index.d.ts.map +0 -1
  715. package/dist/httpCsp/formatting/httpCsp.formatting.d.ts.map +0 -1
  716. package/dist/httpCsp/formatting/index.d.ts.map +0 -1
  717. package/dist/httpCsp/index.d.ts.map +0 -1
  718. package/dist/httpCsp/index.js.map +0 -1
  719. package/dist/httpCsp/internal/httpCsp.internal.d.ts.map +0 -1
  720. package/dist/httpCsp/internal/index.d.ts.map +0 -1
  721. package/dist/httpCsp/nonce/httpCsp.nonce.d.ts.map +0 -1
  722. package/dist/httpCsp/nonce/index.d.ts.map +0 -1
  723. package/dist/httpCsp/parsing/httpCsp.parsing.d.ts.map +0 -1
  724. package/dist/httpCsp/parsing/index.d.ts.map +0 -1
  725. package/dist/httpCsp/policies/httpCsp.policies.d.ts.map +0 -1
  726. package/dist/httpCsp/policies/index.d.ts.map +0 -1
  727. package/dist/httpCsp/reportOnly/httpCsp.reportOnly.d.ts.map +0 -1
  728. package/dist/httpCsp/reportOnly/index.d.ts.map +0 -1
  729. package/dist/httpCsp/sources/httpCsp.sources.d.ts.map +0 -1
  730. package/dist/httpCsp/sources/index.d.ts.map +0 -1
  731. package/dist/httpCsp/types/httpCsp.constant.d.ts.map +0 -1
  732. package/dist/httpCsp/types/httpCsp.type.d.ts.map +0 -1
  733. package/dist/httpCsp/types/index.d.ts.map +0 -1
  734. package/dist/httpCsp/validation/httpCsp.validate.d.ts.map +0 -1
  735. package/dist/httpCsp/validation/httpCsp.validation.d.ts.map +0 -1
  736. package/dist/httpCsp/validation/index.d.ts.map +0 -1
  737. package/dist/httpErrors/factories/httpError.clientError.d.ts.map +0 -1
  738. package/dist/httpErrors/factories/httpError.serverError.d.ts.map +0 -1
  739. package/dist/httpErrors/httpError.base.d.ts.map +0 -1
  740. package/dist/httpErrors/httpError.base.js.map +0 -1
  741. package/dist/httpErrors/httpError.helper.d.ts.map +0 -1
  742. package/dist/httpErrors/httpError.invalidJson.d.ts.map +0 -1
  743. package/dist/httpErrors/httpError.type.d.ts.map +0 -1
  744. package/dist/httpErrors/httpError.type.js.map +0 -1
  745. package/dist/httpErrors/httpError.typeGuard.d.ts.map +0 -1
  746. package/dist/httpErrors/index.d.ts.map +0 -1
  747. package/dist/httpErrors/index.js.map +0 -1
  748. package/dist/httpFormData/index.d.ts.map +0 -1
  749. package/dist/httpFormData/index.js.map +0 -1
  750. package/dist/httpHeaders/authorization/httpHeaders.authorization.d.ts.map +0 -1
  751. package/dist/httpHeaders/authorization/index.d.ts.map +0 -1
  752. package/dist/httpHeaders/authorization/index.js.map +0 -1
  753. package/dist/httpHeaders/basic/httpHeaders.basic.d.ts.map +0 -1
  754. package/dist/httpHeaders/basic/httpHeaders.basicMatch.d.ts.map +0 -1
  755. package/dist/httpHeaders/basic/index.d.ts.map +0 -1
  756. package/dist/httpHeaders/basic/index.js.map +0 -1
  757. package/dist/httpHeaders/cacheControl/httpHeaders.cacheControl.d.ts.map +0 -1
  758. package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlBuilder.d.ts.map +0 -1
  759. package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlParse.d.ts.map +0 -1
  760. package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlTokens.d.ts.map +0 -1
  761. package/dist/httpHeaders/cacheControl/index.d.ts +0 -10
  762. package/dist/httpHeaders/cacheControl/index.d.ts.map +0 -1
  763. package/dist/httpHeaders/cacheControl/index.js +0 -10
  764. package/dist/httpHeaders/cacheControl/index.js.map +0 -1
  765. package/dist/httpHeaders/conversion/httpHeaders.conversion.d.ts.map +0 -1
  766. package/dist/httpHeaders/conversion/httpHeaders.conversionObject.d.ts.map +0 -1
  767. package/dist/httpHeaders/conversion/index.d.ts.map +0 -1
  768. package/dist/httpHeaders/conversion/index.js.map +0 -1
  769. package/dist/httpHeaders/date/httpHeaders.date.d.ts.map +0 -1
  770. package/dist/httpHeaders/date/index.d.ts +0 -8
  771. package/dist/httpHeaders/date/index.d.ts.map +0 -1
  772. package/dist/httpHeaders/date/index.js +0 -8
  773. package/dist/httpHeaders/date/index.js.map +0 -1
  774. package/dist/httpHeaders/etag/httpHeaders.etag.d.ts.map +0 -1
  775. package/dist/httpHeaders/etag/httpHeaders.etagMatch.d.ts.map +0 -1
  776. package/dist/httpHeaders/etag/index.d.ts.map +0 -1
  777. package/dist/httpHeaders/etag/index.js.map +0 -1
  778. package/dist/httpHeaders/forwarded/httpHeaders.forwarded.d.ts.map +0 -1
  779. package/dist/httpHeaders/forwarded/index.d.ts.map +0 -1
  780. package/dist/httpHeaders/forwarded/index.js.map +0 -1
  781. package/dist/httpHeaders/http.headers.d.ts.map +0 -1
  782. package/dist/httpHeaders/index.d.ts.map +0 -1
  783. package/dist/httpHeaders/index.js.map +0 -1
  784. package/dist/httpHeaders/internal/httpHeaders.internal.cacheControl.d.ts.map +0 -1
  785. package/dist/httpHeaders/internal/httpHeaders.internal.mediaType.d.ts.map +0 -1
  786. package/dist/httpHeaders/internal/httpHeaders.internal.specificity.d.ts.map +0 -1
  787. package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.d.ts.map +0 -1
  788. package/dist/httpHeaders/internal/httpHeaders.internal.weightedValues.d.ts.map +0 -1
  789. package/dist/httpHeaders/internal/index.d.ts.map +0 -1
  790. package/dist/httpHeaders/internal/index.js.map +0 -1
  791. package/dist/httpHeaders/list/httpHeaders.list.d.ts.map +0 -1
  792. package/dist/httpHeaders/list/httpHeaders.listMutation.d.ts.map +0 -1
  793. package/dist/httpHeaders/list/index.d.ts.map +0 -1
  794. package/dist/httpHeaders/list/index.js.map +0 -1
  795. package/dist/httpHeaders/negotiation/httpHeaders.contentNegotiation.d.ts.map +0 -1
  796. package/dist/httpHeaders/negotiation/httpHeaders.contentNegotiationSelect.d.ts.map +0 -1
  797. package/dist/httpHeaders/negotiation/httpHeaders.encodingNegotiation.d.ts.map +0 -1
  798. package/dist/httpHeaders/negotiation/httpHeaders.encodingNegotiationSelect.d.ts.map +0 -1
  799. package/dist/httpHeaders/negotiation/httpHeaders.languageNegotiation.d.ts.map +0 -1
  800. package/dist/httpHeaders/negotiation/index.d.ts +0 -11
  801. package/dist/httpHeaders/negotiation/index.d.ts.map +0 -1
  802. package/dist/httpHeaders/negotiation/index.js +0 -11
  803. package/dist/httpHeaders/negotiation/index.js.map +0 -1
  804. package/dist/httpHeaders/range/httpHeaders.contentRange.d.ts.map +0 -1
  805. package/dist/httpHeaders/range/httpHeaders.contentRangeParse.d.ts.map +0 -1
  806. package/dist/httpHeaders/range/httpHeaders.range.d.ts.map +0 -1
  807. package/dist/httpHeaders/range/httpHeaders.rangeResolution.d.ts.map +0 -1
  808. package/dist/httpHeaders/range/httpHeaders.rangeSingle.d.ts.map +0 -1
  809. package/dist/httpHeaders/range/index.d.ts +0 -11
  810. package/dist/httpHeaders/range/index.d.ts.map +0 -1
  811. package/dist/httpHeaders/range/index.js +0 -11
  812. package/dist/httpHeaders/range/index.js.map +0 -1
  813. package/dist/httpHeaders/security/httpHeaders.security.d.ts.map +0 -1
  814. package/dist/httpHeaders/security/index.d.ts.map +0 -1
  815. package/dist/httpHeaders/security/index.js.map +0 -1
  816. package/dist/httpHeaders/types/httpHeaders.type.d.ts.map +0 -1
  817. package/dist/httpHeaders/types/index.d.ts.map +0 -1
  818. package/dist/httpHeaders/types/index.js.map +0 -1
  819. package/dist/httpHsts/http.hsts.d.ts.map +0 -1
  820. package/dist/httpHsts/index.d.ts.map +0 -1
  821. package/dist/httpHsts/index.js.map +0 -1
  822. package/dist/httpInterceptors/builtin/httpInterceptor.request.d.ts.map +0 -1
  823. package/dist/httpInterceptors/builtin/httpInterceptor.request.js.map +0 -1
  824. package/dist/httpInterceptors/builtin/httpInterceptor.response.d.ts.map +0 -1
  825. package/dist/httpInterceptors/builtin/index.d.ts.map +0 -1
  826. package/dist/httpInterceptors/http.interceptors.d.ts.map +0 -1
  827. package/dist/httpInterceptors/httpInterceptor.helper.d.ts.map +0 -1
  828. package/dist/httpInterceptors/httpInterceptor.middleware.d.ts.map +0 -1
  829. package/dist/httpInterceptors/httpInterceptor.type.d.ts.map +0 -1
  830. package/dist/httpInterceptors/index.d.ts.map +0 -1
  831. package/dist/httpInterceptors/index.js.map +0 -1
  832. package/dist/httpInterceptors/manager/httpInterceptor.lookup.d.ts.map +0 -1
  833. package/dist/httpInterceptors/manager/httpInterceptor.manager.d.ts.map +0 -1
  834. package/dist/httpInterceptors/manager/httpInterceptor.registration.d.ts.map +0 -1
  835. package/dist/httpInterceptors/manager/httpInterceptor.snapshot.d.ts.map +0 -1
  836. package/dist/httpInterceptors/manager/index.d.ts.map +0 -1
  837. package/dist/httpKeepAlive/httpKeepAlive.core.d.ts.map +0 -1
  838. package/dist/httpKeepAlive/index.d.ts.map +0 -1
  839. package/dist/httpKeepAlive/index.js.map +0 -1
  840. package/dist/httpMethods/http.methods.d.ts.map +0 -1
  841. package/dist/httpMethods/http.methods.js.map +0 -1
  842. package/dist/httpMethods/index.d.ts.map +0 -1
  843. package/dist/httpMethods/index.js.map +0 -1
  844. package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.d.ts.map +0 -1
  845. package/dist/httpMiddleware/builtin/compose/index.d.ts.map +0 -1
  846. package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.d.ts.map +0 -1
  847. package/dist/httpMiddleware/builtin/conditional/index.d.ts.map +0 -1
  848. package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.d.ts.map +0 -1
  849. package/dist/httpMiddleware/builtin/cors/index.d.ts.map +0 -1
  850. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.d.ts.map +0 -1
  851. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.js.map +0 -1
  852. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.d.ts.map +0 -1
  853. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.normalizer.d.ts.map +0 -1
  854. package/dist/httpMiddleware/builtin/helpers/index.d.ts.map +0 -1
  855. package/dist/httpMiddleware/builtin/image/httpMiddleware.image.d.ts.map +0 -1
  856. package/dist/httpMiddleware/builtin/image/index.d.ts.map +0 -1
  857. package/dist/httpMiddleware/builtin/image/index.js.map +0 -1
  858. package/dist/httpMiddleware/builtin/index.d.ts.map +0 -1
  859. package/dist/httpMiddleware/builtin/index.js.map +0 -1
  860. package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.d.ts.map +0 -1
  861. package/dist/httpMiddleware/builtin/logging/index.d.ts.map +0 -1
  862. package/dist/httpMiddleware/builtin/security/httpMiddleware.security.d.ts.map +0 -1
  863. package/dist/httpMiddleware/builtin/security/index.d.ts.map +0 -1
  864. package/dist/httpMiddleware/builtin/static/httpMiddleware.static.d.ts.map +0 -1
  865. package/dist/httpMiddleware/builtin/static/index.d.ts.map +0 -1
  866. package/dist/httpMiddleware/builtin/static/index.js.map +0 -1
  867. package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.d.ts.map +0 -1
  868. package/dist/httpMiddleware/builtin/timing/index.d.ts.map +0 -1
  869. package/dist/httpMiddleware/builtin/video/httpMiddleware.video.d.ts.map +0 -1
  870. package/dist/httpMiddleware/builtin/video/index.d.ts.map +0 -1
  871. package/dist/httpMiddleware/builtin/video/index.js.map +0 -1
  872. package/dist/httpMiddleware/httpMiddleware.error.d.ts.map +0 -1
  873. package/dist/httpMiddleware/httpMiddleware.error.js.map +0 -1
  874. package/dist/httpMiddleware/httpMiddleware.state.d.ts.map +0 -1
  875. package/dist/httpMiddleware/httpMiddleware.type.d.ts.map +0 -1
  876. package/dist/httpMiddleware/index.d.ts.map +0 -1
  877. package/dist/httpMiddleware/index.js.map +0 -1
  878. package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.d.ts.map +0 -1
  879. package/dist/httpMiddleware/pipeline/httpPipeline.execution.d.ts.map +0 -1
  880. package/dist/httpMiddleware/pipeline/httpPipeline.helper.d.ts.map +0 -1
  881. package/dist/httpMiddleware/pipeline/httpPipeline.registration.d.ts.map +0 -1
  882. package/dist/httpMiddleware/pipeline/index.d.ts.map +0 -1
  883. package/dist/httpMiddleware/pipeline/index.js.map +0 -1
  884. package/dist/httpMime/http.mime.d.ts.map +0 -1
  885. package/dist/httpMime/index.d.ts.map +0 -1
  886. package/dist/httpMime/index.js.map +0 -1
  887. package/dist/httpMultipart/http.multipart.d.ts.map +0 -1
  888. package/dist/httpMultipart/http.multipart.js.map +0 -1
  889. package/dist/httpMultipart/index.d.ts.map +0 -1
  890. package/dist/httpMultipart/index.js.map +0 -1
  891. package/dist/httpNegotiation/httpNegotiation.accept.d.ts.map +0 -1
  892. package/dist/httpNegotiation/httpNegotiation.charset.d.ts.map +0 -1
  893. package/dist/httpNegotiation/httpNegotiation.construction.d.ts.map +0 -1
  894. package/dist/httpNegotiation/httpNegotiation.core.d.ts.map +0 -1
  895. package/dist/httpNegotiation/httpNegotiation.encoding.d.ts.map +0 -1
  896. package/dist/httpNegotiation/httpNegotiation.formatting.d.ts.map +0 -1
  897. package/dist/httpNegotiation/httpNegotiation.helpers.d.ts.map +0 -1
  898. package/dist/httpNegotiation/httpNegotiation.internal.d.ts.map +0 -1
  899. package/dist/httpNegotiation/httpNegotiation.language.d.ts.map +0 -1
  900. package/dist/httpNegotiation/httpNegotiation.mediaType.d.ts.map +0 -1
  901. package/dist/httpNegotiation/httpNegotiation.negotiate.d.ts.map +0 -1
  902. package/dist/httpNegotiation/httpNegotiation.parsing.d.ts.map +0 -1
  903. package/dist/httpNegotiation/httpNegotiation.quality.d.ts.map +0 -1
  904. package/dist/httpNegotiation/httpNegotiation.sorting.d.ts.map +0 -1
  905. package/dist/httpNegotiation/httpNegotiation.types.d.ts.map +0 -1
  906. package/dist/httpNegotiation/index.d.ts.map +0 -1
  907. package/dist/httpNegotiation/index.js.map +0 -1
  908. package/dist/httpProtocol/http.protocol.d.ts.map +0 -1
  909. package/dist/httpProtocol/index.d.ts.map +0 -1
  910. package/dist/httpProtocol/index.js.map +0 -1
  911. package/dist/httpProxy/http.proxy.d.ts.map +0 -1
  912. package/dist/httpProxy/index.d.ts.map +0 -1
  913. package/dist/httpProxy/index.js.map +0 -1
  914. package/dist/httpQuery/http.query.d.ts.map +0 -1
  915. package/dist/httpQuery/httpQuery.string.d.ts.map +0 -1
  916. package/dist/httpQuery/index.d.ts.map +0 -1
  917. package/dist/httpQuery/index.js.map +0 -1
  918. package/dist/httpRange/http.range.d.ts.map +0 -1
  919. package/dist/httpRange/index.d.ts.map +0 -1
  920. package/dist/httpRange/index.js.map +0 -1
  921. package/dist/httpRedirect/http.redirect.d.ts.map +0 -1
  922. package/dist/httpRedirect/index.d.ts.map +0 -1
  923. package/dist/httpRedirect/index.js.map +0 -1
  924. package/dist/httpRequest/http.request.d.ts.map +0 -1
  925. package/dist/httpRequest/httpRequest.context.constant.d.ts.map +0 -1
  926. package/dist/httpRequest/httpRequest.context.constant.js.map +0 -1
  927. package/dist/httpRequest/httpRequest.context.d.ts.map +0 -1
  928. package/dist/httpRequest/httpRequest.context.id.d.ts.map +0 -1
  929. package/dist/httpRequest/httpRequest.context.js.map +0 -1
  930. package/dist/httpRequest/httpRequest.context.type.d.ts.map +0 -1
  931. package/dist/httpRequest/index.d.ts.map +0 -1
  932. package/dist/httpRequest/index.js.map +0 -1
  933. package/dist/httpResponse/core/httpResponse.statusText.d.ts.map +0 -1
  934. package/dist/httpResponse/core/httpResponse.type.d.ts.map +0 -1
  935. package/dist/httpResponse/core/index.d.ts.map +0 -1
  936. package/dist/httpResponse/http.response.d.ts.map +0 -1
  937. package/dist/httpResponse/httpResponse.context.d.ts.map +0 -1
  938. package/dist/httpResponse/httpResponse.helper.d.ts.map +0 -1
  939. package/dist/httpResponse/httpResponse.writer.d.ts.map +0 -1
  940. package/dist/httpResponse/httpResponse.writer.js.map +0 -1
  941. package/dist/httpResponse/index.d.ts.map +0 -1
  942. package/dist/httpResponse/index.js.map +0 -1
  943. package/dist/httpSecurity/httpSecurity.config.d.ts.map +0 -1
  944. package/dist/httpSecurity/httpSecurity.config.js.map +0 -1
  945. package/dist/httpSecurity/httpSecurity.guard.d.ts.map +0 -1
  946. package/dist/httpSecurity/httpSecurity.guard.js.map +0 -1
  947. package/dist/httpSecurity/httpSecurity.validator.d.ts.map +0 -1
  948. package/dist/httpSecurity/httpSecurity.validator.js.map +0 -1
  949. package/dist/httpSecurity/index.d.ts.map +0 -1
  950. package/dist/httpSecurity/index.js.map +0 -1
  951. package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.d.ts.map +0 -1
  952. package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.d.ts.map +0 -1
  953. package/dist/httpSecurityHeaders/core/index.d.ts.map +0 -1
  954. package/dist/httpSecurityHeaders/httpSecurity.headers.d.ts.map +0 -1
  955. package/dist/httpSecurityHeaders/httpSecurityHeader.factory.d.ts.map +0 -1
  956. package/dist/httpSecurityHeaders/httpSecurityHeader.individual.d.ts.map +0 -1
  957. package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.d.ts.map +0 -1
  958. package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.d.ts.map +0 -1
  959. package/dist/httpSecurityHeaders/index.d.ts.map +0 -1
  960. package/dist/httpSecurityHeaders/index.js.map +0 -1
  961. package/dist/httpServer/core/httpServer.core.d.ts.map +0 -1
  962. package/dist/httpServer/core/httpServer.core.js.map +0 -1
  963. package/dist/httpServer/core/index.d.ts.map +0 -1
  964. package/dist/httpServer/core/index.js.map +0 -1
  965. package/dist/httpServer/factory/httpServer.factory.d.ts.map +0 -1
  966. package/dist/httpServer/factory/httpServer.factory.js.map +0 -1
  967. package/dist/httpServer/factory/index.d.ts.map +0 -1
  968. package/dist/httpServer/factory/index.js.map +0 -1
  969. package/dist/httpServer/index.d.ts.map +0 -1
  970. package/dist/httpServer/index.js.map +0 -1
  971. package/dist/httpServer/manager/httpServer.manager.d.ts.map +0 -1
  972. package/dist/httpServer/manager/httpServer.manager.js.map +0 -1
  973. package/dist/httpServer/manager/index.d.ts.map +0 -1
  974. package/dist/httpServer/manager/index.js.map +0 -1
  975. package/dist/httpServer/types/httpServer.type.d.ts.map +0 -1
  976. package/dist/httpServer/types/httpServer.type.js.map +0 -1
  977. package/dist/httpStatus/httpStatus.categoryPredicate.d.ts.map +0 -1
  978. package/dist/httpStatus/httpStatus.clientErrorConstant.d.ts.map +0 -1
  979. package/dist/httpStatus/httpStatus.clientErrorTextConstant.d.ts.map +0 -1
  980. package/dist/httpStatus/httpStatus.collection.d.ts.map +0 -1
  981. package/dist/httpStatus/httpStatus.commonPredicate.d.ts.map +0 -1
  982. package/dist/httpStatus/httpStatus.constant.d.ts.map +0 -1
  983. package/dist/httpStatus/httpStatus.errorPredicate.d.ts.map +0 -1
  984. package/dist/httpStatus/httpStatus.info.d.ts.map +0 -1
  985. package/dist/httpStatus/httpStatus.informationalSuccessConstant.d.ts.map +0 -1
  986. package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.d.ts.map +0 -1
  987. package/dist/httpStatus/httpStatus.lookup.d.ts.map +0 -1
  988. package/dist/httpStatus/httpStatus.name.d.ts.map +0 -1
  989. package/dist/httpStatus/httpStatus.predicate.d.ts.map +0 -1
  990. package/dist/httpStatus/httpStatus.redirectErrorConstant.d.ts.map +0 -1
  991. package/dist/httpStatus/httpStatus.redirectErrorTextConstant.d.ts.map +0 -1
  992. package/dist/httpStatus/httpStatus.redirectPredicate.d.ts.map +0 -1
  993. package/dist/httpStatus/httpStatus.redirectionConstant.d.ts.map +0 -1
  994. package/dist/httpStatus/httpStatus.redirectionTextConstant.d.ts.map +0 -1
  995. package/dist/httpStatus/httpStatus.semantics.d.ts.map +0 -1
  996. package/dist/httpStatus/httpStatus.serverErrorConstant.d.ts.map +0 -1
  997. package/dist/httpStatus/httpStatus.serverErrorTextConstant.d.ts.map +0 -1
  998. package/dist/httpStatus/httpStatus.statusConstant.d.ts.map +0 -1
  999. package/dist/httpStatus/httpStatus.statusTextConstant.d.ts.map +0 -1
  1000. package/dist/httpStatus/httpStatus.type.d.ts.map +0 -1
  1001. package/dist/httpStatus/httpStatus.validator.d.ts.map +0 -1
  1002. package/dist/httpStatus/httpStatusCodes.constant.d.ts.map +0 -1
  1003. package/dist/httpStatus/index.d.ts.map +0 -1
  1004. package/dist/httpStatus/index.js.map +0 -1
  1005. package/dist/httpStream/httpStream.backpressure.d.ts.map +0 -1
  1006. package/dist/httpStream/httpStream.backpressure.js.map +0 -1
  1007. package/dist/httpStream/httpStream.constants.d.ts.map +0 -1
  1008. package/dist/httpStream/httpStream.constants.js.map +0 -1
  1009. package/dist/httpStream/httpStream.consume.d.ts.map +0 -1
  1010. package/dist/httpStream/httpStream.consume.js.map +0 -1
  1011. package/dist/httpStream/httpStream.destroy.d.ts.map +0 -1
  1012. package/dist/httpStream/httpStream.destroy.js.map +0 -1
  1013. package/dist/httpStream/httpStream.error.d.ts.map +0 -1
  1014. package/dist/httpStream/httpStream.error.js.map +0 -1
  1015. package/dist/httpStream/httpStream.eventHelper.d.ts.map +0 -1
  1016. package/dist/httpStream/httpStream.eventHelper.js.map +0 -1
  1017. package/dist/httpStream/httpStream.helper.d.ts.map +0 -1
  1018. package/dist/httpStream/httpStream.helper.js.map +0 -1
  1019. package/dist/httpStream/httpStream.pipe.d.ts.map +0 -1
  1020. package/dist/httpStream/httpStream.pipe.js.map +0 -1
  1021. package/dist/httpStream/httpStream.progress.d.ts.map +0 -1
  1022. package/dist/httpStream/httpStream.progress.js.map +0 -1
  1023. package/dist/httpStream/httpStream.read.d.ts.map +0 -1
  1024. package/dist/httpStream/httpStream.read.js.map +0 -1
  1025. package/dist/httpStream/httpStream.request.d.ts.map +0 -1
  1026. package/dist/httpStream/httpStream.request.js.map +0 -1
  1027. package/dist/httpStream/httpStream.state.d.ts.map +0 -1
  1028. package/dist/httpStream/httpStream.state.js.map +0 -1
  1029. package/dist/httpStream/httpStream.transform.d.ts.map +0 -1
  1030. package/dist/httpStream/httpStream.transform.js.map +0 -1
  1031. package/dist/httpStream/httpStream.types.d.ts.map +0 -1
  1032. package/dist/httpStream/httpStream.types.js.map +0 -1
  1033. package/dist/httpStream/index.d.ts.map +0 -1
  1034. package/dist/httpStream/index.js.map +0 -1
  1035. package/dist/httpTrustProxy/httpTrustProxy.compilation.d.ts.map +0 -1
  1036. package/dist/httpTrustProxy/httpTrustProxy.core.d.ts.map +0 -1
  1037. package/dist/httpTrustProxy/httpTrustProxy.helper.d.ts.map +0 -1
  1038. package/dist/httpTrustProxy/httpTrustProxy.parsing.d.ts.map +0 -1
  1039. package/dist/httpTrustProxy/httpTrustProxy.type.d.ts.map +0 -1
  1040. package/dist/httpTrustProxy/index.d.ts.map +0 -1
  1041. package/dist/httpTrustProxy/index.js.map +0 -1
  1042. package/dist/httpTypes/http.types.d.ts.map +0 -1
  1043. package/dist/httpTypes/http.types.js.map +0 -1
  1044. package/dist/httpTypes/index.d.ts.map +0 -1
  1045. package/dist/httpTypes/index.js.map +0 -1
  1046. package/dist/httpUrl/http.url.d.ts.map +0 -1
  1047. package/dist/httpUrl/index.d.ts.map +0 -1
  1048. package/dist/httpUrl/index.js.map +0 -1
  1049. package/dist/httpValidation/httpValidationAssertion.d.ts.map +0 -1
  1050. package/dist/httpValidation/httpValidationAuthority.d.ts.map +0 -1
  1051. package/dist/httpValidation/httpValidationAuthorization.d.ts.map +0 -1
  1052. package/dist/httpValidation/httpValidationCacheControl.d.ts.map +0 -1
  1053. package/dist/httpValidation/httpValidationContentLength.d.ts.map +0 -1
  1054. package/dist/httpValidation/httpValidationContentType.d.ts.map +0 -1
  1055. package/dist/httpValidation/httpValidationCookie.d.ts.map +0 -1
  1056. package/dist/httpValidation/httpValidationDate.d.ts.map +0 -1
  1057. package/dist/httpValidation/httpValidationETag.d.ts.map +0 -1
  1058. package/dist/httpValidation/httpValidationHeader.d.ts.map +0 -1
  1059. package/dist/httpValidation/httpValidationHostname.d.ts.map +0 -1
  1060. package/dist/httpValidation/httpValidationMessage.d.ts.map +0 -1
  1061. package/dist/httpValidation/httpValidationMethod.d.ts.map +0 -1
  1062. package/dist/httpValidation/httpValidationPort.d.ts.map +0 -1
  1063. package/dist/httpValidation/httpValidationRange.d.ts.map +0 -1
  1064. package/dist/httpValidation/httpValidationRequestTarget.d.ts.map +0 -1
  1065. package/dist/httpValidation/httpValidationStatusCode.d.ts.map +0 -1
  1066. package/dist/httpValidation/httpValidationToken.d.ts.map +0 -1
  1067. package/dist/httpValidation/httpValidationTypes.type.d.ts.map +0 -1
  1068. package/dist/httpValidation/httpValidationUrl.d.ts.map +0 -1
  1069. package/dist/httpValidation/index.d.ts.map +0 -1
  1070. package/dist/httpValidation/index.js.map +0 -1
@@ -0,0 +1,482 @@
1
+ /**
2
+ * HTTP protocol helpers.
3
+ *
4
+ * This module contains the low level HTTP primitives shared by the HTTP
5
+ * server, client, router, request, and response layers.
6
+ */
7
+ import { isHTTPMethod, normalizeHTTPMethod, } from "../httpMethods/http.methods.js";
8
+ import { isValidHeaderName, isValidHeaderValue, isValidStatusCode, isValidHTTPURL, isValidRequestTarget, } from "../httpValidation/index.js";
9
+ /* -------------------------------------------------------------------------- */
10
+ /* Constants */
11
+ /* -------------------------------------------------------------------------- */
12
+ export const HTTP_1_0 = {
13
+ major: 1,
14
+ minor: 0,
15
+ };
16
+ export const HTTP_1_1 = {
17
+ major: 1,
18
+ minor: 1,
19
+ };
20
+ export const HTTP_2_0 = {
21
+ major: 2,
22
+ minor: 0,
23
+ };
24
+ export const HTTP_3_0 = {
25
+ major: 3,
26
+ minor: 0,
27
+ };
28
+ export const DEFAULT_HTTP_VERSION = HTTP_1_1;
29
+ /* -------------------------------------------------------------------------- */
30
+ /* Version Helpers */
31
+ /* -------------------------------------------------------------------------- */
32
+ export function formatHTTPVersion(version) {
33
+ return `HTTP/${version.major}.${version.minor}`;
34
+ }
35
+ export function parseHTTPVersion(value) {
36
+ const match = /^HTTP\/(\d+)\.(\d+)$/.exec(value.trim());
37
+ if (!match) {
38
+ throw new TypeError(`Invalid HTTP version: ${value}`);
39
+ }
40
+ return {
41
+ major: Number(match[1]),
42
+ minor: Number(match[2]),
43
+ };
44
+ }
45
+ export function isHTTPVersion(value) {
46
+ try {
47
+ parseHTTPVersion(value);
48
+ return true;
49
+ }
50
+ catch {
51
+ return false;
52
+ }
53
+ }
54
+ export function compareHTTPVersions(left, right) {
55
+ if (left.major !== right.major) {
56
+ return left.major - right.major;
57
+ }
58
+ return left.minor - right.minor;
59
+ }
60
+ export function isHTTP11(version) {
61
+ return version.major === 1 && version.minor === 1;
62
+ }
63
+ export function isHTTP10(version) {
64
+ return version.major === 1 && version.minor === 0;
65
+ }
66
+ /* -------------------------------------------------------------------------- */
67
+ /* Request Line */
68
+ /* -------------------------------------------------------------------------- */
69
+ export function formatRequestLine(request) {
70
+ if (!isHTTPMethod(request.method)) {
71
+ throw new TypeError(`Invalid HTTP method: ${request.method}`);
72
+ }
73
+ if (!isValidRequestTarget(request.target)) {
74
+ throw new TypeError(`Invalid HTTP request target: ${request.target}`);
75
+ }
76
+ return [
77
+ normalizeHTTPMethod(request.method),
78
+ request.target,
79
+ formatHTTPVersion(request.version),
80
+ ].join(" ");
81
+ }
82
+ export function parseRequestLine(line) {
83
+ const parts = line.trim().split(/\s+/);
84
+ if (parts.length !== 3) {
85
+ throw new TypeError("Invalid HTTP request line.");
86
+ }
87
+ const [method, target, version] = parts;
88
+ if (method === undefined || target === undefined || version === undefined) {
89
+ throw new TypeError("Invalid HTTP request line.");
90
+ }
91
+ if (!isHTTPMethod(method)) {
92
+ throw new TypeError(`Invalid HTTP method: ${method}`);
93
+ }
94
+ if (!isValidRequestTarget(target)) {
95
+ throw new TypeError(`Invalid HTTP request target: ${target}`);
96
+ }
97
+ return {
98
+ method: normalizeHTTPMethod(method),
99
+ target,
100
+ version: parseHTTPVersion(version),
101
+ };
102
+ }
103
+ /* -------------------------------------------------------------------------- */
104
+ /* Status Line */
105
+ /* -------------------------------------------------------------------------- */
106
+ export function formatStatusLine(status) {
107
+ if (!isValidStatusCode(status.statusCode)) {
108
+ throw new RangeError(`Invalid HTTP status code: ${status.statusCode}`);
109
+ }
110
+ return [
111
+ formatHTTPVersion(status.version),
112
+ String(status.statusCode),
113
+ status.reasonPhrase,
114
+ ]
115
+ .filter((part) => part.length > 0)
116
+ .join(" ");
117
+ }
118
+ export function parseStatusLine(line) {
119
+ const trimmed = line.trim();
120
+ const match = /^(HTTP\/\d+\.\d+) (\d{3})(?: (.+))?$/.exec(trimmed);
121
+ if (!match) {
122
+ throw new TypeError("Invalid HTTP status line.");
123
+ }
124
+ const [, rawVersion, rawStatusCode] = match;
125
+ if (rawVersion === undefined || rawStatusCode === undefined) {
126
+ throw new TypeError("Invalid HTTP status line.");
127
+ }
128
+ const statusCode = Number(rawStatusCode);
129
+ if (!isValidStatusCode(statusCode)) {
130
+ throw new RangeError(`Invalid HTTP status code: ${statusCode}`);
131
+ }
132
+ return {
133
+ version: parseHTTPVersion(rawVersion),
134
+ statusCode,
135
+ reasonPhrase: match[3] ?? "",
136
+ };
137
+ }
138
+ /* -------------------------------------------------------------------------- */
139
+ /* Header Formatting */
140
+ /* -------------------------------------------------------------------------- */
141
+ export function formatHeader(header) {
142
+ if (!isValidHeaderName(header.name)) {
143
+ throw new TypeError(`Invalid HTTP header name: ${header.name}`);
144
+ }
145
+ if (!isValidHeaderValue(header.value)) {
146
+ throw new TypeError(`Invalid HTTP header value for ${header.name}`);
147
+ }
148
+ return `${header.name}: ${header.value}`;
149
+ }
150
+ export function parseHeader(line) {
151
+ const separator = line.indexOf(":");
152
+ if (separator <= 0) {
153
+ throw new TypeError("Invalid HTTP header line.");
154
+ }
155
+ const name = line.slice(0, separator).trim();
156
+ const value = line.slice(separator + 1).trim();
157
+ if (!isValidHeaderName(name)) {
158
+ throw new TypeError(`Invalid HTTP header name: ${name}`);
159
+ }
160
+ if (!isValidHeaderValue(value)) {
161
+ throw new TypeError(`Invalid HTTP header value for ${name}`);
162
+ }
163
+ return {
164
+ name,
165
+ value,
166
+ };
167
+ }
168
+ /* -------------------------------------------------------------------------- */
169
+ /* Header Collection */
170
+ /* -------------------------------------------------------------------------- */
171
+ export function formatHeaders(headers) {
172
+ return headers.map(formatHeader).join("\r\n");
173
+ }
174
+ export function parseHeaders(value) {
175
+ if (value.length === 0) {
176
+ return [];
177
+ }
178
+ return value
179
+ .split(/\r\n/)
180
+ .filter((line) => line.length > 0)
181
+ .map(parseHeader);
182
+ }
183
+ export function getHeader(headers, name) {
184
+ const normalized = name.toLowerCase();
185
+ const header = headers.find((item) => item.name.toLowerCase() === normalized);
186
+ return header?.value;
187
+ }
188
+ export function getHeaders(headers, name) {
189
+ const normalized = name.toLowerCase();
190
+ return headers
191
+ .filter((item) => item.name.toLowerCase() === normalized)
192
+ .map((item) => item.value);
193
+ }
194
+ export function hasHeader(headers, name) {
195
+ return getHeader(headers, name) !== undefined;
196
+ }
197
+ /* -------------------------------------------------------------------------- */
198
+ /* Header Mutation */
199
+ /* -------------------------------------------------------------------------- */
200
+ export function setHeader(headers, name, value) {
201
+ if (!isValidHeaderName(name)) {
202
+ throw new TypeError(`Invalid HTTP header name: ${name}`);
203
+ }
204
+ if (!isValidHeaderValue(value)) {
205
+ throw new TypeError(`Invalid HTTP header value for ${name}`);
206
+ }
207
+ const normalized = name.toLowerCase();
208
+ const result = [];
209
+ let replaced = false;
210
+ for (const header of headers) {
211
+ if (header.name.toLowerCase() === normalized) {
212
+ if (!replaced) {
213
+ result.push({
214
+ name,
215
+ value,
216
+ });
217
+ replaced = true;
218
+ }
219
+ continue;
220
+ }
221
+ result.push(header);
222
+ }
223
+ if (!replaced) {
224
+ result.push({
225
+ name,
226
+ value,
227
+ });
228
+ }
229
+ return result;
230
+ }
231
+ export function appendHeader(headers, name, value) {
232
+ if (!isValidHeaderName(name)) {
233
+ throw new TypeError(`Invalid HTTP header name: ${name}`);
234
+ }
235
+ if (!isValidHeaderValue(value)) {
236
+ throw new TypeError(`Invalid HTTP header value for ${name}`);
237
+ }
238
+ return [
239
+ ...headers,
240
+ {
241
+ name,
242
+ value,
243
+ },
244
+ ];
245
+ }
246
+ export function deleteHeader(headers, name) {
247
+ const normalized = name.toLowerCase();
248
+ return headers.filter((header) => header.name.toLowerCase() !== normalized);
249
+ }
250
+ /* -------------------------------------------------------------------------- */
251
+ /* Request URL Helpers */
252
+ /* -------------------------------------------------------------------------- */
253
+ export function isAbsoluteHTTPURL(value) {
254
+ return isValidHTTPURL(value);
255
+ }
256
+ export function isOriginFormTarget(target) {
257
+ return target.startsWith("/") && target !== "";
258
+ }
259
+ export function isAbsoluteFormTarget(target) {
260
+ return isValidHTTPURL(target);
261
+ }
262
+ export function isAsteriskFormTarget(target) {
263
+ return target === "*";
264
+ }
265
+ export function isAuthorityFormTarget(target) {
266
+ return (!target.startsWith("/") &&
267
+ !target.startsWith("*") &&
268
+ !target.includes("://") &&
269
+ /^[^/\s:]+:\d+$/.test(target));
270
+ }
271
+ /* -------------------------------------------------------------------------- */
272
+ /* Connection Semantics */
273
+ /* -------------------------------------------------------------------------- */
274
+ export function shouldKeepAlive(version, connectionHeader) {
275
+ const tokens = connectionHeader?.split(",").map((token) => token.trim().toLowerCase()) ??
276
+ [];
277
+ if (tokens.includes("close")) {
278
+ return false;
279
+ }
280
+ if (tokens.includes("keep-alive")) {
281
+ return true;
282
+ }
283
+ return isHTTP11(version);
284
+ }
285
+ export function shouldCloseConnection(version, connectionHeader) {
286
+ return !shouldKeepAlive(version, connectionHeader);
287
+ }
288
+ /* -------------------------------------------------------------------------- */
289
+ /* Transfer Encoding */
290
+ /* -------------------------------------------------------------------------- */
291
+ export function parseTransferEncoding(value) {
292
+ if (!value) {
293
+ return [];
294
+ }
295
+ return value
296
+ .split(",")
297
+ .map((item) => item.trim().toLowerCase())
298
+ .filter(Boolean);
299
+ }
300
+ export function hasChunkedTransferEncoding(value) {
301
+ return parseTransferEncoding(value).includes("chunked");
302
+ }
303
+ /* -------------------------------------------------------------------------- */
304
+ /* Connection Header */
305
+ /* -------------------------------------------------------------------------- */
306
+ export function parseConnectionTokens(value) {
307
+ if (!value) {
308
+ return [];
309
+ }
310
+ return value
311
+ .split(",")
312
+ .map((token) => token.trim().toLowerCase())
313
+ .filter(Boolean);
314
+ }
315
+ export function hasConnectionToken(value, token) {
316
+ const normalized = token.trim().toLowerCase();
317
+ return parseConnectionTokens(value).includes(normalized);
318
+ }
319
+ /* -------------------------------------------------------------------------- */
320
+ /* Content Length */
321
+ /* -------------------------------------------------------------------------- */
322
+ export function parseContentLength(value) {
323
+ if (value === undefined) {
324
+ return undefined;
325
+ }
326
+ const trimmed = value.trim();
327
+ if (!/^\d+$/.test(trimmed)) {
328
+ throw new TypeError("Invalid Content-Length header.");
329
+ }
330
+ const length = Number(trimmed);
331
+ if (!Number.isSafeInteger(length)) {
332
+ throw new RangeError("Content-Length exceeds the safe integer range.");
333
+ }
334
+ return length;
335
+ }
336
+ /* -------------------------------------------------------------------------- */
337
+ /* HTTP Message Serialization */
338
+ /* -------------------------------------------------------------------------- */
339
+ export function serializeRequestHead(request, headers) {
340
+ return (formatRequestLine(request) + "\r\n" + formatHeaders(headers) + "\r\n\r\n");
341
+ }
342
+ export function serializeResponseHead(status, headers) {
343
+ return (formatStatusLine(status) + "\r\n" + formatHeaders(headers) + "\r\n\r\n");
344
+ }
345
+ /* -------------------------------------------------------------------------- */
346
+ /* Reason Phrase */
347
+ /* -------------------------------------------------------------------------- */
348
+ const STANDARD_REASON_PHRASES = {
349
+ 100: "Continue",
350
+ 101: "Switching Protocols",
351
+ 102: "Processing",
352
+ 103: "Early Hints",
353
+ 200: "OK",
354
+ 201: "Created",
355
+ 202: "Accepted",
356
+ 203: "Non-Authoritative Information",
357
+ 204: "No Content",
358
+ 205: "Reset Content",
359
+ 206: "Partial Content",
360
+ 207: "Multi-Status",
361
+ 208: "Already Reported",
362
+ 226: "IM Used",
363
+ 300: "Multiple Choices",
364
+ 301: "Moved Permanently",
365
+ 302: "Found",
366
+ 303: "See Other",
367
+ 304: "Not Modified",
368
+ 305: "Use Proxy",
369
+ 307: "Temporary Redirect",
370
+ 308: "Permanent Redirect",
371
+ 400: "Bad Request",
372
+ 401: "Unauthorized",
373
+ 402: "Payment Required",
374
+ 403: "Forbidden",
375
+ 404: "Not Found",
376
+ 405: "Method Not Allowed",
377
+ 406: "Not Acceptable",
378
+ 407: "Proxy Authentication Required",
379
+ 408: "Request Timeout",
380
+ 409: "Conflict",
381
+ 410: "Gone",
382
+ 411: "Length Required",
383
+ 412: "Precondition Failed",
384
+ 413: "Content Too Large",
385
+ 414: "URI Too Long",
386
+ 415: "Unsupported Media Type",
387
+ 416: "Range Not Satisfiable",
388
+ 417: "Expectation Failed",
389
+ 418: "I'm a teapot",
390
+ 421: "Misdirected Request",
391
+ 422: "Unprocessable Content",
392
+ 423: "Locked",
393
+ 424: "Failed Dependency",
394
+ 425: "Too Early",
395
+ 426: "Upgrade Required",
396
+ 428: "Precondition Required",
397
+ 429: "Too Many Requests",
398
+ 431: "Request Header Fields Too Large",
399
+ 451: "Unavailable For Legal Reasons",
400
+ 500: "Internal Server Error",
401
+ 501: "Not Implemented",
402
+ 502: "Bad Gateway",
403
+ 503: "Service Unavailable",
404
+ 504: "Gateway Timeout",
405
+ 505: "HTTP Version Not Supported",
406
+ 506: "Variant Also Negotiates",
407
+ 507: "Insufficient Storage",
408
+ 508: "Loop Detected",
409
+ 510: "Not Extended",
410
+ 511: "Network Authentication Required",
411
+ };
412
+ export function getReasonPhrase(statusCode) {
413
+ return STANDARD_REASON_PHRASES[statusCode] ?? "";
414
+ }
415
+ export function createStatusLine(statusCode, version = DEFAULT_HTTP_VERSION, reasonPhrase) {
416
+ if (!isValidStatusCode(statusCode)) {
417
+ throw new RangeError(`Invalid HTTP status code: ${statusCode}`);
418
+ }
419
+ return {
420
+ version,
421
+ statusCode,
422
+ reasonPhrase: reasonPhrase ?? getReasonPhrase(statusCode),
423
+ };
424
+ }
425
+ /* -------------------------------------------------------------------------- */
426
+ /* Status Classification */
427
+ /* -------------------------------------------------------------------------- */
428
+ export function isInformationalStatus(statusCode) {
429
+ return statusCode >= 100 && statusCode < 200;
430
+ }
431
+ export function isSuccessfulStatus(statusCode) {
432
+ return statusCode >= 200 && statusCode < 300;
433
+ }
434
+ export function isRedirectionStatus(statusCode) {
435
+ return statusCode >= 300 && statusCode < 400;
436
+ }
437
+ export function isClientErrorStatus(statusCode) {
438
+ return statusCode >= 400 && statusCode < 500;
439
+ }
440
+ export function isServerErrorStatus(statusCode) {
441
+ return statusCode >= 500 && statusCode < 600;
442
+ }
443
+ export function isErrorStatus(statusCode) {
444
+ return isClientErrorStatus(statusCode) || isServerErrorStatus(statusCode);
445
+ }
446
+ /* -------------------------------------------------------------------------- */
447
+ /* Utility */
448
+ /* -------------------------------------------------------------------------- */
449
+ export function cloneHeaders(headers) {
450
+ return headers.map((header) => ({
451
+ name: header.name,
452
+ value: header.value,
453
+ }));
454
+ }
455
+ export function headersToRecord(headers) {
456
+ const result = {};
457
+ for (const header of headers) {
458
+ const key = header.name.toLowerCase();
459
+ const existing = result[key];
460
+ result[key] =
461
+ existing === undefined ? header.value : `${existing}, ${header.value}`;
462
+ }
463
+ return result;
464
+ }
465
+ export function recordToHeaders(headers) {
466
+ if (!headers) {
467
+ return [];
468
+ }
469
+ return Object.entries(headers).map(([name, value]) => {
470
+ if (!isValidHeaderName(name)) {
471
+ throw new TypeError(`Invalid HTTP header name: ${name}`);
472
+ }
473
+ if (!isValidHeaderValue(value)) {
474
+ throw new TypeError(`Invalid HTTP header value for ${name}`);
475
+ }
476
+ return {
477
+ name,
478
+ value,
479
+ };
480
+ });
481
+ }
482
+ //# sourceMappingURL=http.protocol.js.map
@@ -0,0 +1,179 @@
1
+ /**
2
+ * HTTP proxy utilities.
3
+ *
4
+ * Provides framework-agnostic proxy configuration, target resolution,
5
+ * forwarded-header handling, and proxy request helpers.
6
+ *
7
+ * This module does not perform network I/O. Actual proxy transport belongs
8
+ * to the server/client adapter layer.
9
+ */
10
+ import type { HTTPHeader } from "../httpProtocol/http.protocol.js";
11
+ export interface ProxyTarget {
12
+ readonly url: URL;
13
+ readonly protocol: string;
14
+ readonly hostname: string;
15
+ readonly port: number | undefined;
16
+ readonly pathname: string;
17
+ readonly search: string;
18
+ }
19
+ /**
20
+ * Controls which outbound targets this proxy may be pointed at.
21
+ *
22
+ * The default posture blocks the internal network. A proxy whose target is
23
+ * derived from a request is a server-side request forgery primitive: the
24
+ * classic payload is `http://169.254.169.254/latest/meta-data/iam/`, which
25
+ * returns cloud credentials to whoever can steer the target.
26
+ */
27
+ export interface ProxySecurityOptions {
28
+ /**
29
+ * Allow loopback, link-local, private/unique-local, multicast and reserved
30
+ * destinations. Off by default. Turn it on only for a proxy whose target is
31
+ * fixed configuration, never one influenced by a request.
32
+ */
33
+ readonly allowPrivateTargets?: boolean;
34
+ /**
35
+ * When present, the target host must appear here (compared case-insensitively
36
+ * against the hostname). This is the only reliable control for a
37
+ * request-derived target.
38
+ */
39
+ readonly allowedHosts?: readonly string[];
40
+ /** Extra hostnames to refuse, on top of the built-in blocklist. */
41
+ readonly blockedHosts?: readonly string[];
42
+ /** Permit schemes other than http/https. Off by default. */
43
+ readonly allowInsecureProtocols?: boolean;
44
+ }
45
+ export interface ProxyOptions extends ProxySecurityOptions {
46
+ readonly target: string | URL;
47
+ readonly changeOrigin?: boolean;
48
+ readonly preserveHost?: boolean;
49
+ readonly xfwd?: boolean;
50
+ readonly secure?: boolean;
51
+ readonly timeout?: number;
52
+ readonly rewritePath?: (path: string, requestURL: URL) => string;
53
+ readonly headers?: Readonly<Record<string, string>>;
54
+ }
55
+ /**
56
+ * The front-end request a proxied request is being made on behalf of.
57
+ *
58
+ * `X-Forwarded-Proto` / `-Host` / `-For` describe the hop the **client** made,
59
+ * not the hop the proxy is about to make, so these values have to come from
60
+ * the incoming request.
61
+ */
62
+ export interface ProxyClientContext {
63
+ /** Scheme the client used: `http` or `https`. */
64
+ readonly protocol?: string;
65
+ /** Host (with optional port) the client addressed. */
66
+ readonly host?: string;
67
+ /** Resolved client IP — see `httpTrustProxy.getClientIp`. */
68
+ readonly clientIp?: string;
69
+ /** Port the client connected to. */
70
+ readonly port?: number;
71
+ }
72
+ export interface ProxyRequest {
73
+ readonly method: string;
74
+ readonly target: ProxyTarget;
75
+ readonly path: string;
76
+ readonly headers: readonly HTTPHeader[];
77
+ }
78
+ export interface ForwardedAddress {
79
+ readonly protocol?: string;
80
+ readonly host?: string;
81
+ readonly port?: number;
82
+ readonly for?: string;
83
+ }
84
+ export interface ProxyRewriteOptions {
85
+ readonly stripPrefix?: string;
86
+ readonly prependPrefix?: string;
87
+ }
88
+ /**
89
+ * Host names that name the local machine or a cloud instance-metadata service.
90
+ * Compared after lower-casing and stripping a trailing dot.
91
+ */
92
+ export declare const BLOCKED_PROXY_HOSTS: readonly string[];
93
+ /**
94
+ * Host suffixes that only ever resolve inside a private network.
95
+ */
96
+ export declare const BLOCKED_PROXY_HOST_SUFFIXES: readonly string[];
97
+ /**
98
+ * Explains why a proxy target is refused, or returns `undefined` when it is
99
+ * acceptable.
100
+ *
101
+ * **Limitation, by design:** this module performs no I/O, so a hostname is
102
+ * checked as a literal only. A name that *resolves* to `169.254.169.254`
103
+ * passes here. The transport layer must re-apply this check against the
104
+ * resolved address immediately before connecting (and again on every
105
+ * redirect), or the DNS-rebinding variant of the same attack still works.
106
+ * `isBlockedProxyAddress` is exported for exactly that call.
107
+ */
108
+ export declare function getProxyTargetRejection(target: string | URL, options?: ProxySecurityOptions): string | undefined;
109
+ /**
110
+ * True when a resolved IP address must not be connected to.
111
+ *
112
+ * Call this from the transport layer with the address DNS actually returned.
113
+ */
114
+ export declare function isBlockedProxyAddress(address: string): boolean;
115
+ export declare function isSafeProxyTarget(target: string | URL, options?: ProxySecurityOptions): boolean;
116
+ /**
117
+ * Throws unless the target passes {@link getProxyTargetRejection}.
118
+ */
119
+ export declare function assertSafeProxyTarget(target: string | URL, options?: ProxySecurityOptions): void;
120
+ /**
121
+ * Validates a redirect the upstream returned before it is followed.
122
+ *
123
+ * A redirect re-crosses the trust boundary: the first request may be to an
124
+ * allowlisted host, and its `302` to `http://169.254.169.254/`. The location is
125
+ * resolved against the current URL and then subjected to the same guard as the
126
+ * original target.
127
+ */
128
+ export declare function assertSafeProxyRedirect(location: string | URL, currentURL: string | URL, options?: ProxySecurityOptions): URL;
129
+ export declare function resolveProxyTarget(target: string | URL, options?: ProxySecurityOptions): ProxyTarget;
130
+ export declare function isValidProxyTarget(target: string | URL | undefined | null): boolean;
131
+ export declare function joinProxyPath(basePath: string, requestPath: string): string;
132
+ export declare function rewriteProxyPath(path: string, options?: ProxyRewriteOptions): string;
133
+ export declare function normalizeProxyPath(path: string): string;
134
+ export declare function buildProxyRequestPath(target: ProxyTarget, requestPath: string, rewritePath?: (path: string, requestURL: URL) => string): string;
135
+ /**
136
+ * Builds the header list for the upstream request.
137
+ *
138
+ * Hop-by-hop headers are removed **first**. Forwarding `Transfer-Encoding`
139
+ * alongside the front end's `Content-Length` is the canonical CL.TE
140
+ * request-smuggling setup; forwarding `Proxy-Authorization` leaks the proxy's
141
+ * own credentials upstream; forwarding `Connection: close` destroys upstream
142
+ * keep-alive pooling.
143
+ */
144
+ export declare function prepareProxyHeaders(headers: readonly HTTPHeader[], target: ProxyTarget, options?: Pick<ProxyOptions, "changeOrigin" | "preserveHost" | "xfwd">, client?: ProxyClientContext): HTTPHeader[];
145
+ export declare function applyProxyHeaders(headers: readonly HTTPHeader[], additionalHeaders: Readonly<Record<string, string>> | undefined): HTTPHeader[];
146
+ /**
147
+ * Sets the `X-Forwarded-*` headers on an outbound proxy request.
148
+ *
149
+ * `X-Forwarded-Proto` and `X-Forwarded-Host` describe **the scheme and host
150
+ * the client originally used**, not the upstream this proxy is about to call,
151
+ * and they are *overwritten* rather than appended to. Appending lets a client
152
+ * that sends `X-Forwarded-Proto: https` to a plain-HTTP proxy produce
153
+ * `https, http`, and every consumer in this package reads `[0]` — so the
154
+ * upstream concludes the request arrived over TLS and issues `Secure` cookies
155
+ * over cleartext.
156
+ *
157
+ * `X-Forwarded-For` is the one header that is appended, because it is a chain:
158
+ * the client address is added to whatever trusted hops already recorded. It is
159
+ * only added when `client.clientIp` is supplied — the caller must resolve it
160
+ * with `httpTrustProxy.getClientIp` rather than copying the raw header.
161
+ */
162
+ export declare function setForwardedHeaders(headers: readonly HTTPHeader[], target: ProxyTarget, client?: ProxyClientContext): HTTPHeader[];
163
+ export declare function createForwardedHeader(address: ForwardedAddress): string;
164
+ export declare function parseForwardedHeader(value: string | undefined | null): ForwardedAddress[];
165
+ /**
166
+ * Builds an upstream request description.
167
+ *
168
+ * The target passes the SSRF guard, hop-by-hop headers are stripped, and the
169
+ * `X-Forwarded-*` values come from `client` (the incoming request), not from
170
+ * the upstream target.
171
+ */
172
+ export declare function createProxyRequest(method: string, requestPath: string, headers: readonly HTTPHeader[], options: ProxyOptions, client?: ProxyClientContext): ProxyRequest;
173
+ export declare function formatHost(url: URL): string;
174
+ export declare function getProxyHost(target: string | URL): string;
175
+ export declare function removeHopByHopHeaders(headers: readonly HTTPHeader[]): HTTPHeader[];
176
+ export declare function resolveProxyURL(target: string | URL, path: string): URL;
177
+ export declare function isSameOrigin(left: string | URL, right: string | URL): boolean;
178
+ export declare function normalizeProxyOptions(options: ProxyOptions): ProxyOptions;
179
+ //# sourceMappingURL=http.proxy.d.ts.map