@zudojs/http 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/httpAdapter/fetch/httpFetch.helper.d.ts +19 -0
- package/dist/httpAdapter/fetch/httpFetch.helper.js +35 -0
- package/dist/httpAdapter/fetch/httpFetch.requestContext.d.ts +20 -0
- package/dist/httpAdapter/fetch/httpFetch.requestContext.js +72 -0
- package/dist/httpAdapter/fetch/httpFetch.responseWriter.d.ts +31 -0
- package/dist/httpAdapter/fetch/httpFetch.responseWriter.js +69 -0
- package/dist/httpAdapter/fetch/httpFetch.type.d.ts +30 -0
- package/dist/httpAdapter/fetch/httpFetch.type.js +7 -0
- package/dist/httpAdapter/fetch/index.d.ts +11 -0
- package/dist/httpAdapter/fetch/index.js +11 -0
- package/dist/httpAdapter/http.adapter.d.ts +20 -0
- package/dist/httpAdapter/http.adapter.js +17 -0
- package/dist/httpAdapter/http.adapters.d.ts +71 -0
- package/dist/httpAdapter/httpFetch.adapter.d.ts +11 -0
- package/dist/httpAdapter/httpFetch.adapter.js +10 -0
- package/dist/httpAdapter/node/httpNode.adapter.d.ts +21 -0
- package/dist/httpAdapter/node/httpNode.adapter.js +111 -19
- package/dist/httpAdapter/node/httpNode.request.d.ts +23 -0
- package/dist/httpAdapter/node/httpNode.request.js +166 -0
- package/dist/httpAdapter/node/httpNode.response.d.ts +27 -0
- package/dist/httpAdapter/node/httpNode.response.js +93 -0
- package/dist/httpAdapter/node/httpNode.server.d.ts +18 -1
- package/dist/httpAdapter/node/httpNode.server.js +42 -3
- package/dist/httpAdapter/node/httpNode.type.d.ts +84 -0
- package/dist/httpAdapter/node/httpNode.type.js +44 -0
- package/dist/httpAgent/http.agent.d.ts +63 -0
- package/dist/httpAgent/http.agent.js +297 -0
- package/dist/httpBody/http.body.d.ts +31 -2
- package/dist/httpBody/http.body.js +77 -17
- package/dist/httpBody/httpBody.formData.d.ts +15 -0
- package/dist/httpBody/httpBody.formData.js +75 -163
- package/dist/httpBody/httpBody.parser.d.ts +12 -0
- package/dist/httpBody/httpBody.parser.js +44 -14
- package/dist/httpCacheControl/core/httpCacheControl.parse.d.ts +27 -0
- package/dist/httpCacheControl/core/httpCacheControl.parse.js +229 -0
- package/dist/httpCacheControl/core/httpCacheControl.type.d.ts +54 -0
- package/dist/httpCacheControl/core/httpCacheControl.type.js +8 -0
- package/dist/httpCacheControl/core/httpCacheControl.validation.d.ts +13 -0
- package/dist/httpCacheControl/core/httpCacheControl.validation.js +87 -0
- package/dist/httpCacheControl/core/index.d.ts +9 -0
- package/dist/httpCacheControl/core/index.js +9 -0
- package/dist/httpCacheControl/httpCacheControl.core.d.ts +13 -0
- package/dist/httpCacheControl/httpCacheControl.core.js +13 -0
- package/dist/httpCacheControl/httpCacheControl.factory.d.ts +35 -0
- package/dist/httpCacheControl/httpCacheControl.factory.js +53 -0
- package/dist/httpCacheControl/httpCacheControl.freshness.d.ts +36 -0
- package/dist/httpCacheControl/httpCacheControl.freshness.js +124 -0
- package/dist/httpCacheControl/httpCacheControl.requestHelper.d.ts +39 -0
- package/dist/httpCacheControl/httpCacheControl.requestHelper.js +56 -0
- package/dist/httpCacheControl/httpCacheControl.responseHelper.d.ts +40 -0
- package/dist/httpCacheControl/httpCacheControl.responseHelper.js +87 -0
- package/dist/httpClient/httpClient.abort.d.ts +7 -0
- package/dist/httpClient/httpClient.abort.js +34 -0
- package/dist/httpClient/httpClient.body.d.ts +8 -0
- package/dist/httpClient/httpClient.body.js +53 -0
- package/dist/httpClient/httpClient.client.d.ts +24 -0
- package/dist/httpClient/httpClient.client.js +84 -0
- package/dist/httpClient/httpClient.context.d.ts +8 -0
- package/dist/httpClient/httpClient.context.js +42 -0
- package/dist/httpClient/httpClient.errorNormalizer.d.ts +8 -0
- package/dist/httpClient/httpClient.errorNormalizer.js +32 -0
- package/dist/httpClient/httpClient.executor.d.ts +14 -0
- package/dist/httpClient/httpClient.executor.js +168 -0
- package/dist/httpClient/httpClient.factory.d.ts +10 -0
- package/dist/httpClient/httpClient.factory.js +13 -0
- package/dist/httpClient/httpClient.headers.d.ts +7 -0
- package/dist/httpClient/httpClient.headers.js +16 -0
- package/dist/httpClient/httpClient.helpers.d.ts +18 -0
- package/dist/httpClient/httpClient.helpers.js +59 -0
- package/dist/httpClient/httpClient.interceptors.d.ts +10 -0
- package/dist/httpClient/httpClient.interceptors.js +25 -0
- package/dist/httpClient/httpClient.methods.d.ts +15 -0
- package/dist/httpClient/httpClient.methods.js +27 -0
- package/dist/httpClient/httpClient.response.d.ts +8 -0
- package/dist/httpClient/httpClient.response.js +78 -0
- package/dist/httpClient/httpClient.retry.d.ts +1 -1
- package/dist/httpClient/httpClient.retry.js +36 -7
- package/dist/httpClient/httpClient.type.d.ts +88 -0
- package/dist/httpClient/httpClient.type.js +7 -0
- package/dist/httpClient/httpClient.typeGuards.d.ts +14 -0
- package/dist/httpClient/httpClient.typeGuards.js +23 -0
- package/dist/httpClient/httpClient.url.d.ts +9 -0
- package/dist/httpClient/httpClient.url.js +40 -0
- package/dist/httpCompression/http.compression.d.ts +71 -0
- package/dist/httpCompression/http.compression.js +334 -0
- package/dist/httpConditional/httpConditional.core.d.ts +141 -0
- package/dist/httpConditional/httpConditional.core.js +552 -0
- package/dist/httpConstants/http.constants.d.ts +38 -3
- package/dist/httpConstants/http.constants.js +49 -7
- package/dist/httpContentDisposition/httpContentDisposition.core.d.ts +87 -0
- package/dist/httpContentDisposition/httpContentDisposition.core.js +447 -0
- package/dist/httpContentType/httpContentType.boundary.d.ts +8 -0
- package/dist/httpContentType/httpContentType.boundary.js +26 -0
- package/dist/httpContentType/httpContentType.category.d.ts +9 -0
- package/dist/httpContentType/httpContentType.category.js +23 -0
- package/dist/httpContentType/httpContentType.categoryBinary.d.ts +9 -0
- package/dist/httpContentType/httpContentType.categoryBinary.js +30 -0
- package/dist/httpContentType/httpContentType.charset.d.ts +8 -0
- package/dist/httpContentType/httpContentType.charset.js +36 -0
- package/dist/httpContentType/httpContentType.constructors.d.ts +10 -0
- package/dist/httpContentType/httpContentType.constructors.js +37 -0
- package/dist/httpContentType/httpContentType.formatter.d.ts +7 -0
- package/dist/httpContentType/httpContentType.formatter.js +44 -0
- package/dist/httpContentType/httpContentType.matcher.d.ts +6 -0
- package/dist/httpContentType/httpContentType.matcher.js +53 -0
- package/dist/httpContentType/httpContentType.mediaTypes.d.ts +21 -0
- package/dist/httpContentType/httpContentType.mediaTypes.js +21 -0
- package/dist/httpContentType/httpContentType.normalizer.d.ts +7 -0
- package/dist/httpContentType/httpContentType.normalizer.js +29 -0
- package/dist/httpContentType/httpContentType.parameter.d.ts +7 -0
- package/dist/httpContentType/httpContentType.parameter.js +20 -0
- package/dist/httpContentType/httpContentType.parser.d.ts +6 -0
- package/dist/httpContentType/httpContentType.parser.js +44 -0
- package/dist/httpContentType/httpContentType.parserHelpers.d.ts +21 -0
- package/dist/httpContentType/httpContentType.parserHelpers.js +91 -0
- package/dist/httpContentType/httpContentType.type.d.ts +17 -0
- package/dist/httpContentType/httpContentType.type.js +5 -0
- package/dist/httpContext/http.context.js +31 -11
- package/dist/httpCookies/http.cookies.d.ts +92 -0
- package/dist/httpCookies/http.cookies.js +417 -0
- package/dist/httpCors/http.cors.d.ts +152 -0
- package/dist/httpCors/http.cors.js +480 -0
- package/dist/httpCsp/checks/httpCsp.checks.d.ts +9 -0
- package/dist/httpCsp/checks/httpCsp.checks.js +30 -0
- package/dist/httpCsp/checks/index.d.ts +5 -0
- package/dist/httpCsp/checks/index.js +5 -0
- package/dist/httpCsp/formatting/httpCsp.formatting.d.ts +7 -0
- package/dist/httpCsp/formatting/httpCsp.formatting.js +70 -0
- package/dist/httpCsp/formatting/index.d.ts +5 -0
- package/dist/httpCsp/formatting/index.js +5 -0
- package/dist/httpCsp/internal/httpCsp.internal.d.ts +19 -0
- package/dist/httpCsp/internal/httpCsp.internal.js +81 -0
- package/dist/httpCsp/internal/index.d.ts +5 -0
- package/dist/httpCsp/internal/index.js +5 -0
- package/dist/httpCsp/nonce/httpCsp.nonce.d.ts +18 -0
- package/dist/httpCsp/nonce/httpCsp.nonce.js +82 -0
- package/dist/httpCsp/nonce/index.d.ts +5 -0
- package/dist/httpCsp/nonce/index.js +5 -0
- package/dist/httpCsp/parsing/httpCsp.parsing.d.ts +9 -0
- package/dist/httpCsp/parsing/httpCsp.parsing.js +61 -0
- package/dist/httpCsp/parsing/index.d.ts +5 -0
- package/dist/httpCsp/parsing/index.js +5 -0
- package/dist/httpCsp/policies/httpCsp.policies.d.ts +17 -0
- package/dist/httpCsp/policies/httpCsp.policies.js +52 -0
- package/dist/httpCsp/policies/index.d.ts +5 -0
- package/dist/httpCsp/policies/index.js +5 -0
- package/dist/httpCsp/reportOnly/httpCsp.reportOnly.d.ts +7 -0
- package/dist/httpCsp/reportOnly/httpCsp.reportOnly.js +17 -0
- package/dist/httpCsp/reportOnly/index.d.ts +5 -0
- package/dist/httpCsp/reportOnly/index.js +5 -0
- package/dist/httpCsp/sources/httpCsp.sources.d.ts +10 -0
- package/dist/httpCsp/sources/httpCsp.sources.js +22 -0
- package/dist/httpCsp/sources/index.d.ts +5 -0
- package/dist/httpCsp/sources/index.js +5 -0
- package/dist/httpCsp/types/httpCsp.constant.d.ts +9 -0
- package/dist/httpCsp/types/httpCsp.constant.js +39 -0
- package/dist/httpCsp/types/httpCsp.type.d.ts +43 -0
- package/dist/httpCsp/types/httpCsp.type.js +5 -0
- package/dist/httpCsp/types/index.d.ts +7 -0
- package/dist/httpCsp/types/index.js +5 -0
- package/dist/httpCsp/validation/httpCsp.validate.d.ts +6 -0
- package/dist/httpCsp/validation/httpCsp.validate.js +23 -0
- package/dist/httpCsp/validation/httpCsp.validation.d.ts +6 -0
- package/dist/httpCsp/validation/httpCsp.validation.js +14 -0
- package/dist/httpCsp/validation/index.d.ts +6 -0
- package/dist/httpCsp/validation/index.js +6 -0
- package/dist/httpErrors/factories/httpError.clientError.d.ts +40 -0
- package/dist/httpErrors/factories/httpError.clientError.js +79 -0
- package/dist/httpErrors/factories/httpError.serverError.d.ts +28 -0
- package/dist/httpErrors/factories/httpError.serverError.js +52 -0
- package/dist/httpErrors/httpError.base.d.ts +0 -2
- package/dist/httpErrors/httpError.base.js +4 -2
- package/dist/httpErrors/httpError.helper.d.ts +19 -0
- package/dist/httpErrors/httpError.helper.js +20 -0
- package/dist/httpErrors/httpError.invalidJson.d.ts +20 -0
- package/dist/httpErrors/httpError.invalidJson.js +26 -0
- package/dist/httpErrors/httpError.typeGuard.d.ts +23 -0
- package/dist/httpErrors/httpError.typeGuard.js +35 -0
- package/dist/httpErrors/httpError.util.d.ts +22 -0
- package/dist/httpErrors/httpError.util.js +36 -0
- package/dist/httpHeaders/authorization/httpHeaders.authorization.d.ts +34 -0
- package/dist/httpHeaders/authorization/httpHeaders.authorization.js +53 -0
- package/dist/httpHeaders/authorization/index.d.ts +0 -1
- package/dist/httpHeaders/authorization/index.js +0 -1
- package/dist/httpHeaders/basic/httpHeaders.basic.d.ts +23 -0
- package/dist/httpHeaders/basic/httpHeaders.basic.js +29 -0
- package/dist/httpHeaders/basic/httpHeaders.basicMatch.d.ts +26 -0
- package/dist/httpHeaders/basic/httpHeaders.basicMatch.js +45 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversion.d.ts +31 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversion.js +103 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversionObject.d.ts +21 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversionObject.js +30 -0
- package/dist/httpHeaders/etag/httpHeaders.etag.d.ts +27 -0
- package/dist/httpHeaders/etag/httpHeaders.etag.js +44 -0
- package/dist/httpHeaders/etag/httpHeaders.etagMatch.d.ts +26 -0
- package/dist/httpHeaders/etag/httpHeaders.etagMatch.js +53 -0
- package/dist/httpHeaders/forwarded/httpHeaders.forwarded.d.ts +35 -0
- package/dist/httpHeaders/forwarded/httpHeaders.forwarded.js +39 -0
- package/dist/httpHeaders/forwarded/index.d.ts +0 -1
- package/dist/httpHeaders/forwarded/index.js +0 -1
- package/dist/httpHeaders/http.headers.d.ts +100 -0
- package/dist/httpHeaders/http.headers.js +324 -0
- package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.d.ts +13 -0
- package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.js +15 -0
- package/dist/httpHeaders/internal/index.d.ts +0 -5
- package/dist/httpHeaders/internal/index.js +0 -5
- package/dist/httpHeaders/list/httpHeaders.list.d.ts +32 -0
- package/dist/httpHeaders/list/httpHeaders.list.js +82 -0
- package/dist/httpHeaders/list/httpHeaders.listMutation.d.ts +25 -0
- package/dist/httpHeaders/list/httpHeaders.listMutation.js +40 -0
- package/dist/httpHeaders/security/httpHeaders.security.d.ts +87 -0
- package/dist/httpHeaders/security/httpHeaders.security.js +135 -0
- package/dist/httpHeaders/security/index.d.ts +0 -1
- package/dist/httpHeaders/security/index.js +0 -1
- package/dist/httpHeaders/types/httpHeaders.type.d.ts +19 -0
- package/dist/httpHeaders/types/httpHeaders.type.js +7 -0
- package/dist/httpHsts/http.hsts.d.ts +45 -0
- package/dist/httpHsts/http.hsts.js +224 -0
- package/dist/httpInterceptors/builtin/httpInterceptor.request.d.ts +70 -0
- package/dist/httpInterceptors/builtin/httpInterceptor.response.d.ts +33 -0
- package/dist/httpInterceptors/builtin/httpInterceptor.response.js +43 -0
- package/dist/httpInterceptors/builtin/index.d.ts +8 -0
- package/dist/httpInterceptors/builtin/index.js +8 -0
- package/dist/httpInterceptors/http.interceptors.d.ts +11 -0
- package/dist/httpInterceptors/http.interceptors.js +11 -0
- package/dist/httpInterceptors/httpInterceptor.helper.d.ts +27 -0
- package/dist/httpInterceptors/httpInterceptor.helper.js +53 -0
- package/dist/httpInterceptors/httpInterceptor.type.d.ts +48 -0
- package/dist/httpInterceptors/httpInterceptor.type.js +7 -0
- package/dist/httpInterceptors/manager/httpInterceptor.lookup.d.ts +11 -0
- package/dist/httpInterceptors/manager/httpInterceptor.lookup.js +62 -0
- package/dist/httpInterceptors/manager/httpInterceptor.manager.d.ts +24 -0
- package/dist/httpInterceptors/manager/httpInterceptor.manager.js +58 -0
- package/dist/httpInterceptors/manager/httpInterceptor.registration.d.ts +28 -0
- package/dist/httpInterceptors/manager/httpInterceptor.registration.js +119 -0
- package/dist/httpInterceptors/manager/httpInterceptor.snapshot.d.ts +12 -0
- package/dist/httpInterceptors/manager/httpInterceptor.snapshot.js +17 -0
- package/dist/httpInterceptors/manager/index.d.ts +10 -0
- package/dist/httpInterceptors/manager/index.js +10 -0
- package/dist/httpKeepAlive/httpKeepAlive.core.d.ts +63 -0
- package/dist/httpKeepAlive/httpKeepAlive.core.js +357 -0
- package/dist/httpMethods/http.methods.d.ts +72 -4
- package/dist/httpMethods/http.methods.js +97 -9
- package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.d.ts +10 -0
- package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.js +34 -0
- package/dist/httpMiddleware/builtin/compose/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/compose/index.js +7 -0
- package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.d.ts +14 -0
- package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.js +70 -0
- package/dist/httpMiddleware/builtin/conditional/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/conditional/index.js +7 -0
- package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.d.ts +28 -0
- package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.js +120 -0
- package/dist/httpMiddleware/builtin/cors/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/cors/index.js +7 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.d.ts +16 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.d.ts +16 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.js +23 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.response.d.ts +55 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.response.js +92 -0
- package/dist/httpMiddleware/builtin/helpers/index.d.ts +9 -0
- package/dist/httpMiddleware/builtin/helpers/index.js +9 -0
- package/dist/httpMiddleware/builtin/image/httpMiddleware.image.d.ts +26 -0
- package/dist/httpMiddleware/builtin/image/httpMiddleware.image.js +90 -0
- package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.d.ts +16 -0
- package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.js +42 -0
- package/dist/httpMiddleware/builtin/logging/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/logging/index.js +7 -0
- package/dist/httpMiddleware/builtin/security/httpMiddleware.security.d.ts +21 -0
- package/dist/httpMiddleware/builtin/security/httpMiddleware.security.js +50 -0
- package/dist/httpMiddleware/builtin/security/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/security/index.js +7 -0
- package/dist/httpMiddleware/builtin/static/httpMiddleware.static.d.ts +22 -0
- package/dist/httpMiddleware/builtin/static/httpMiddleware.static.js +198 -0
- package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.d.ts +8 -0
- package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.js +18 -0
- package/dist/httpMiddleware/builtin/timing/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/timing/index.js +7 -0
- package/dist/httpMiddleware/builtin/video/httpMiddleware.video.d.ts +26 -0
- package/dist/httpMiddleware/builtin/video/httpMiddleware.video.js +83 -0
- package/dist/httpMiddleware/httpMiddleware.state.d.ts +16 -0
- package/dist/httpMiddleware/httpMiddleware.state.js +30 -0
- package/dist/httpMiddleware/httpMiddleware.type.d.ts +54 -0
- package/dist/httpMiddleware/httpMiddleware.type.js +7 -0
- package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.d.ts +35 -0
- package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.js +87 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.execution.d.ts +18 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.execution.js +97 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.helper.d.ts +36 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.helper.js +114 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.registration.d.ts +27 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.registration.js +100 -0
- package/dist/httpMime/http.mime.d.ts +144 -0
- package/dist/httpMime/http.mime.js +481 -0
- package/dist/httpMultipart/http.multipart.d.ts +55 -0
- package/dist/httpMultipart/http.multipart.js +295 -99
- package/dist/httpNegotiation/httpNegotiation.core.d.ts +119 -0
- package/dist/httpNegotiation/httpNegotiation.core.js +519 -0
- package/dist/httpProtocol/http.protocol.d.ts +80 -0
- package/dist/httpProtocol/http.protocol.js +482 -0
- package/dist/httpProxy/http.proxy.d.ts +179 -0
- package/dist/httpProxy/http.proxy.js +540 -0
- package/dist/httpQuery/http.query.d.ts +110 -0
- package/dist/httpQuery/http.query.js +484 -0
- package/dist/httpQuery/index.d.ts +0 -1
- package/dist/httpQuery/index.js +0 -1
- package/dist/httpRange/http.range.d.ts +53 -0
- package/dist/httpRange/http.range.js +341 -0
- package/dist/httpRedirect/http.redirect.d.ts +140 -0
- package/dist/httpRedirect/http.redirect.js +442 -0
- package/dist/httpRequest/http.request.d.ts +71 -0
- package/dist/httpRequest/http.request.js +313 -0
- package/dist/httpRequest/httpRequest.context.constant.d.ts +8 -0
- package/dist/httpRequest/httpRequest.context.d.ts +122 -0
- package/dist/httpRequest/httpRequest.context.id.d.ts +8 -0
- package/dist/httpRequest/httpRequest.context.id.js +16 -0
- package/dist/httpRequest/httpRequest.context.type.d.ts +47 -0
- package/dist/httpRequest/httpRequest.context.type.js +8 -0
- package/dist/httpResponse/core/httpResponse.statusText.d.ts +10 -0
- package/dist/httpResponse/core/httpResponse.statusText.js +76 -0
- package/dist/httpResponse/core/httpResponse.type.d.ts +44 -0
- package/dist/httpResponse/core/httpResponse.type.js +8 -0
- package/dist/httpResponse/core/index.d.ts +8 -0
- package/dist/httpResponse/core/index.js +8 -0
- package/dist/httpResponse/http.response.d.ts +34 -0
- package/dist/httpResponse/http.response.js +204 -0
- package/dist/httpResponse/httpResponse.context.d.ts +60 -0
- package/dist/httpResponse/httpResponse.context.js +195 -0
- package/dist/httpResponse/httpResponse.fromWeb.d.ts +57 -0
- package/dist/httpResponse/httpResponse.fromWeb.js +114 -0
- package/dist/httpResponse/httpResponse.helper.d.ts +51 -0
- package/dist/httpResponse/httpResponse.helper.js +105 -0
- package/dist/httpResponse/httpResponse.writer.d.ts +8 -0
- package/dist/httpResponse/httpResponse.writer.js +43 -6
- package/dist/httpResponse/index.d.ts +1 -0
- package/dist/httpResponse/index.js +1 -0
- package/dist/httpRouter/core/error/httpRouter.error.d.ts +7 -0
- package/dist/httpRouter/core/error/httpRouter.error.js +7 -0
- package/dist/httpRouter/core/error/index.d.ts +7 -0
- package/dist/httpRouter/core/error/index.js +7 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.base.d.ts +44 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.base.js +186 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.d.ts +36 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.js +67 -0
- package/dist/httpRouter/core/factory/index.d.ts +8 -0
- package/dist/httpRouter/core/factory/index.js +8 -0
- package/dist/httpRouter/core/group/httpRouterGroup.core.d.ts +27 -0
- package/dist/httpRouter/core/group/httpRouterGroup.core.js +68 -0
- package/dist/httpRouter/core/group/index.d.ts +7 -0
- package/dist/httpRouter/core/group/index.js +7 -0
- package/dist/httpRouter/core/index.d.ts +13 -0
- package/dist/httpRouter/core/index.js +13 -0
- package/dist/httpRouter/core/register/httpRouter.register.d.ts +45 -0
- package/dist/httpRouter/core/register/httpRouter.register.js +309 -0
- package/dist/httpRouter/core/register/index.d.ts +7 -0
- package/dist/httpRouter/core/register/index.js +7 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.helper.d.ts +34 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.helper.js +69 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.type.d.ts +33 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.type.js +7 -0
- package/dist/httpRouter/core/registry/core/index.d.ts +8 -0
- package/dist/httpRouter/core/registry/core/index.js +8 -0
- package/dist/httpRouter/core/registry/httpRegistry.core.d.ts +23 -0
- package/dist/httpRouter/core/registry/httpRegistry.core.js +97 -0
- package/dist/httpRouter/core/registry/httpRegistry.factory.d.ts +25 -0
- package/dist/httpRouter/core/registry/httpRegistry.factory.js +32 -0
- package/dist/httpRouter/core/registry/httpRegistry.group.d.ts +23 -0
- package/dist/httpRouter/core/registry/httpRegistry.group.js +72 -0
- package/dist/httpRouter/core/registry/index.d.ts +16 -0
- package/dist/httpRouter/core/registry/index.js +15 -0
- package/dist/httpRouter/core/types/httpRouter.type.d.ts +109 -0
- package/dist/httpRouter/core/types/httpRouter.type.js +10 -0
- package/dist/httpRouter/core/types/index.d.ts +7 -0
- package/dist/httpRouter/core/types/index.js +7 -0
- package/dist/httpRouter/core/util/httpRoute.util.d.ts +26 -0
- package/dist/httpRouter/core/util/httpRoute.util.js +113 -0
- package/dist/httpRouter/core/util/index.d.ts +7 -0
- package/dist/httpRouter/core/util/index.js +7 -0
- package/dist/httpRouter/dispatch/httpRoute.dispatcher.d.ts +66 -0
- package/dist/httpRouter/dispatch/httpRoute.dispatcher.js +306 -0
- package/dist/httpRouter/dispatch/httpRoute.stack.d.ts +90 -0
- package/dist/httpRouter/dispatch/httpRoute.stack.js +301 -0
- package/dist/httpRouter/dispatch/index.d.ts +6 -0
- package/dist/httpRouter/dispatch/index.js +6 -0
- package/dist/httpRouter/httpRouter.context.d.ts +67 -0
- package/dist/httpRouter/httpRouter.context.js +239 -0
- package/dist/httpRouter/httpRouter.state.d.ts +18 -0
- package/dist/httpRouter/httpRouter.state.js +31 -0
- package/dist/httpRouter/index.d.ts +13 -0
- package/dist/httpRouter/index.js +13 -0
- package/dist/httpRouter/matching/httpRoute.matcher.core.d.ts +10 -0
- package/dist/httpRouter/matching/httpRoute.matcher.core.js +72 -0
- package/dist/httpRouter/matching/httpRoute.matcher.d.ts +63 -0
- package/dist/httpRouter/matching/httpRoute.matcher.js +274 -0
- package/dist/httpRouter/matching/index.d.ts +7 -0
- package/dist/httpRouter/matching/index.js +6 -0
- package/dist/httpRouter/pattern/core/httpPattern.compilation.d.ts +11 -0
- package/dist/httpRouter/pattern/core/httpPattern.compilation.js +44 -0
- package/dist/httpRouter/pattern/core/httpPattern.matching.d.ts +23 -0
- package/dist/httpRouter/pattern/core/httpPattern.matching.js +93 -0
- package/dist/httpRouter/pattern/core/httpPattern.regexBuilding.d.ts +11 -0
- package/dist/httpRouter/pattern/core/httpPattern.regexBuilding.js +49 -0
- package/dist/httpRouter/pattern/core/httpPattern.segmentParsing.d.ts +11 -0
- package/dist/httpRouter/pattern/core/httpPattern.segmentParsing.js +117 -0
- package/dist/httpRouter/pattern/core/httpPattern.type.d.ts +40 -0
- package/dist/httpRouter/pattern/core/httpPattern.type.js +8 -0
- package/dist/httpRouter/pattern/core/index.d.ts +11 -0
- package/dist/httpRouter/pattern/core/index.js +11 -0
- package/dist/httpRouter/pattern/httpPattern.factory.d.ts +19 -0
- package/dist/httpRouter/pattern/httpPattern.factory.js +25 -0
- package/dist/httpRouter/pattern/httpRoute.pattern.parse.d.ts +38 -0
- package/dist/httpRouter/pattern/httpRoute.pattern.parse.js +134 -0
- package/dist/httpRouter/pattern/index.d.ts +19 -0
- package/dist/httpRouter/pattern/index.js +17 -0
- package/dist/httpRouter/result/httpRoute.result.builder.d.ts +7 -0
- package/dist/httpRouter/result/httpRoute.result.builder.js +70 -0
- package/dist/httpRouter/result/httpRoute.result.class.d.ts +21 -0
- package/dist/httpRouter/result/httpRoute.result.class.js +33 -0
- package/dist/httpRouter/result/httpRoute.result.d.ts +17 -0
- package/dist/httpRouter/result/httpRoute.result.error.4xx.d.ts +14 -0
- package/dist/httpRouter/result/httpRoute.result.error.4xx.js +76 -0
- package/dist/httpRouter/result/httpRoute.result.error.5xx.d.ts +9 -0
- package/dist/httpRouter/result/httpRoute.result.error.5xx.js +32 -0
- package/dist/httpRouter/result/httpRoute.result.factory.d.ts +13 -0
- package/dist/httpRouter/result/httpRoute.result.factory.js +54 -0
- package/dist/httpRouter/result/httpRoute.result.guard.d.ts +9 -0
- package/dist/httpRouter/result/httpRoute.result.guard.js +33 -0
- package/dist/httpRouter/result/httpRoute.result.js +31 -0
- package/dist/httpRouter/result/httpRoute.result.normalize.d.ts +8 -0
- package/dist/httpRouter/result/httpRoute.result.normalize.js +73 -0
- package/dist/httpRouter/result/httpRoute.result.output.d.ts +7 -0
- package/dist/httpRouter/result/httpRoute.result.output.js +34 -0
- package/dist/httpRouter/result/httpRoute.result.serialize.d.ts +8 -0
- package/dist/httpRouter/result/httpRoute.result.serialize.js +61 -0
- package/dist/httpRouter/result/httpRoute.result.type.d.ts +41 -0
- package/dist/httpRouter/result/httpRoute.result.type.js +9 -0
- package/dist/httpRouter/result/httpRoute.result.util.d.ts +8 -0
- package/dist/httpRouter/result/httpRoute.result.util.js +52 -0
- package/dist/httpRouter/result/index.d.ts +6 -0
- package/dist/httpRouter/result/index.js +5 -0
- package/dist/httpRouter/tree/core/httpTree.helper.d.ts +31 -0
- package/dist/httpRouter/tree/core/httpTree.helper.js +80 -0
- package/dist/httpRouter/tree/core/httpTree.nodeCreation.d.ts +11 -0
- package/dist/httpRouter/tree/core/httpTree.nodeCreation.js +54 -0
- package/dist/httpRouter/tree/core/httpTree.traversal.d.ts +26 -0
- package/dist/httpRouter/tree/core/httpTree.traversal.js +73 -0
- package/dist/httpRouter/tree/core/httpTree.type.d.ts +52 -0
- package/dist/httpRouter/tree/core/httpTree.type.js +7 -0
- package/dist/httpRouter/tree/core/index.d.ts +10 -0
- package/dist/httpRouter/tree/core/index.js +10 -0
- package/dist/httpRouter/tree/httpTree.core.d.ts +21 -0
- package/dist/httpRouter/tree/httpTree.core.js +96 -0
- package/dist/httpRouter/tree/httpTree.factory.d.ts +12 -0
- package/dist/httpRouter/tree/httpTree.factory.js +13 -0
- package/dist/httpRouter/tree/index.d.ts +7 -0
- package/dist/httpRouter/tree/index.js +6 -0
- package/dist/httpSecurity/httpSecurity.config.d.ts +17 -11
- package/dist/httpSecurity/httpSecurity.config.js +9 -6
- package/dist/httpSecurity/httpSecurity.guard.d.ts +28 -0
- package/dist/httpSecurity/httpSecurity.guard.js +40 -0
- package/dist/httpSecurity/index.d.ts +1 -1
- package/dist/httpSecurity/index.js +1 -1
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.d.ts +56 -0
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.js +20 -0
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.d.ts +44 -0
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.js +111 -0
- package/dist/httpSecurityHeaders/core/index.d.ts +8 -0
- package/dist/httpSecurityHeaders/core/index.js +8 -0
- package/dist/httpSecurityHeaders/httpSecurity.headers.d.ts +12 -0
- package/dist/httpSecurityHeaders/httpSecurity.headers.js +12 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.factory.d.ts +11 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.factory.js +71 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.individual.d.ts +65 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.individual.js +123 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.d.ts +15 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.js +59 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.d.ts +65 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.js +120 -0
- package/dist/httpServer/core/httpServer.core.d.ts +15 -3
- package/dist/httpServer/core/httpServer.core.js +80 -25
- package/dist/httpServer/types/httpServer.type.d.ts +17 -2
- package/dist/httpStatus/httpStatus.categoryPredicate.d.ts +12 -0
- package/dist/httpStatus/httpStatus.categoryPredicate.js +24 -0
- package/dist/httpStatus/httpStatus.clientErrorConstant.d.ts +43 -0
- package/dist/httpStatus/httpStatus.clientErrorConstant.js +43 -0
- package/dist/httpStatus/httpStatus.clientErrorTextConstant.d.ts +35 -0
- package/dist/httpStatus/httpStatus.clientErrorTextConstant.js +35 -0
- package/dist/httpStatus/httpStatus.collection.d.ts +11 -0
- package/dist/httpStatus/httpStatus.collection.js +22 -0
- package/dist/httpStatus/httpStatus.commonPredicate.d.ts +8 -0
- package/dist/httpStatus/httpStatus.commonPredicate.js +8 -0
- package/dist/httpStatus/httpStatus.constant.d.ts +8 -0
- package/dist/httpStatus/httpStatus.constant.js +8 -0
- package/dist/httpStatus/httpStatus.errorPredicate.d.ts +21 -0
- package/dist/httpStatus/httpStatus.errorPredicate.js +52 -0
- package/dist/httpStatus/httpStatus.info.d.ts +24 -0
- package/dist/httpStatus/httpStatus.info.js +31 -0
- package/dist/httpStatus/httpStatus.informationalSuccessConstant.d.ts +24 -0
- package/dist/httpStatus/httpStatus.informationalSuccessConstant.js +24 -0
- package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.d.ts +24 -0
- package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.js +24 -0
- package/dist/httpStatus/httpStatus.lookup.d.ts +9 -0
- package/dist/httpStatus/httpStatus.lookup.js +28 -0
- package/dist/httpStatus/httpStatus.name.d.ts +8 -0
- package/dist/httpStatus/httpStatus.name.js +16 -0
- package/dist/httpStatus/httpStatus.predicate.d.ts +9 -0
- package/dist/httpStatus/httpStatus.predicate.js +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorConstant.d.ts +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorConstant.js +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorTextConstant.d.ts +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorTextConstant.js +9 -0
- package/dist/httpStatus/httpStatus.redirectPredicate.d.ts +10 -0
- package/dist/httpStatus/httpStatus.redirectPredicate.js +25 -0
- package/dist/httpStatus/httpStatus.redirectionConstant.d.ts +14 -0
- package/dist/httpStatus/httpStatus.redirectionConstant.js +14 -0
- package/dist/httpStatus/httpStatus.redirectionTextConstant.d.ts +14 -0
- package/dist/httpStatus/httpStatus.redirectionTextConstant.js +14 -0
- package/dist/httpStatus/httpStatus.semantics.d.ts +20 -0
- package/dist/httpStatus/httpStatus.semantics.js +49 -0
- package/dist/httpStatus/httpStatus.serverErrorConstant.d.ts +17 -0
- package/dist/httpStatus/httpStatus.serverErrorConstant.js +17 -0
- package/dist/httpStatus/httpStatus.serverErrorTextConstant.d.ts +17 -0
- package/dist/httpStatus/httpStatus.serverErrorTextConstant.js +17 -0
- package/dist/httpStatus/httpStatus.statusConstant.d.ts +74 -0
- package/dist/httpStatus/httpStatus.statusConstant.js +17 -0
- package/dist/httpStatus/httpStatus.statusTextConstant.d.ts +72 -0
- package/dist/httpStatus/httpStatus.statusTextConstant.js +17 -0
- package/dist/httpStatus/httpStatus.type.d.ts +15 -0
- package/dist/httpStatus/httpStatus.type.js +9 -0
- package/dist/httpStatus/httpStatus.validator.d.ts +8 -0
- package/dist/httpStatus/httpStatus.validator.js +17 -0
- package/dist/httpStatus/httpStatusCodes.constant.d.ts +239 -0
- package/dist/httpStatus/httpStatusCodes.constant.js +232 -0
- package/dist/httpStream/httpStream.backpressure.d.ts +9 -0
- package/dist/httpStream/httpStream.backpressure.js +44 -9
- package/dist/httpStream/httpStream.consume.d.ts +8 -0
- package/dist/httpStream/httpStream.consume.js +31 -3
- package/dist/httpStream/httpStream.error.d.ts +11 -0
- package/dist/httpStream/httpStream.error.js +17 -1
- package/dist/httpStream/httpStream.eventHelper.d.ts +0 -2
- package/dist/httpStream/httpStream.eventHelper.js +0 -24
- package/dist/httpStream/httpStream.helper.d.ts +13 -0
- package/dist/httpStream/httpStream.helper.js +18 -2
- package/dist/httpStream/httpStream.pipe.js +15 -4
- package/dist/httpStream/httpStream.progress.js +42 -8
- package/dist/httpStream/httpStream.transform.d.ts +3 -3
- package/dist/httpStream/httpStream.types.d.ts +20 -1
- package/dist/httpTrustProxy/httpTrustProxy.compilation.d.ts +32 -0
- package/dist/httpTrustProxy/httpTrustProxy.compilation.js +119 -0
- package/dist/httpTrustProxy/httpTrustProxy.core.d.ts +14 -0
- package/dist/httpTrustProxy/httpTrustProxy.core.js +14 -0
- package/dist/httpTrustProxy/httpTrustProxy.helper.d.ts +73 -0
- package/dist/httpTrustProxy/httpTrustProxy.helper.js +226 -0
- package/dist/httpTrustProxy/httpTrustProxy.ip.d.ts +49 -0
- package/dist/httpTrustProxy/httpTrustProxy.ip.js +238 -0
- package/dist/httpTrustProxy/httpTrustProxy.parsing.d.ts +32 -0
- package/dist/httpTrustProxy/httpTrustProxy.parsing.js +133 -0
- package/dist/httpTrustProxy/httpTrustProxy.type.d.ts +41 -0
- package/dist/httpTrustProxy/httpTrustProxy.type.js +12 -0
- package/dist/httpUrl/http.url.d.ts +143 -0
- package/dist/httpUrl/http.url.js +712 -0
- package/dist/httpValidation/httpValidationAssertion.d.ts +9 -0
- package/dist/httpValidation/httpValidationAssertion.js +26 -0
- package/dist/httpValidation/httpValidationAuthority.d.ts +8 -0
- package/dist/httpValidation/httpValidationAuthority.js +43 -0
- package/dist/httpValidation/httpValidationAuthorization.d.ts +7 -0
- package/dist/httpValidation/httpValidationAuthorization.js +22 -0
- package/dist/httpValidation/httpValidationCacheControl.d.ts +7 -0
- package/dist/httpValidation/httpValidationCacheControl.js +26 -0
- package/dist/httpValidation/httpValidationContentLength.d.ts +9 -0
- package/dist/httpValidation/httpValidationContentLength.js +25 -0
- package/dist/httpValidation/httpValidationContentType.d.ts +9 -0
- package/dist/httpValidation/httpValidationContentType.js +32 -0
- package/dist/httpValidation/httpValidationCookie.d.ts +8 -0
- package/dist/httpValidation/httpValidationCookie.js +19 -0
- package/dist/httpValidation/httpValidationDate.d.ts +7 -0
- package/dist/httpValidation/httpValidationDate.js +13 -0
- package/dist/httpValidation/httpValidationETag.d.ts +7 -0
- package/dist/httpValidation/httpValidationETag.js +16 -0
- package/dist/httpValidation/httpValidationHeader.d.ts +16 -0
- package/dist/httpValidation/httpValidationHeader.js +77 -0
- package/dist/httpValidation/httpValidationHostname.d.ts +7 -0
- package/dist/httpValidation/httpValidationHostname.js +27 -0
- package/dist/httpValidation/httpValidationMessage.d.ts +13 -0
- package/dist/httpValidation/httpValidationMessage.js +45 -0
- package/dist/httpValidation/httpValidationMethod.d.ts +9 -0
- package/dist/httpValidation/httpValidationMethod.js +25 -0
- package/dist/httpValidation/httpValidationPort.d.ts +9 -0
- package/dist/httpValidation/httpValidationPort.js +25 -0
- package/dist/httpValidation/httpValidationRange.d.ts +7 -0
- package/dist/httpValidation/httpValidationRange.js +41 -0
- package/dist/httpValidation/httpValidationRequestTarget.d.ts +10 -0
- package/dist/httpValidation/httpValidationRequestTarget.js +48 -0
- package/dist/httpValidation/httpValidationStatusCode.d.ts +9 -0
- package/dist/httpValidation/httpValidationStatusCode.js +25 -0
- package/dist/httpValidation/httpValidationToken.d.ts +10 -0
- package/dist/httpValidation/httpValidationToken.js +25 -0
- package/dist/httpValidation/httpValidationTypes.type.d.ts +15 -0
- package/dist/httpValidation/httpValidationTypes.type.js +7 -0
- package/dist/httpValidation/httpValidationUrl.d.ts +11 -0
- package/dist/httpValidation/httpValidationUrl.js +62 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.js +83 -0
- package/package.json +23 -16
- package/dist/httpAdapter/fetch/httpFetch.body.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.body.js.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.helper.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.requestContext.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.responseWriter.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.type.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/index.d.ts.map +0 -1
- package/dist/httpAdapter/http.adapter.d.ts.map +0 -1
- package/dist/httpAdapter/http.adapter.js.map +0 -1
- package/dist/httpAdapter/http.adapters.d.ts.map +0 -1
- package/dist/httpAdapter/http.adapters.js.map +0 -1
- package/dist/httpAdapter/httpFetch.adapter.d.ts.map +0 -1
- package/dist/httpAdapter/index.d.ts.map +0 -1
- package/dist/httpAdapter/index.js.map +0 -1
- package/dist/httpAdapter/node/httpNode.adapter.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.adapter.js.map +0 -1
- package/dist/httpAdapter/node/httpNode.request.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.response.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.server.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.server.js.map +0 -1
- package/dist/httpAdapter/node/httpNode.type.d.ts.map +0 -1
- package/dist/httpAdapter/node/index.d.ts.map +0 -1
- package/dist/httpAdapter/node/index.js.map +0 -1
- package/dist/httpAgent/http.agent.d.ts.map +0 -1
- package/dist/httpAgent/index.d.ts.map +0 -1
- package/dist/httpAgent/index.js.map +0 -1
- package/dist/httpBody/http.body.d.ts.map +0 -1
- package/dist/httpBody/http.body.js.map +0 -1
- package/dist/httpBody/httpBody.formData.d.ts.map +0 -1
- package/dist/httpBody/httpBody.formData.js.map +0 -1
- package/dist/httpBody/httpBody.parser.d.ts.map +0 -1
- package/dist/httpBody/httpBody.parser.js.map +0 -1
- package/dist/httpBody/index.d.ts.map +0 -1
- package/dist/httpBody/index.js.map +0 -1
- package/dist/httpCacheControl/core/httpCacheControl.parse.d.ts.map +0 -1
- package/dist/httpCacheControl/core/httpCacheControl.type.d.ts.map +0 -1
- package/dist/httpCacheControl/core/httpCacheControl.validation.d.ts.map +0 -1
- package/dist/httpCacheControl/core/index.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.core.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.factory.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.freshness.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.requestHelper.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.responseHelper.d.ts.map +0 -1
- package/dist/httpCacheControl/index.d.ts.map +0 -1
- package/dist/httpCacheControl/index.js.map +0 -1
- package/dist/httpClient/httpClient.abort.d.ts.map +0 -1
- package/dist/httpClient/httpClient.body.d.ts.map +0 -1
- package/dist/httpClient/httpClient.client.d.ts.map +0 -1
- package/dist/httpClient/httpClient.context.d.ts.map +0 -1
- package/dist/httpClient/httpClient.error.d.ts.map +0 -1
- package/dist/httpClient/httpClient.error.js.map +0 -1
- package/dist/httpClient/httpClient.errorNormalizer.d.ts.map +0 -1
- package/dist/httpClient/httpClient.executor.d.ts.map +0 -1
- package/dist/httpClient/httpClient.factory.d.ts.map +0 -1
- package/dist/httpClient/httpClient.headers.d.ts.map +0 -1
- package/dist/httpClient/httpClient.helpers.d.ts.map +0 -1
- package/dist/httpClient/httpClient.interceptors.d.ts.map +0 -1
- package/dist/httpClient/httpClient.methods.d.ts.map +0 -1
- package/dist/httpClient/httpClient.response.d.ts.map +0 -1
- package/dist/httpClient/httpClient.retry.d.ts.map +0 -1
- package/dist/httpClient/httpClient.retry.js.map +0 -1
- package/dist/httpClient/httpClient.type.d.ts.map +0 -1
- package/dist/httpClient/httpClient.typeGuards.d.ts.map +0 -1
- package/dist/httpClient/httpClient.url.d.ts.map +0 -1
- package/dist/httpClient/index.d.ts.map +0 -1
- package/dist/httpClient/index.js.map +0 -1
- package/dist/httpCompression/http.compression.d.ts.map +0 -1
- package/dist/httpCompression/index.d.ts.map +0 -1
- package/dist/httpCompression/index.js.map +0 -1
- package/dist/httpConditional/httpConditional.core.d.ts.map +0 -1
- package/dist/httpConditional/index.d.ts.map +0 -1
- package/dist/httpConditional/index.js.map +0 -1
- package/dist/httpConstants/http.constants.d.ts.map +0 -1
- package/dist/httpConstants/http.constants.js.map +0 -1
- package/dist/httpConstants/index.d.ts.map +0 -1
- package/dist/httpConstants/index.js.map +0 -1
- package/dist/httpContentDisposition/httpContentDisposition.core.d.ts.map +0 -1
- package/dist/httpContentDisposition/index.d.ts.map +0 -1
- package/dist/httpContentDisposition/index.js.map +0 -1
- package/dist/httpContentType/httpContentType.boundary.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.category.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.categoryBinary.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.charset.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.constructors.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.formatter.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.matcher.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.mediaTypes.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.normalizer.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.parameter.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.parser.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.parserHelpers.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.type.d.ts.map +0 -1
- package/dist/httpContentType/index.d.ts.map +0 -1
- package/dist/httpContentType/index.js.map +0 -1
- package/dist/httpContext/http.context.d.ts.map +0 -1
- package/dist/httpContext/http.context.js.map +0 -1
- package/dist/httpContext/index.d.ts.map +0 -1
- package/dist/httpContext/index.js.map +0 -1
- package/dist/httpCookies/http.cookies.d.ts.map +0 -1
- package/dist/httpCookies/index.d.ts.map +0 -1
- package/dist/httpCookies/index.js.map +0 -1
- package/dist/httpCors/http.cors.d.ts.map +0 -1
- package/dist/httpCors/index.d.ts.map +0 -1
- package/dist/httpCors/index.js.map +0 -1
- package/dist/httpCsp/checks/httpCsp.checks.d.ts.map +0 -1
- package/dist/httpCsp/checks/index.d.ts.map +0 -1
- package/dist/httpCsp/formatting/httpCsp.formatting.d.ts.map +0 -1
- package/dist/httpCsp/formatting/index.d.ts.map +0 -1
- package/dist/httpCsp/index.d.ts.map +0 -1
- package/dist/httpCsp/index.js.map +0 -1
- package/dist/httpCsp/internal/httpCsp.internal.d.ts.map +0 -1
- package/dist/httpCsp/internal/index.d.ts.map +0 -1
- package/dist/httpCsp/nonce/httpCsp.nonce.d.ts.map +0 -1
- package/dist/httpCsp/nonce/index.d.ts.map +0 -1
- package/dist/httpCsp/parsing/httpCsp.parsing.d.ts.map +0 -1
- package/dist/httpCsp/parsing/index.d.ts.map +0 -1
- package/dist/httpCsp/policies/httpCsp.policies.d.ts.map +0 -1
- package/dist/httpCsp/policies/index.d.ts.map +0 -1
- package/dist/httpCsp/reportOnly/httpCsp.reportOnly.d.ts.map +0 -1
- package/dist/httpCsp/reportOnly/index.d.ts.map +0 -1
- package/dist/httpCsp/sources/httpCsp.sources.d.ts.map +0 -1
- package/dist/httpCsp/sources/index.d.ts.map +0 -1
- package/dist/httpCsp/types/httpCsp.constant.d.ts.map +0 -1
- package/dist/httpCsp/types/httpCsp.type.d.ts.map +0 -1
- package/dist/httpCsp/types/index.d.ts.map +0 -1
- package/dist/httpCsp/validation/httpCsp.validate.d.ts.map +0 -1
- package/dist/httpCsp/validation/httpCsp.validation.d.ts.map +0 -1
- package/dist/httpCsp/validation/index.d.ts.map +0 -1
- package/dist/httpErrors/factories/httpError.clientError.d.ts.map +0 -1
- package/dist/httpErrors/factories/httpError.serverError.d.ts.map +0 -1
- package/dist/httpErrors/httpError.base.d.ts.map +0 -1
- package/dist/httpErrors/httpError.base.js.map +0 -1
- package/dist/httpErrors/httpError.helper.d.ts.map +0 -1
- package/dist/httpErrors/httpError.invalidJson.d.ts.map +0 -1
- package/dist/httpErrors/httpError.type.d.ts.map +0 -1
- package/dist/httpErrors/httpError.type.js.map +0 -1
- package/dist/httpErrors/httpError.typeGuard.d.ts.map +0 -1
- package/dist/httpErrors/index.d.ts.map +0 -1
- package/dist/httpErrors/index.js.map +0 -1
- package/dist/httpFormData/index.d.ts.map +0 -1
- package/dist/httpFormData/index.js.map +0 -1
- package/dist/httpHeaders/authorization/httpHeaders.authorization.d.ts.map +0 -1
- package/dist/httpHeaders/authorization/index.d.ts.map +0 -1
- package/dist/httpHeaders/authorization/index.js.map +0 -1
- package/dist/httpHeaders/basic/httpHeaders.basic.d.ts.map +0 -1
- package/dist/httpHeaders/basic/httpHeaders.basicMatch.d.ts.map +0 -1
- package/dist/httpHeaders/basic/index.d.ts.map +0 -1
- package/dist/httpHeaders/basic/index.js.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControl.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlBuilder.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlParse.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlTokens.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/index.d.ts +0 -10
- package/dist/httpHeaders/cacheControl/index.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/index.js +0 -10
- package/dist/httpHeaders/cacheControl/index.js.map +0 -1
- package/dist/httpHeaders/conversion/httpHeaders.conversion.d.ts.map +0 -1
- package/dist/httpHeaders/conversion/httpHeaders.conversionObject.d.ts.map +0 -1
- package/dist/httpHeaders/conversion/index.d.ts.map +0 -1
- package/dist/httpHeaders/conversion/index.js.map +0 -1
- package/dist/httpHeaders/date/httpHeaders.date.d.ts.map +0 -1
- package/dist/httpHeaders/date/index.d.ts +0 -8
- package/dist/httpHeaders/date/index.d.ts.map +0 -1
- package/dist/httpHeaders/date/index.js +0 -8
- package/dist/httpHeaders/date/index.js.map +0 -1
- package/dist/httpHeaders/etag/httpHeaders.etag.d.ts.map +0 -1
- package/dist/httpHeaders/etag/httpHeaders.etagMatch.d.ts.map +0 -1
- package/dist/httpHeaders/etag/index.d.ts.map +0 -1
- package/dist/httpHeaders/etag/index.js.map +0 -1
- package/dist/httpHeaders/forwarded/httpHeaders.forwarded.d.ts.map +0 -1
- package/dist/httpHeaders/forwarded/index.d.ts.map +0 -1
- package/dist/httpHeaders/forwarded/index.js.map +0 -1
- package/dist/httpHeaders/http.headers.d.ts.map +0 -1
- package/dist/httpHeaders/index.d.ts.map +0 -1
- package/dist/httpHeaders/index.js.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.cacheControl.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.mediaType.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.specificity.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.weightedValues.d.ts.map +0 -1
- package/dist/httpHeaders/internal/index.d.ts.map +0 -1
- package/dist/httpHeaders/internal/index.js.map +0 -1
- package/dist/httpHeaders/list/httpHeaders.list.d.ts.map +0 -1
- package/dist/httpHeaders/list/httpHeaders.listMutation.d.ts.map +0 -1
- package/dist/httpHeaders/list/index.d.ts.map +0 -1
- package/dist/httpHeaders/list/index.js.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.contentNegotiation.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.contentNegotiationSelect.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.encodingNegotiation.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.encodingNegotiationSelect.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.languageNegotiation.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/index.d.ts +0 -11
- package/dist/httpHeaders/negotiation/index.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/index.js +0 -11
- package/dist/httpHeaders/negotiation/index.js.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.contentRange.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.contentRangeParse.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.range.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.rangeResolution.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.rangeSingle.d.ts.map +0 -1
- package/dist/httpHeaders/range/index.d.ts +0 -11
- package/dist/httpHeaders/range/index.d.ts.map +0 -1
- package/dist/httpHeaders/range/index.js +0 -11
- package/dist/httpHeaders/range/index.js.map +0 -1
- package/dist/httpHeaders/security/httpHeaders.security.d.ts.map +0 -1
- package/dist/httpHeaders/security/index.d.ts.map +0 -1
- package/dist/httpHeaders/security/index.js.map +0 -1
- package/dist/httpHeaders/types/httpHeaders.type.d.ts.map +0 -1
- package/dist/httpHeaders/types/index.d.ts.map +0 -1
- package/dist/httpHeaders/types/index.js.map +0 -1
- package/dist/httpHsts/http.hsts.d.ts.map +0 -1
- package/dist/httpHsts/index.d.ts.map +0 -1
- package/dist/httpHsts/index.js.map +0 -1
- package/dist/httpInterceptors/builtin/httpInterceptor.request.d.ts.map +0 -1
- package/dist/httpInterceptors/builtin/httpInterceptor.request.js.map +0 -1
- package/dist/httpInterceptors/builtin/httpInterceptor.response.d.ts.map +0 -1
- package/dist/httpInterceptors/builtin/index.d.ts.map +0 -1
- package/dist/httpInterceptors/http.interceptors.d.ts.map +0 -1
- package/dist/httpInterceptors/httpInterceptor.helper.d.ts.map +0 -1
- package/dist/httpInterceptors/httpInterceptor.middleware.d.ts.map +0 -1
- package/dist/httpInterceptors/httpInterceptor.type.d.ts.map +0 -1
- package/dist/httpInterceptors/index.d.ts.map +0 -1
- package/dist/httpInterceptors/index.js.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.lookup.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.manager.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.registration.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.snapshot.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/index.d.ts.map +0 -1
- package/dist/httpKeepAlive/httpKeepAlive.core.d.ts.map +0 -1
- package/dist/httpKeepAlive/index.d.ts.map +0 -1
- package/dist/httpKeepAlive/index.js.map +0 -1
- package/dist/httpMethods/http.methods.d.ts.map +0 -1
- package/dist/httpMethods/http.methods.js.map +0 -1
- package/dist/httpMethods/index.d.ts.map +0 -1
- package/dist/httpMethods/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/compose/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/conditional/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/cors/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.js.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.normalizer.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/image/httpMiddleware.image.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/image/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/image/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/logging/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/security/httpMiddleware.security.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/security/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/static/httpMiddleware.static.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/static/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/static/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/timing/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/video/httpMiddleware.video.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/video/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/video/index.js.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.error.d.ts.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.error.js.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.state.d.ts.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.type.d.ts.map +0 -1
- package/dist/httpMiddleware/index.d.ts.map +0 -1
- package/dist/httpMiddleware/index.js.map +0 -1
- package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/httpPipeline.execution.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/httpPipeline.helper.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/httpPipeline.registration.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/index.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/index.js.map +0 -1
- package/dist/httpMime/http.mime.d.ts.map +0 -1
- package/dist/httpMime/index.d.ts.map +0 -1
- package/dist/httpMime/index.js.map +0 -1
- package/dist/httpMultipart/http.multipart.d.ts.map +0 -1
- package/dist/httpMultipart/http.multipart.js.map +0 -1
- package/dist/httpMultipart/index.d.ts.map +0 -1
- package/dist/httpMultipart/index.js.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.accept.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.charset.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.construction.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.core.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.encoding.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.formatting.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.helpers.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.internal.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.language.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.mediaType.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.negotiate.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.parsing.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.quality.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.sorting.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.types.d.ts.map +0 -1
- package/dist/httpNegotiation/index.d.ts.map +0 -1
- package/dist/httpNegotiation/index.js.map +0 -1
- package/dist/httpProtocol/http.protocol.d.ts.map +0 -1
- package/dist/httpProtocol/index.d.ts.map +0 -1
- package/dist/httpProtocol/index.js.map +0 -1
- package/dist/httpProxy/http.proxy.d.ts.map +0 -1
- package/dist/httpProxy/index.d.ts.map +0 -1
- package/dist/httpProxy/index.js.map +0 -1
- package/dist/httpQuery/http.query.d.ts.map +0 -1
- package/dist/httpQuery/httpQuery.string.d.ts.map +0 -1
- package/dist/httpQuery/index.d.ts.map +0 -1
- package/dist/httpQuery/index.js.map +0 -1
- package/dist/httpRange/http.range.d.ts.map +0 -1
- package/dist/httpRange/index.d.ts.map +0 -1
- package/dist/httpRange/index.js.map +0 -1
- package/dist/httpRedirect/http.redirect.d.ts.map +0 -1
- package/dist/httpRedirect/index.d.ts.map +0 -1
- package/dist/httpRedirect/index.js.map +0 -1
- package/dist/httpRequest/http.request.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.constant.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.constant.js.map +0 -1
- package/dist/httpRequest/httpRequest.context.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.id.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.js.map +0 -1
- package/dist/httpRequest/httpRequest.context.type.d.ts.map +0 -1
- package/dist/httpRequest/index.d.ts.map +0 -1
- package/dist/httpRequest/index.js.map +0 -1
- package/dist/httpResponse/core/httpResponse.statusText.d.ts.map +0 -1
- package/dist/httpResponse/core/httpResponse.type.d.ts.map +0 -1
- package/dist/httpResponse/core/index.d.ts.map +0 -1
- package/dist/httpResponse/http.response.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.context.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.helper.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.writer.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.writer.js.map +0 -1
- package/dist/httpResponse/index.d.ts.map +0 -1
- package/dist/httpResponse/index.js.map +0 -1
- package/dist/httpSecurity/httpSecurity.config.d.ts.map +0 -1
- package/dist/httpSecurity/httpSecurity.config.js.map +0 -1
- package/dist/httpSecurity/httpSecurity.guard.d.ts.map +0 -1
- package/dist/httpSecurity/httpSecurity.guard.js.map +0 -1
- package/dist/httpSecurity/httpSecurity.validator.d.ts.map +0 -1
- package/dist/httpSecurity/httpSecurity.validator.js.map +0 -1
- package/dist/httpSecurity/index.d.ts.map +0 -1
- package/dist/httpSecurity/index.js.map +0 -1
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/core/index.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurity.headers.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.factory.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.individual.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/index.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/index.js.map +0 -1
- package/dist/httpServer/core/httpServer.core.d.ts.map +0 -1
- package/dist/httpServer/core/httpServer.core.js.map +0 -1
- package/dist/httpServer/core/index.d.ts.map +0 -1
- package/dist/httpServer/core/index.js.map +0 -1
- package/dist/httpServer/factory/httpServer.factory.d.ts.map +0 -1
- package/dist/httpServer/factory/httpServer.factory.js.map +0 -1
- package/dist/httpServer/factory/index.d.ts.map +0 -1
- package/dist/httpServer/factory/index.js.map +0 -1
- package/dist/httpServer/index.d.ts.map +0 -1
- package/dist/httpServer/index.js.map +0 -1
- package/dist/httpServer/manager/httpServer.manager.d.ts.map +0 -1
- package/dist/httpServer/manager/httpServer.manager.js.map +0 -1
- package/dist/httpServer/manager/index.d.ts.map +0 -1
- package/dist/httpServer/manager/index.js.map +0 -1
- package/dist/httpServer/types/httpServer.type.d.ts.map +0 -1
- package/dist/httpServer/types/httpServer.type.js.map +0 -1
- package/dist/httpStatus/httpStatus.categoryPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.clientErrorConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.clientErrorTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.collection.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.commonPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.constant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.errorPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.info.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.informationalSuccessConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.lookup.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.name.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.predicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectErrorConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectErrorTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectionConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectionTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.semantics.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.serverErrorConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.serverErrorTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.statusConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.statusTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.type.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.validator.d.ts.map +0 -1
- package/dist/httpStatus/httpStatusCodes.constant.d.ts.map +0 -1
- package/dist/httpStatus/index.d.ts.map +0 -1
- package/dist/httpStatus/index.js.map +0 -1
- package/dist/httpStream/httpStream.backpressure.d.ts.map +0 -1
- package/dist/httpStream/httpStream.backpressure.js.map +0 -1
- package/dist/httpStream/httpStream.constants.d.ts.map +0 -1
- package/dist/httpStream/httpStream.constants.js.map +0 -1
- package/dist/httpStream/httpStream.consume.d.ts.map +0 -1
- package/dist/httpStream/httpStream.consume.js.map +0 -1
- package/dist/httpStream/httpStream.destroy.d.ts.map +0 -1
- package/dist/httpStream/httpStream.destroy.js.map +0 -1
- package/dist/httpStream/httpStream.error.d.ts.map +0 -1
- package/dist/httpStream/httpStream.error.js.map +0 -1
- package/dist/httpStream/httpStream.eventHelper.d.ts.map +0 -1
- package/dist/httpStream/httpStream.eventHelper.js.map +0 -1
- package/dist/httpStream/httpStream.helper.d.ts.map +0 -1
- package/dist/httpStream/httpStream.helper.js.map +0 -1
- package/dist/httpStream/httpStream.pipe.d.ts.map +0 -1
- package/dist/httpStream/httpStream.pipe.js.map +0 -1
- package/dist/httpStream/httpStream.progress.d.ts.map +0 -1
- package/dist/httpStream/httpStream.progress.js.map +0 -1
- package/dist/httpStream/httpStream.read.d.ts.map +0 -1
- package/dist/httpStream/httpStream.read.js.map +0 -1
- package/dist/httpStream/httpStream.request.d.ts.map +0 -1
- package/dist/httpStream/httpStream.request.js.map +0 -1
- package/dist/httpStream/httpStream.state.d.ts.map +0 -1
- package/dist/httpStream/httpStream.state.js.map +0 -1
- package/dist/httpStream/httpStream.transform.d.ts.map +0 -1
- package/dist/httpStream/httpStream.transform.js.map +0 -1
- package/dist/httpStream/httpStream.types.d.ts.map +0 -1
- package/dist/httpStream/httpStream.types.js.map +0 -1
- package/dist/httpStream/index.d.ts.map +0 -1
- package/dist/httpStream/index.js.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.compilation.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.core.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.helper.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.parsing.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.type.d.ts.map +0 -1
- package/dist/httpTrustProxy/index.d.ts.map +0 -1
- package/dist/httpTrustProxy/index.js.map +0 -1
- package/dist/httpTypes/http.types.d.ts.map +0 -1
- package/dist/httpTypes/http.types.js.map +0 -1
- package/dist/httpTypes/index.d.ts.map +0 -1
- package/dist/httpTypes/index.js.map +0 -1
- package/dist/httpUrl/http.url.d.ts.map +0 -1
- package/dist/httpUrl/index.d.ts.map +0 -1
- package/dist/httpUrl/index.js.map +0 -1
- package/dist/httpValidation/httpValidationAssertion.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationAuthority.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationAuthorization.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationCacheControl.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationContentLength.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationContentType.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationCookie.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationDate.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationETag.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationHeader.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationHostname.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationMessage.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationMethod.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationPort.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationRange.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationRequestTarget.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationStatusCode.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationToken.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationTypes.type.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationUrl.d.ts.map +0 -1
- package/dist/httpValidation/index.d.ts.map +0 -1
- package/dist/httpValidation/index.js.map +0 -1
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { HTTP_DEFAULTS } from "../httpConstants/http.constants.js";
|
|
1
2
|
/* -------------------------------------------------------------------------- */
|
|
2
3
|
/* Defaults */
|
|
3
4
|
/* -------------------------------------------------------------------------- */
|
|
4
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The package-wide default body limit.
|
|
7
|
+
*
|
|
8
|
+
* Aliases `HTTP_DEFAULTS.BODY_LIMIT` rather than repeating the literal, so
|
|
9
|
+
* the two cannot drift apart.
|
|
10
|
+
*/
|
|
11
|
+
export const DEFAULT_BODY_LIMIT = HTTP_DEFAULTS.BODY_LIMIT;
|
|
5
12
|
export const DEFAULT_BODY_ENCODING = "utf8";
|
|
6
13
|
/* -------------------------------------------------------------------------- */
|
|
7
14
|
/* Content Types */
|
|
@@ -60,6 +67,15 @@ export async function readBody(options) {
|
|
|
60
67
|
if (settled) {
|
|
61
68
|
return;
|
|
62
69
|
}
|
|
70
|
+
/*
|
|
71
|
+
* A body shorter than its declared Content-Length means the client
|
|
72
|
+
* stopped sending. Resolving it hands a silently truncated request to
|
|
73
|
+
* the caller as if it had arrived complete.
|
|
74
|
+
*/
|
|
75
|
+
if (contentLength !== undefined && total !== contentLength) {
|
|
76
|
+
fail(new HTTPBodyParseError("Request body length does not match Content-Length."));
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
63
79
|
settled = true;
|
|
64
80
|
cleanup();
|
|
65
81
|
resolve(Buffer.concat(chunks, total));
|
|
@@ -92,19 +108,32 @@ export async function readText(options) {
|
|
|
92
108
|
/* -------------------------------------------------------------------------- */
|
|
93
109
|
/* JSON Parsing */
|
|
94
110
|
/* -------------------------------------------------------------------------- */
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
111
|
+
/**
|
|
112
|
+
* Reads and parses a JSON request body.
|
|
113
|
+
*
|
|
114
|
+
* With `strict: true` an empty body is rejected and the top-level value must
|
|
115
|
+
* be an object or an array — a bare scalar such as `5`, `null` or `"x"` is
|
|
116
|
+
* not accepted as a request body.
|
|
117
|
+
*/
|
|
118
|
+
export async function readJSON(options) {
|
|
98
119
|
const text = await readText(options);
|
|
99
120
|
if (text.trim() === "") {
|
|
121
|
+
if (options.strict) {
|
|
122
|
+
throw new HTTPBodyParseError("Request body is empty.");
|
|
123
|
+
}
|
|
100
124
|
return undefined;
|
|
101
125
|
}
|
|
126
|
+
let parsed;
|
|
102
127
|
try {
|
|
103
|
-
|
|
128
|
+
parsed = JSON.parse(text);
|
|
104
129
|
}
|
|
105
130
|
catch (error) {
|
|
106
131
|
throw new HTTPBodyParseError("Invalid JSON request body.", error);
|
|
107
132
|
}
|
|
133
|
+
if (options.strict && (parsed === null || typeof parsed !== "object")) {
|
|
134
|
+
throw new HTTPBodyParseError("JSON request body must be an object or an array.");
|
|
135
|
+
}
|
|
136
|
+
return parsed;
|
|
108
137
|
}
|
|
109
138
|
/* -------------------------------------------------------------------------- */
|
|
110
139
|
/* Form URL Encoded */
|
|
@@ -112,9 +141,15 @@ export async function readJSON(options = {
|
|
|
112
141
|
export async function readForm(options) {
|
|
113
142
|
const text = await readText(options);
|
|
114
143
|
const params = new URLSearchParams(text);
|
|
115
|
-
|
|
144
|
+
/*
|
|
145
|
+
* A null-prototype container: a field named `__proto__` can neither replace
|
|
146
|
+
* the returned object's prototype nor be read back as an inherited member.
|
|
147
|
+
*/
|
|
148
|
+
const result = Object.create(null);
|
|
116
149
|
for (const [key, value] of params.entries()) {
|
|
117
|
-
const existing = result
|
|
150
|
+
const existing = Object.prototype.hasOwnProperty.call(result, key)
|
|
151
|
+
? result[key]
|
|
152
|
+
: undefined;
|
|
118
153
|
if (existing === undefined) {
|
|
119
154
|
result[key] = value;
|
|
120
155
|
continue;
|
|
@@ -160,21 +195,21 @@ export function isJSONContentType(contentType) {
|
|
|
160
195
|
if (!contentType) {
|
|
161
196
|
return false;
|
|
162
197
|
}
|
|
163
|
-
const normalized = contentType.split(";", 1)[0].trim().toLowerCase();
|
|
198
|
+
const normalized = (contentType.split(";", 1)[0] ?? "").trim().toLowerCase();
|
|
164
199
|
return normalized === BODY_CONTENT_TYPES.JSON || normalized.endsWith("+json");
|
|
165
200
|
}
|
|
166
201
|
export function isFormContentType(contentType) {
|
|
167
202
|
if (!contentType) {
|
|
168
203
|
return false;
|
|
169
204
|
}
|
|
170
|
-
return (contentType.split(";", 1)[0].trim().toLowerCase() ===
|
|
205
|
+
return ((contentType.split(";", 1)[0] ?? "").trim().toLowerCase() ===
|
|
171
206
|
BODY_CONTENT_TYPES.FORM_URLENCODED);
|
|
172
207
|
}
|
|
173
208
|
export function isTextContentType(contentType) {
|
|
174
209
|
if (!contentType) {
|
|
175
210
|
return false;
|
|
176
211
|
}
|
|
177
|
-
const normalized = contentType.split(";", 1)[0].trim().toLowerCase();
|
|
212
|
+
const normalized = (contentType.split(";", 1)[0] ?? "").trim().toLowerCase();
|
|
178
213
|
return (normalized.startsWith("text/") || normalized === BODY_CONTENT_TYPES.HTML);
|
|
179
214
|
}
|
|
180
215
|
export function isMultipartContentType(contentType) {
|
|
@@ -189,23 +224,48 @@ export function isMultipartContentType(contentType) {
|
|
|
189
224
|
/* -------------------------------------------------------------------------- */
|
|
190
225
|
/* Content Length */
|
|
191
226
|
/* -------------------------------------------------------------------------- */
|
|
227
|
+
/**
|
|
228
|
+
* Reads `Content-Length`.
|
|
229
|
+
*
|
|
230
|
+
* RFC 9112 §6.1 requires a recipient to reject a message that carries both
|
|
231
|
+
* `Content-Length` and `Transfer-Encoding`, and §6.3 to reject conflicting
|
|
232
|
+
* `Content-Length` values. Taking the first of a duplicated pair and ignoring
|
|
233
|
+
* the rest — as this did — is the attacker-favourable half of a CL.TE/CL.CL
|
|
234
|
+
* request-smuggling differential whenever the message reaches this helper
|
|
235
|
+
* from something other than Node's own HTTP/1 parser.
|
|
236
|
+
*/
|
|
192
237
|
export function getContentLength(request) {
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
195
|
-
return
|
|
238
|
+
const header = request.headers["content-length"];
|
|
239
|
+
if (header === undefined) {
|
|
240
|
+
return undefined;
|
|
196
241
|
}
|
|
197
|
-
|
|
242
|
+
const values = (Array.isArray(header) ? header : [header]).flatMap((entry) => typeof entry === "string" ? entry.split(",") : []);
|
|
243
|
+
if (values.length === 0) {
|
|
198
244
|
return undefined;
|
|
199
245
|
}
|
|
200
|
-
|
|
246
|
+
let length;
|
|
247
|
+
for (const value of values) {
|
|
248
|
+
const parsed = parseContentLength(value.trim());
|
|
249
|
+
if (parsed === undefined) {
|
|
250
|
+
throw new HTTPBodyParseError("Invalid Content-Length header.");
|
|
251
|
+
}
|
|
252
|
+
if (length !== undefined && parsed !== length) {
|
|
253
|
+
throw new HTTPBodyParseError("Conflicting Content-Length headers.");
|
|
254
|
+
}
|
|
255
|
+
length = parsed;
|
|
256
|
+
}
|
|
257
|
+
if (request.headers["transfer-encoding"] !== undefined) {
|
|
258
|
+
throw new HTTPBodyParseError("Content-Length and Transfer-Encoding must not both be present.");
|
|
259
|
+
}
|
|
260
|
+
return length;
|
|
201
261
|
}
|
|
202
262
|
function parseContentLength(value) {
|
|
203
|
-
if (
|
|
263
|
+
if (!/^\d+$/.test(value)) {
|
|
204
264
|
return undefined;
|
|
205
265
|
}
|
|
206
266
|
const parsed = Number(value);
|
|
207
267
|
if (!Number.isSafeInteger(parsed) || parsed < 0) {
|
|
208
|
-
|
|
268
|
+
return undefined;
|
|
209
269
|
}
|
|
210
270
|
return parsed;
|
|
211
271
|
}
|
|
@@ -40,7 +40,22 @@ export declare const DEFAULT_MAX_FILES = 100;
|
|
|
40
40
|
export declare function isMultipartContentType(contentType: string | undefined): boolean;
|
|
41
41
|
export declare function getMultipartBoundary(contentType: string | undefined): string | undefined;
|
|
42
42
|
export declare function parseFormData(options: HTTPFormDataParseOptions): Promise<HTTPFormData>;
|
|
43
|
+
/**
|
|
44
|
+
* Parses a multipart body into an {@link HTTPFormData}.
|
|
45
|
+
*
|
|
46
|
+
* The parsing itself is delegated to `httpMultipart`, which is the package's
|
|
47
|
+
* single multipart engine. This function only applies the form-data limits
|
|
48
|
+
* and shapes the result. Routing both entry points through one parser is what
|
|
49
|
+
* guarantees two components in the same application cannot see different
|
|
50
|
+
* field names, different filenames or different bytes for the same request.
|
|
51
|
+
*/
|
|
43
52
|
export declare function parseMultipartBody(body: Buffer, boundary: string, options: Omit<HTTPFormDataParseOptions, "request" | "limit">): HTTPFormData;
|
|
53
|
+
/**
|
|
54
|
+
* Reduces an uploaded filename to a safe basename.
|
|
55
|
+
*
|
|
56
|
+
* Delegates to the single implementation in `httpMultipart` so the three
|
|
57
|
+
* copies that used to exist cannot drift apart.
|
|
58
|
+
*/
|
|
44
59
|
export declare function sanitizeFilename(filename: string): string;
|
|
45
60
|
import { HttpFormDataError as HTTPFormDataError, HttpFormDataLimitError as HTTPFormDataLimitError, HttpFormDataParseError as HTTPFormDataParseError } from "@zudojs/errors";
|
|
46
61
|
export { HTTPFormDataError, HTTPFormDataLimitError, HTTPFormDataParseError };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { readBody } from "./http.body.js";
|
|
2
|
+
import { parseMultipartParts, sanitizeFilename as sanitizeMultipartFilename, } from "../httpMultipart/http.multipart.js";
|
|
2
3
|
/* -------------------------------------------------------------------------- */
|
|
3
4
|
/* Defaults */
|
|
4
5
|
/* -------------------------------------------------------------------------- */
|
|
@@ -82,87 +83,54 @@ export async function parseFormData(options) {
|
|
|
82
83
|
/* -------------------------------------------------------------------------- */
|
|
83
84
|
/* Multipart Parser */
|
|
84
85
|
/* -------------------------------------------------------------------------- */
|
|
86
|
+
/**
|
|
87
|
+
* Parses a multipart body into an {@link HTTPFormData}.
|
|
88
|
+
*
|
|
89
|
+
* The parsing itself is delegated to `httpMultipart`, which is the package's
|
|
90
|
+
* single multipart engine. This function only applies the form-data limits
|
|
91
|
+
* and shapes the result. Routing both entry points through one parser is what
|
|
92
|
+
* guarantees two components in the same application cannot see different
|
|
93
|
+
* field names, different filenames or different bytes for the same request.
|
|
94
|
+
*/
|
|
85
95
|
export function parseMultipartBody(body, boundary, options) {
|
|
86
96
|
const { maxFields = DEFAULT_MAX_FIELDS, maxFieldSize = DEFAULT_MAX_FIELD_SIZE, maxFileSize = DEFAULT_MAX_FILE_SIZE, maxFiles = DEFAULT_MAX_FILES, strict = true, } = options;
|
|
87
|
-
const
|
|
97
|
+
const multipartOptions = {
|
|
98
|
+
maxFields,
|
|
99
|
+
maxFieldSize,
|
|
100
|
+
maxFileSize,
|
|
101
|
+
maxFiles,
|
|
102
|
+
maxParts: maxFields + maxFiles,
|
|
103
|
+
allowUnnamedParts: !strict,
|
|
104
|
+
};
|
|
88
105
|
const result = new HTTPFormDataImpl();
|
|
89
|
-
let position = 0;
|
|
90
106
|
let fieldCount = 0;
|
|
91
107
|
let fileCount = 0;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
position = boundaryBuffer.length;
|
|
96
|
-
while (position < body.length) {
|
|
97
|
-
if (body[position] === 45 && body[position + 1] === 45) {
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
if (body[position] === 13 && body[position + 1] === 10) {
|
|
101
|
-
position += 2;
|
|
102
|
-
}
|
|
103
|
-
else if (strict) {
|
|
104
|
-
throw new HTTPFormDataParseError("Invalid multipart boundary separator.");
|
|
105
|
-
}
|
|
106
|
-
const nextBoundary = findBoundary(body, boundaryBuffer, position);
|
|
107
|
-
if (nextBoundary === -1) {
|
|
108
|
-
throw new HTTPFormDataParseError("Multipart closing boundary was not found.");
|
|
109
|
-
}
|
|
110
|
-
const partEnd = nextBoundary;
|
|
111
|
-
const headerEnd = findHeaderEnd(body, position, partEnd);
|
|
112
|
-
if (headerEnd === -1) {
|
|
113
|
-
throw new HTTPFormDataParseError("Multipart part headers are invalid.");
|
|
114
|
-
}
|
|
115
|
-
const headerBuffer = body.subarray(position, headerEnd);
|
|
116
|
-
const headers = parsePartHeaders(headerBuffer);
|
|
117
|
-
const disposition = headers.get("content-disposition");
|
|
118
|
-
if (!disposition) {
|
|
119
|
-
if (strict) {
|
|
120
|
-
throw new HTTPFormDataParseError("Multipart part is missing Content-Disposition.");
|
|
121
|
-
}
|
|
122
|
-
position = nextBoundary + boundaryBuffer.length;
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
const metadata = parseContentDisposition(disposition);
|
|
126
|
-
if (!metadata.name) {
|
|
127
|
-
if (strict) {
|
|
128
|
-
throw new HTTPFormDataParseError("Multipart part is missing a field name.");
|
|
129
|
-
}
|
|
130
|
-
position = nextBoundary + boundaryBuffer.length;
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
const dataStart = headerEnd + 4;
|
|
134
|
-
const dataEnd = partEnd;
|
|
135
|
-
const data = body.subarray(dataStart, dataEnd);
|
|
136
|
-
if (metadata.filename !== undefined) {
|
|
108
|
+
for (const part of parseMultipartParts(body, boundary, multipartOptions)) {
|
|
109
|
+
if (part.filename !== undefined) {
|
|
137
110
|
fileCount += 1;
|
|
138
111
|
if (fileCount > maxFiles) {
|
|
139
112
|
throw new HTTPFormDataLimitError("Maximum file count exceeded.");
|
|
140
113
|
}
|
|
141
|
-
if (data.length > maxFileSize) {
|
|
114
|
+
if (part.data.length > maxFileSize) {
|
|
142
115
|
throw new HTTPFormDataLimitError("Multipart file exceeds the configured size limit.");
|
|
143
116
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
size: data.length,
|
|
151
|
-
data: Buffer.from(data),
|
|
117
|
+
result.append(part.name, {
|
|
118
|
+
fieldName: part.name,
|
|
119
|
+
filename: sanitizeFilename(part.filename),
|
|
120
|
+
contentType: part.contentType ?? "application/octet-stream",
|
|
121
|
+
size: part.data.length,
|
|
122
|
+
data: Buffer.from(part.data),
|
|
152
123
|
});
|
|
124
|
+
continue;
|
|
153
125
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
throw new HTTPFormDataLimitError("Multipart field exceeds the configured size limit.");
|
|
161
|
-
}
|
|
162
|
-
const charset = getCharset(headers.get("content-type"));
|
|
163
|
-
result.append(metadata.name, data.toString(charset));
|
|
126
|
+
fieldCount += 1;
|
|
127
|
+
if (fieldCount > maxFields) {
|
|
128
|
+
throw new HTTPFormDataLimitError("Maximum field count exceeded.");
|
|
129
|
+
}
|
|
130
|
+
if (part.data.length > maxFieldSize) {
|
|
131
|
+
throw new HTTPFormDataLimitError("Multipart field exceeds the configured size limit.");
|
|
164
132
|
}
|
|
165
|
-
|
|
133
|
+
result.append(part.name, decodePartText(part.data, part.contentType));
|
|
166
134
|
}
|
|
167
135
|
return result;
|
|
168
136
|
}
|
|
@@ -205,7 +173,8 @@ class HTTPFormDataImpl {
|
|
|
205
173
|
toObject() {
|
|
206
174
|
const result = {};
|
|
207
175
|
for (const [name, values] of this.data) {
|
|
208
|
-
|
|
176
|
+
const single = values.length === 1 ? values[0] : undefined;
|
|
177
|
+
result[name] = single === undefined ? [...values] : single;
|
|
209
178
|
}
|
|
210
179
|
return result;
|
|
211
180
|
}
|
|
@@ -238,111 +207,54 @@ class HTTPFormDataImpl {
|
|
|
238
207
|
}
|
|
239
208
|
}
|
|
240
209
|
/* -------------------------------------------------------------------------- */
|
|
241
|
-
/* Headers */
|
|
242
|
-
/* -------------------------------------------------------------------------- */
|
|
243
|
-
function parsePartHeaders(input) {
|
|
244
|
-
const text = input.toString("latin1");
|
|
245
|
-
const result = new Map();
|
|
246
|
-
for (const line of text.split("\r\n")) {
|
|
247
|
-
const separator = line.indexOf(":");
|
|
248
|
-
if (separator <= 0) {
|
|
249
|
-
continue;
|
|
250
|
-
}
|
|
251
|
-
const name = line.slice(0, separator).trim().toLowerCase();
|
|
252
|
-
const value = line.slice(separator + 1).trim();
|
|
253
|
-
result.set(name, value);
|
|
254
|
-
}
|
|
255
|
-
return result;
|
|
256
|
-
}
|
|
257
|
-
function parseContentDisposition(value) {
|
|
258
|
-
const parts = value.split(";");
|
|
259
|
-
if (parts[0]?.trim().toLowerCase() !== "form-data") {
|
|
260
|
-
return {
|
|
261
|
-
name: undefined,
|
|
262
|
-
filename: undefined,
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
let name;
|
|
266
|
-
let filename;
|
|
267
|
-
for (const part of parts.slice(1)) {
|
|
268
|
-
const separator = part.indexOf("=");
|
|
269
|
-
if (separator === -1) {
|
|
270
|
-
continue;
|
|
271
|
-
}
|
|
272
|
-
const key = part.slice(0, separator).trim().toLowerCase();
|
|
273
|
-
let parameter = part.slice(separator + 1).trim();
|
|
274
|
-
if (parameter.length >= 2 &&
|
|
275
|
-
parameter.startsWith('"') &&
|
|
276
|
-
parameter.endsWith('"')) {
|
|
277
|
-
parameter = parameter.slice(1, -1);
|
|
278
|
-
}
|
|
279
|
-
parameter = parameter.replace(/\\"/g, '"');
|
|
280
|
-
if (key === "name") {
|
|
281
|
-
name = parameter;
|
|
282
|
-
}
|
|
283
|
-
if (key === "filename") {
|
|
284
|
-
filename = parameter;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
return {
|
|
288
|
-
name,
|
|
289
|
-
filename,
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
/* -------------------------------------------------------------------------- */
|
|
293
|
-
/* Multipart Search */
|
|
294
|
-
/* -------------------------------------------------------------------------- */
|
|
295
|
-
function findBoundary(body, boundary, start) {
|
|
296
|
-
for (let index = start; index <= body.length - boundary.length; index += 1) {
|
|
297
|
-
if (body[index] !== 13 || body[index + 1] !== 10) {
|
|
298
|
-
continue;
|
|
299
|
-
}
|
|
300
|
-
if (body.subarray(index + 2, index + 2 + boundary.length).equals(boundary)) {
|
|
301
|
-
return index;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
return -1;
|
|
305
|
-
}
|
|
306
|
-
function findHeaderEnd(body, start, end) {
|
|
307
|
-
for (let index = start; index + 3 < end; index += 1) {
|
|
308
|
-
if (body[index] === 13 &&
|
|
309
|
-
body[index + 1] === 10 &&
|
|
310
|
-
body[index + 2] === 13 &&
|
|
311
|
-
body[index + 3] === 10) {
|
|
312
|
-
return index;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
return -1;
|
|
316
|
-
}
|
|
317
|
-
/* -------------------------------------------------------------------------- */
|
|
318
210
|
/* Filename Security */
|
|
319
211
|
/* -------------------------------------------------------------------------- */
|
|
212
|
+
/**
|
|
213
|
+
* Reduces an uploaded filename to a safe basename.
|
|
214
|
+
*
|
|
215
|
+
* Delegates to the single implementation in `httpMultipart` so the three
|
|
216
|
+
* copies that used to exist cannot drift apart.
|
|
217
|
+
*/
|
|
320
218
|
export function sanitizeFilename(filename) {
|
|
321
|
-
|
|
322
|
-
return normalized.replace(/[\x00-\x1f\x7f]/g, "").trim();
|
|
219
|
+
return sanitizeMultipartFilename(filename);
|
|
323
220
|
}
|
|
324
221
|
/* -------------------------------------------------------------------------- */
|
|
325
222
|
/* Charset */
|
|
326
223
|
/* -------------------------------------------------------------------------- */
|
|
224
|
+
/**
|
|
225
|
+
* Decodes a field's bytes using the charset the part declared.
|
|
226
|
+
*
|
|
227
|
+
* `TextDecoder` covers the whole WHATWG encoding set, so `utf-16le`,
|
|
228
|
+
* `shift_jis` and the rest decode correctly instead of being silently
|
|
229
|
+
* mangled into UTF-8 replacement characters. A charset no decoder recognises
|
|
230
|
+
* is reported rather than swallowed.
|
|
231
|
+
*/
|
|
232
|
+
function decodePartText(data, contentType) {
|
|
233
|
+
const charset = getCharset(contentType);
|
|
234
|
+
if (charset === undefined) {
|
|
235
|
+
return data.toString("utf8");
|
|
236
|
+
}
|
|
237
|
+
try {
|
|
238
|
+
return new TextDecoder(charset).decode(data);
|
|
239
|
+
}
|
|
240
|
+
catch {
|
|
241
|
+
throw new HTTPFormDataParseError("Multipart part declares an unsupported charset.");
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Reads the `charset` parameter of a media type.
|
|
246
|
+
*
|
|
247
|
+
* The parameter name is anchored to a parameter boundary so a `charset=`
|
|
248
|
+
* substring inside another parameter's quoted value cannot be mistaken for
|
|
249
|
+
* the real one.
|
|
250
|
+
*/
|
|
327
251
|
function getCharset(contentType) {
|
|
328
252
|
if (!contentType) {
|
|
329
|
-
return
|
|
330
|
-
}
|
|
331
|
-
const match = /charset\s*=\s*"?([^;"\s]+)"?/i.exec(contentType);
|
|
332
|
-
if (!match?.[1]) {
|
|
333
|
-
return "utf8";
|
|
334
|
-
}
|
|
335
|
-
const charset = match[1].toLowerCase();
|
|
336
|
-
if (charset === "utf-8" || charset === "utf8") {
|
|
337
|
-
return "utf8";
|
|
338
|
-
}
|
|
339
|
-
if (charset === "ascii") {
|
|
340
|
-
return "ascii";
|
|
341
|
-
}
|
|
342
|
-
if (charset === "latin1" || charset === "iso-8859-1") {
|
|
343
|
-
return "latin1";
|
|
253
|
+
return undefined;
|
|
344
254
|
}
|
|
345
|
-
|
|
255
|
+
const match = /(?:^|;)\s*charset\s*=\s*(?:"([^"]*)"|([^;"\s]+))/i.exec(contentType);
|
|
256
|
+
const charset = (match?.[1] ?? match?.[2])?.trim().toLowerCase();
|
|
257
|
+
return charset && charset.length > 0 ? charset : undefined;
|
|
346
258
|
}
|
|
347
259
|
/* -------------------------------------------------------------------------- */
|
|
348
260
|
/* Validation */
|
|
@@ -25,8 +25,20 @@ export declare function parseTextBody(request: IncomingMessage, options?: BodyPa
|
|
|
25
25
|
export declare function parseRawBody(request: IncomingMessage, options?: BodyParserOptions): Promise<Buffer>;
|
|
26
26
|
export declare function parseMultipartBody(request: IncomingMessage, options?: BodyParserOptions): Promise<MultipartForm>;
|
|
27
27
|
export declare function createBodyParser(options?: BodyParserOptions): BodyParser;
|
|
28
|
+
/**
|
|
29
|
+
* Reports whether a request is framed as carrying a body.
|
|
30
|
+
*
|
|
31
|
+
* A message carrying both `Content-Length` and `Transfer-Encoding` is
|
|
32
|
+
* rejected rather than being resolved in favour of either framing — RFC 9112
|
|
33
|
+
* §6.1 requires that, and silently picking one is the CL.TE half of a
|
|
34
|
+
* request-smuggling differential.
|
|
35
|
+
*/
|
|
28
36
|
export declare function hasRequestBody(request: IncomingMessage): boolean;
|
|
29
37
|
export declare function getRequestContentType(request: IncomingMessage): string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Reads `Content-Length`, rejecting duplicate headers whose values disagree
|
|
40
|
+
* and a message that also carries `Transfer-Encoding`.
|
|
41
|
+
*/
|
|
30
42
|
export declare function getRequestContentLength(request: IncomingMessage): number | undefined;
|
|
31
43
|
export declare function isJSONRequest(request: IncomingMessage): boolean;
|
|
32
44
|
export declare function isFormRequest(request: IncomingMessage): boolean;
|
|
@@ -15,8 +15,14 @@ export async function parseRequestBody(request, options = {}) {
|
|
|
15
15
|
const contentType = getRequestContentType(request);
|
|
16
16
|
const contentLength = getRequestContentLength(request);
|
|
17
17
|
const format = detectBodyFormat(contentType);
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/*
|
|
19
|
+
* `strictContentType` means "only accept media types this parser
|
|
20
|
+
* understands". Omitting the header is easier than supplying an
|
|
21
|
+
* unrecognised one, so a missing Content-Type must be rejected too or the
|
|
22
|
+
* option only blocks the harmless case.
|
|
23
|
+
*/
|
|
24
|
+
if (options.strictContentType && format === "raw") {
|
|
25
|
+
throw new UnsupportedBodyTypeError(contentType ?? "(missing)");
|
|
20
26
|
}
|
|
21
27
|
const body = await parseByFormat(request, format, options);
|
|
22
28
|
return {
|
|
@@ -61,7 +67,6 @@ async function parseByFormat(request, format, options) {
|
|
|
61
67
|
request,
|
|
62
68
|
limit: options.limit ?? DEFAULT_BODY_LIMIT,
|
|
63
69
|
encoding: options.encoding ?? DEFAULT_BODY_ENCODING,
|
|
64
|
-
strict: options.strict,
|
|
65
70
|
});
|
|
66
71
|
case "multipart":
|
|
67
72
|
return parseMultipart(request, {
|
|
@@ -69,6 +74,8 @@ async function parseByFormat(request, format, options) {
|
|
|
69
74
|
maxFileSize: options.multipart?.maxFileSize,
|
|
70
75
|
maxFiles: options.multipart?.maxFiles,
|
|
71
76
|
maxFields: options.multipart?.maxFields,
|
|
77
|
+
maxFieldSize: options.multipart?.maxFieldSize,
|
|
78
|
+
maxParts: options.multipart?.maxParts,
|
|
72
79
|
encoding: options.multipart?.encoding ??
|
|
73
80
|
options.encoding ??
|
|
74
81
|
DEFAULT_BODY_ENCODING,
|
|
@@ -78,7 +85,6 @@ async function parseByFormat(request, format, options) {
|
|
|
78
85
|
request,
|
|
79
86
|
limit: options.limit ?? DEFAULT_BODY_LIMIT,
|
|
80
87
|
encoding: options.encoding ?? DEFAULT_BODY_ENCODING,
|
|
81
|
-
strict: options.strict,
|
|
82
88
|
});
|
|
83
89
|
case "raw":
|
|
84
90
|
default:
|
|
@@ -86,7 +92,6 @@ async function parseByFormat(request, format, options) {
|
|
|
86
92
|
request,
|
|
87
93
|
limit: options.limit ?? DEFAULT_BODY_LIMIT,
|
|
88
94
|
encoding: options.encoding ?? DEFAULT_BODY_ENCODING,
|
|
89
|
-
strict: options.strict,
|
|
90
95
|
});
|
|
91
96
|
}
|
|
92
97
|
}
|
|
@@ -106,7 +111,6 @@ export async function parseFormBody(request, options = {}) {
|
|
|
106
111
|
request,
|
|
107
112
|
limit: options.limit ?? DEFAULT_BODY_LIMIT,
|
|
108
113
|
encoding: options.encoding ?? DEFAULT_BODY_ENCODING,
|
|
109
|
-
strict: options.strict,
|
|
110
114
|
});
|
|
111
115
|
}
|
|
112
116
|
export async function parseTextBody(request, options = {}) {
|
|
@@ -114,7 +118,6 @@ export async function parseTextBody(request, options = {}) {
|
|
|
114
118
|
request,
|
|
115
119
|
limit: options.limit ?? DEFAULT_BODY_LIMIT,
|
|
116
120
|
encoding: options.encoding ?? DEFAULT_BODY_ENCODING,
|
|
117
|
-
strict: options.strict,
|
|
118
121
|
});
|
|
119
122
|
}
|
|
120
123
|
export async function parseRawBody(request, options = {}) {
|
|
@@ -122,7 +125,6 @@ export async function parseRawBody(request, options = {}) {
|
|
|
122
125
|
request,
|
|
123
126
|
limit: options.limit ?? DEFAULT_BODY_LIMIT,
|
|
124
127
|
encoding: options.encoding ?? DEFAULT_BODY_ENCODING,
|
|
125
|
-
strict: options.strict,
|
|
126
128
|
});
|
|
127
129
|
}
|
|
128
130
|
export async function parseMultipartBody(request, options = {}) {
|
|
@@ -131,6 +133,8 @@ export async function parseMultipartBody(request, options = {}) {
|
|
|
131
133
|
maxFileSize: options.multipart?.maxFileSize,
|
|
132
134
|
maxFiles: options.multipart?.maxFiles,
|
|
133
135
|
maxFields: options.multipart?.maxFields,
|
|
136
|
+
maxFieldSize: options.multipart?.maxFieldSize,
|
|
137
|
+
maxParts: options.multipart?.maxParts,
|
|
134
138
|
encoding: options.multipart?.encoding ?? options.encoding ?? DEFAULT_BODY_ENCODING,
|
|
135
139
|
});
|
|
136
140
|
}
|
|
@@ -151,6 +155,14 @@ export function createBodyParser(options = {}) {
|
|
|
151
155
|
/* -------------------------------------------------------------------------- */
|
|
152
156
|
/* Request Inspection */
|
|
153
157
|
/* -------------------------------------------------------------------------- */
|
|
158
|
+
/**
|
|
159
|
+
* Reports whether a request is framed as carrying a body.
|
|
160
|
+
*
|
|
161
|
+
* A message carrying both `Content-Length` and `Transfer-Encoding` is
|
|
162
|
+
* rejected rather than being resolved in favour of either framing — RFC 9112
|
|
163
|
+
* §6.1 requires that, and silently picking one is the CL.TE half of a
|
|
164
|
+
* request-smuggling differential.
|
|
165
|
+
*/
|
|
154
166
|
export function hasRequestBody(request) {
|
|
155
167
|
const method = request.method?.toUpperCase();
|
|
156
168
|
if (method === "GET" || method === "HEAD" || method === "OPTIONS") {
|
|
@@ -182,15 +194,33 @@ export function getRequestContentType(request) {
|
|
|
182
194
|
/* -------------------------------------------------------------------------- */
|
|
183
195
|
/* Content Length */
|
|
184
196
|
/* -------------------------------------------------------------------------- */
|
|
197
|
+
/**
|
|
198
|
+
* Reads `Content-Length`, rejecting duplicate headers whose values disagree
|
|
199
|
+
* and a message that also carries `Transfer-Encoding`.
|
|
200
|
+
*/
|
|
185
201
|
export function getRequestContentLength(request) {
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
202
|
+
const header = request.headers["content-length"];
|
|
203
|
+
if (header === undefined) {
|
|
204
|
+
return undefined;
|
|
205
|
+
}
|
|
206
|
+
const values = (Array.isArray(header) ? header : [header]).flatMap((entry) => typeof entry === "string" ? entry.split(",") : []);
|
|
207
|
+
if (values.length === 0) {
|
|
189
208
|
return undefined;
|
|
190
209
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
210
|
+
let length;
|
|
211
|
+
for (const value of values) {
|
|
212
|
+
const raw = value.trim();
|
|
213
|
+
const parsed = Number(raw);
|
|
214
|
+
if (!/^\d+$/.test(raw) || !Number.isSafeInteger(parsed)) {
|
|
215
|
+
throw new InvalidContentLengthError(raw);
|
|
216
|
+
}
|
|
217
|
+
if (length !== undefined && parsed !== length) {
|
|
218
|
+
throw new InvalidContentLengthError(values.join(", "));
|
|
219
|
+
}
|
|
220
|
+
length = parsed;
|
|
221
|
+
}
|
|
222
|
+
if (request.headers["transfer-encoding"] !== undefined) {
|
|
223
|
+
throw new InvalidContentLengthError("Content-Length and Transfer-Encoding must not both be present.");
|
|
194
224
|
}
|
|
195
225
|
return length;
|
|
196
226
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache control header parsing and formatting.
|
|
3
|
+
*
|
|
4
|
+
* @module httpCacheControl/parsing
|
|
5
|
+
*/
|
|
6
|
+
import type { CacheControlDirectives, CacheControlOptions } from "./httpCacheControl.type.js";
|
|
7
|
+
/**
|
|
8
|
+
* Parses a Cache-Control header value into directives.
|
|
9
|
+
*
|
|
10
|
+
* The comma split honours `quoted-string`, so the qualified form
|
|
11
|
+
* `no-cache="Set-Cookie, Authorization"` survives instead of being torn into
|
|
12
|
+
* an unqualified `no-cache` — which would let a shared cache store and replay
|
|
13
|
+
* a response's `Set-Cookie` and `Authorization` headers to other users.
|
|
14
|
+
*
|
|
15
|
+
* A directive that appears more than once with conflicting values is dropped
|
|
16
|
+
* entirely, per RFC 9111 section 4.2.1; taking the last value is the
|
|
17
|
+
* attacker-favourable choice.
|
|
18
|
+
*
|
|
19
|
+
* @param header - The raw header value.
|
|
20
|
+
* @returns The parsed directives.
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseCacheControl(header: string | undefined): CacheControlDirectives;
|
|
23
|
+
/**
|
|
24
|
+
* Formats CacheControlDirectives into a Cache-Control header string.
|
|
25
|
+
*/
|
|
26
|
+
export declare function formatCacheControl(directives: CacheControlOptions): string;
|
|
27
|
+
//# sourceMappingURL=httpCacheControl.parse.d.ts.map
|