@zudojs/http 0.1.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +15 -7
- 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 +23 -4
- package/dist/httpAdapter/http.adapters.d.ts +71 -0
- package/dist/httpAdapter/httpAdapter.errorResponse.d.ts +35 -0
- package/dist/httpAdapter/httpAdapter.errorResponse.js +120 -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 +29 -0
- package/dist/httpAdapter/node/httpNode.adapter.js +161 -23
- package/dist/httpAdapter/node/httpNode.request.d.ts +33 -0
- package/dist/httpAdapter/node/httpNode.request.js +183 -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 +179 -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 +210 -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 +70 -0
- package/dist/httpResponse/httpResponse.context.js +207 -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 +73 -0
- package/dist/httpResponse/httpResponse.helper.js +174 -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 +317 -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 +27 -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
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { HTTPRequest, HTTPResponse } from "../httpTypes/http.types.js";
|
|
2
|
+
export interface CookieOptions {
|
|
3
|
+
readonly maxAge?: number;
|
|
4
|
+
readonly expires?: Date;
|
|
5
|
+
readonly domain?: string;
|
|
6
|
+
readonly path?: string;
|
|
7
|
+
readonly secure?: boolean;
|
|
8
|
+
readonly httpOnly?: boolean;
|
|
9
|
+
readonly sameSite?: CookieSameSite;
|
|
10
|
+
readonly partitioned?: boolean;
|
|
11
|
+
readonly priority?: CookiePriority;
|
|
12
|
+
}
|
|
13
|
+
export type CookieSameSite = "strict" | "lax" | "none";
|
|
14
|
+
export type CookiePriority = "low" | "medium" | "high";
|
|
15
|
+
export type CookieValue = string | number | boolean;
|
|
16
|
+
export declare class CookieCollection {
|
|
17
|
+
private readonly values;
|
|
18
|
+
constructor(cookies?: Record<string, string> | Map<string, string>);
|
|
19
|
+
get(name: string): string | undefined;
|
|
20
|
+
has(name: string): boolean;
|
|
21
|
+
set(name: string, value: string): this;
|
|
22
|
+
delete(name: string): boolean;
|
|
23
|
+
clear(): void;
|
|
24
|
+
entries(): IterableIterator<[string, string]>;
|
|
25
|
+
keys(): IterableIterator<string>;
|
|
26
|
+
valuesIterator(): IterableIterator<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Materialises the jar as a plain record.
|
|
29
|
+
*
|
|
30
|
+
* The record has a `null` prototype so that a cookie named `__proto__`,
|
|
31
|
+
* `constructor` or `toString` can neither reach `Object.prototype` nor be
|
|
32
|
+
* confused with an inherited member on lookup.
|
|
33
|
+
*
|
|
34
|
+
* @returns A null-prototype record of cookie name to value.
|
|
35
|
+
*/
|
|
36
|
+
toObject(): Record<string, string>;
|
|
37
|
+
get size(): number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Maximum number of cookies parsed from one `Cookie` header.
|
|
41
|
+
*/
|
|
42
|
+
export declare const MAX_COOKIE_COUNT = 128;
|
|
43
|
+
/**
|
|
44
|
+
* Maximum `Cookie` header length accepted, in characters.
|
|
45
|
+
*/
|
|
46
|
+
export declare const MAX_COOKIE_HEADER_LENGTH: number;
|
|
47
|
+
/**
|
|
48
|
+
* Parses a `Cookie` request header.
|
|
49
|
+
*
|
|
50
|
+
* This function never throws: the header is fully attacker-controlled, so a
|
|
51
|
+
* malformed entry is skipped rather than allowed to abort the request. When
|
|
52
|
+
* a name occurs more than once the **first** occurrence wins, matching
|
|
53
|
+
* RFC 6265 section 5.4 ordering (most specific path first) and every browser
|
|
54
|
+
* and mainstream server library.
|
|
55
|
+
*
|
|
56
|
+
* @param header - The raw `Cookie` header value.
|
|
57
|
+
* @returns The parsed cookie jar.
|
|
58
|
+
*/
|
|
59
|
+
export declare function parseCookies(header: string | undefined): CookieCollection;
|
|
60
|
+
export declare function serializeCookie(name: string, value: CookieValue, options?: CookieOptions): string;
|
|
61
|
+
export interface CookieManager {
|
|
62
|
+
get(name: string): string | undefined;
|
|
63
|
+
has(name: string): boolean;
|
|
64
|
+
set(name: string, value: CookieValue, options?: CookieOptions): void;
|
|
65
|
+
delete(name: string, options?: CookieOptions): void;
|
|
66
|
+
parse(): CookieCollection;
|
|
67
|
+
}
|
|
68
|
+
export declare function getRequestCookies(request: HTTPRequest): CookieCollection;
|
|
69
|
+
export declare function getRequestCookie(request: HTTPRequest, name: string): string | undefined;
|
|
70
|
+
export declare function setResponseCookie(response: HTTPResponse, name: string, value: CookieValue, options?: CookieOptions): void;
|
|
71
|
+
export declare function deleteResponseCookie(response: HTTPResponse, name: string, options?: CookieOptions): void;
|
|
72
|
+
export declare function appendSetCookieHeader(response: HTTPResponse, cookie: string): void;
|
|
73
|
+
export declare function createCookieManager(request: HTTPRequest, response: HTTPResponse): CookieManager;
|
|
74
|
+
export interface SignedCookieOptions extends CookieOptions {
|
|
75
|
+
readonly secret: string;
|
|
76
|
+
}
|
|
77
|
+
export interface SignedCookie {
|
|
78
|
+
readonly value: string;
|
|
79
|
+
readonly signature: string;
|
|
80
|
+
}
|
|
81
|
+
export declare function serializeSignedCookie(name: string, value: string, options: SignedCookieOptions): string;
|
|
82
|
+
export declare function parseSignedCookie(value: string | undefined, secret: string): string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Signs a cookie value with HMAC-SHA256.
|
|
85
|
+
*
|
|
86
|
+
* @param value - The value to authenticate.
|
|
87
|
+
* @param secret - The signing key.
|
|
88
|
+
* @returns The base64url signature.
|
|
89
|
+
* @throws {TypeError} If the secret is empty.
|
|
90
|
+
*/
|
|
91
|
+
export declare function signCookieValue(value: string, secret: string): string;
|
|
92
|
+
//# sourceMappingURL=http.cookies.d.ts.map
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
import { createHmac, timingSafeEqual as cryptoTimingSafeEqual, } from "node:crypto";
|
|
2
|
+
/* -------------------------------------------------------------------------- */
|
|
3
|
+
/* Cookie Collection */
|
|
4
|
+
/* -------------------------------------------------------------------------- */
|
|
5
|
+
export class CookieCollection {
|
|
6
|
+
values = new Map();
|
|
7
|
+
constructor(cookies = {}) {
|
|
8
|
+
if (cookies instanceof Map) {
|
|
9
|
+
for (const [name, value] of cookies) {
|
|
10
|
+
this.values.set(name, value);
|
|
11
|
+
}
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
for (const [name, value] of Object.entries(cookies)) {
|
|
15
|
+
this.values.set(name, value);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
get(name) {
|
|
19
|
+
return this.values.get(name);
|
|
20
|
+
}
|
|
21
|
+
has(name) {
|
|
22
|
+
return this.values.has(name);
|
|
23
|
+
}
|
|
24
|
+
set(name, value) {
|
|
25
|
+
validateCookieName(name);
|
|
26
|
+
this.values.set(name, value);
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
delete(name) {
|
|
30
|
+
return this.values.delete(name);
|
|
31
|
+
}
|
|
32
|
+
clear() {
|
|
33
|
+
this.values.clear();
|
|
34
|
+
}
|
|
35
|
+
entries() {
|
|
36
|
+
return this.values.entries();
|
|
37
|
+
}
|
|
38
|
+
keys() {
|
|
39
|
+
return this.values.keys();
|
|
40
|
+
}
|
|
41
|
+
valuesIterator() {
|
|
42
|
+
return this.values.values();
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Materialises the jar as a plain record.
|
|
46
|
+
*
|
|
47
|
+
* The record has a `null` prototype so that a cookie named `__proto__`,
|
|
48
|
+
* `constructor` or `toString` can neither reach `Object.prototype` nor be
|
|
49
|
+
* confused with an inherited member on lookup.
|
|
50
|
+
*
|
|
51
|
+
* @returns A null-prototype record of cookie name to value.
|
|
52
|
+
*/
|
|
53
|
+
toObject() {
|
|
54
|
+
const result = Object.create(null);
|
|
55
|
+
for (const [name, value] of this.values) {
|
|
56
|
+
result[name] = value;
|
|
57
|
+
}
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
get size() {
|
|
61
|
+
return this.values.size;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/* -------------------------------------------------------------------------- */
|
|
65
|
+
/* Parse Cookie Header */
|
|
66
|
+
/* -------------------------------------------------------------------------- */
|
|
67
|
+
/**
|
|
68
|
+
* Maximum number of cookies parsed from one `Cookie` header.
|
|
69
|
+
*/
|
|
70
|
+
export const MAX_COOKIE_COUNT = 128;
|
|
71
|
+
/**
|
|
72
|
+
* Maximum `Cookie` header length accepted, in characters.
|
|
73
|
+
*/
|
|
74
|
+
export const MAX_COOKIE_HEADER_LENGTH = 32 * 1024;
|
|
75
|
+
/**
|
|
76
|
+
* RFC 6265 `cookie-name`, which is an RFC 9110 `token`.
|
|
77
|
+
*/
|
|
78
|
+
const COOKIE_NAME_TOKEN = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
79
|
+
/**
|
|
80
|
+
* Parses a `Cookie` request header.
|
|
81
|
+
*
|
|
82
|
+
* This function never throws: the header is fully attacker-controlled, so a
|
|
83
|
+
* malformed entry is skipped rather than allowed to abort the request. When
|
|
84
|
+
* a name occurs more than once the **first** occurrence wins, matching
|
|
85
|
+
* RFC 6265 section 5.4 ordering (most specific path first) and every browser
|
|
86
|
+
* and mainstream server library.
|
|
87
|
+
*
|
|
88
|
+
* @param header - The raw `Cookie` header value.
|
|
89
|
+
* @returns The parsed cookie jar.
|
|
90
|
+
*/
|
|
91
|
+
export function parseCookies(header) {
|
|
92
|
+
const values = new Map();
|
|
93
|
+
if (!header) {
|
|
94
|
+
return new CookieCollection(values);
|
|
95
|
+
}
|
|
96
|
+
const bounded = header.slice(0, MAX_COOKIE_HEADER_LENGTH);
|
|
97
|
+
for (const part of splitCookieHeader(bounded)) {
|
|
98
|
+
if (values.size >= MAX_COOKIE_COUNT) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
const separator = part.indexOf("=");
|
|
102
|
+
if (separator <= 0) {
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
const name = part.slice(0, separator).trim();
|
|
106
|
+
const rawValue = part.slice(separator + 1).trim();
|
|
107
|
+
if (!COOKIE_NAME_TOKEN.test(name)) {
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
/*
|
|
111
|
+
* First occurrence wins. Taking the last would let an attacker who can
|
|
112
|
+
* set a cookie on a parent domain or a less specific path override the
|
|
113
|
+
* legitimate one, while the browser still considers the first
|
|
114
|
+
* authoritative.
|
|
115
|
+
*/
|
|
116
|
+
if (values.has(name)) {
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
values.set(name, decodeCookieValue(rawValue));
|
|
120
|
+
}
|
|
121
|
+
return new CookieCollection(values);
|
|
122
|
+
}
|
|
123
|
+
/* -------------------------------------------------------------------------- */
|
|
124
|
+
/* Serialize Cookie */
|
|
125
|
+
/* -------------------------------------------------------------------------- */
|
|
126
|
+
export function serializeCookie(name, value, options = {}) {
|
|
127
|
+
validateCookieName(name);
|
|
128
|
+
validateCookiePrefix(name, options);
|
|
129
|
+
const encodedName = name;
|
|
130
|
+
const encodedValue = encodeCookieValue(String(value));
|
|
131
|
+
const parts = [`${encodedName}=${encodedValue}`];
|
|
132
|
+
if (options.maxAge !== undefined) {
|
|
133
|
+
if (!Number.isFinite(options.maxAge)) {
|
|
134
|
+
throw new TypeError("Cookie maxAge must be a finite number.");
|
|
135
|
+
}
|
|
136
|
+
parts.push(`Max-Age=${Math.floor(options.maxAge)}`);
|
|
137
|
+
}
|
|
138
|
+
if (options.expires) {
|
|
139
|
+
if (Number.isNaN(options.expires.getTime())) {
|
|
140
|
+
throw new TypeError("Cookie expires must be a valid Date.");
|
|
141
|
+
}
|
|
142
|
+
parts.push(`Expires=${options.expires.toUTCString()}`);
|
|
143
|
+
}
|
|
144
|
+
if (options.domain) {
|
|
145
|
+
validateCookieAttribute("domain", options.domain);
|
|
146
|
+
parts.push(`Domain=${options.domain}`);
|
|
147
|
+
}
|
|
148
|
+
if (options.path) {
|
|
149
|
+
validateCookieAttribute("path", options.path);
|
|
150
|
+
parts.push(`Path=${options.path}`);
|
|
151
|
+
}
|
|
152
|
+
if (options.httpOnly) {
|
|
153
|
+
parts.push("HttpOnly");
|
|
154
|
+
}
|
|
155
|
+
if (options.secure) {
|
|
156
|
+
parts.push("Secure");
|
|
157
|
+
}
|
|
158
|
+
if (options.sameSite) {
|
|
159
|
+
const sameSite = normalizeSameSite(options.sameSite);
|
|
160
|
+
parts.push(`SameSite=${sameSite}`);
|
|
161
|
+
}
|
|
162
|
+
if (options.partitioned) {
|
|
163
|
+
parts.push("Partitioned");
|
|
164
|
+
}
|
|
165
|
+
if (options.priority) {
|
|
166
|
+
parts.push(`Priority=${normalizePriority(options.priority)}`);
|
|
167
|
+
}
|
|
168
|
+
return parts.join("; ");
|
|
169
|
+
}
|
|
170
|
+
/* -------------------------------------------------------------------------- */
|
|
171
|
+
/* Request Cookies */
|
|
172
|
+
/* -------------------------------------------------------------------------- */
|
|
173
|
+
export function getRequestCookies(request) {
|
|
174
|
+
const header = request.getHeader("cookie");
|
|
175
|
+
return parseCookies(header);
|
|
176
|
+
}
|
|
177
|
+
export function getRequestCookie(request, name) {
|
|
178
|
+
return getRequestCookies(request).get(name);
|
|
179
|
+
}
|
|
180
|
+
/* -------------------------------------------------------------------------- */
|
|
181
|
+
/* Response Cookies */
|
|
182
|
+
/* -------------------------------------------------------------------------- */
|
|
183
|
+
export function setResponseCookie(response, name, value, options = {}) {
|
|
184
|
+
const serialized = serializeCookie(name, value, options);
|
|
185
|
+
appendSetCookieHeader(response, serialized);
|
|
186
|
+
}
|
|
187
|
+
export function deleteResponseCookie(response, name, options = {}) {
|
|
188
|
+
setResponseCookie(response, name, "", {
|
|
189
|
+
...options,
|
|
190
|
+
maxAge: 0,
|
|
191
|
+
expires: new Date(0),
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/* -------------------------------------------------------------------------- */
|
|
195
|
+
/* Response Header Helpers */
|
|
196
|
+
/* -------------------------------------------------------------------------- */
|
|
197
|
+
export function appendSetCookieHeader(response, cookie) {
|
|
198
|
+
const existing = response.getHeader("Set-Cookie");
|
|
199
|
+
if (existing === undefined) {
|
|
200
|
+
response.setHeader("Set-Cookie", [cookie]);
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
const values = Array.isArray(existing)
|
|
204
|
+
? existing.map(String)
|
|
205
|
+
: [String(existing)];
|
|
206
|
+
values.push(cookie);
|
|
207
|
+
response.setHeader("Set-Cookie", values);
|
|
208
|
+
}
|
|
209
|
+
/* -------------------------------------------------------------------------- */
|
|
210
|
+
/* Cookie Manager Factory */
|
|
211
|
+
/* -------------------------------------------------------------------------- */
|
|
212
|
+
export function createCookieManager(request, response) {
|
|
213
|
+
const parsed = getRequestCookies(request);
|
|
214
|
+
return {
|
|
215
|
+
get(name) {
|
|
216
|
+
return parsed.get(name);
|
|
217
|
+
},
|
|
218
|
+
has(name) {
|
|
219
|
+
return parsed.has(name);
|
|
220
|
+
},
|
|
221
|
+
set(name, value, options) {
|
|
222
|
+
setResponseCookie(response, name, value, options);
|
|
223
|
+
},
|
|
224
|
+
delete(name, options) {
|
|
225
|
+
deleteResponseCookie(response, name, options);
|
|
226
|
+
},
|
|
227
|
+
parse() {
|
|
228
|
+
return parsed;
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
export function serializeSignedCookie(name, value, options) {
|
|
233
|
+
const signature = signCookieValue(value, options.secret);
|
|
234
|
+
return serializeCookie(name, `${value}.${signature}`, options);
|
|
235
|
+
}
|
|
236
|
+
export function parseSignedCookie(value, secret) {
|
|
237
|
+
if (!value) {
|
|
238
|
+
return undefined;
|
|
239
|
+
}
|
|
240
|
+
const separator = value.lastIndexOf(".");
|
|
241
|
+
if (separator <= 0) {
|
|
242
|
+
return undefined;
|
|
243
|
+
}
|
|
244
|
+
const originalValue = value.slice(0, separator);
|
|
245
|
+
const signature = value.slice(separator + 1);
|
|
246
|
+
const expected = signCookieValue(originalValue, secret);
|
|
247
|
+
if (!timingSafeEqual(signature, expected)) {
|
|
248
|
+
return undefined;
|
|
249
|
+
}
|
|
250
|
+
return originalValue;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Signs a cookie value with HMAC-SHA256.
|
|
254
|
+
*
|
|
255
|
+
* @param value - The value to authenticate.
|
|
256
|
+
* @param secret - The signing key.
|
|
257
|
+
* @returns The base64url signature.
|
|
258
|
+
* @throws {TypeError} If the secret is empty.
|
|
259
|
+
*/
|
|
260
|
+
export function signCookieValue(value, secret) {
|
|
261
|
+
if (!secret) {
|
|
262
|
+
throw new TypeError("Cookie signing secret cannot be empty.");
|
|
263
|
+
}
|
|
264
|
+
return createHmac("sha256", secret).update(value, "utf8").digest("base64url");
|
|
265
|
+
}
|
|
266
|
+
/* -------------------------------------------------------------------------- */
|
|
267
|
+
/* Cookie Encoding */
|
|
268
|
+
/* -------------------------------------------------------------------------- */
|
|
269
|
+
/**
|
|
270
|
+
* Percent-encodes a cookie value.
|
|
271
|
+
*
|
|
272
|
+
* SP is deliberately left encoded: RFC 6265 `cookie-octet` excludes it, and
|
|
273
|
+
* emitting a raw space breaks strict parsers and some proxies.
|
|
274
|
+
*
|
|
275
|
+
* @param value - The raw cookie value.
|
|
276
|
+
* @returns The encoded value.
|
|
277
|
+
*/
|
|
278
|
+
function encodeCookieValue(value) {
|
|
279
|
+
return encodeURIComponent(value);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Percent-decodes a cookie value.
|
|
283
|
+
*
|
|
284
|
+
* DQUOTE is not stripped: it is an ordinary `cookie-octet`, and unwrapping it
|
|
285
|
+
* makes the parse disagree with the browser about the value.
|
|
286
|
+
*
|
|
287
|
+
* @param value - The raw cookie value.
|
|
288
|
+
* @returns The decoded value, or the raw value when decoding fails.
|
|
289
|
+
*/
|
|
290
|
+
function decodeCookieValue(value) {
|
|
291
|
+
try {
|
|
292
|
+
return decodeURIComponent(value);
|
|
293
|
+
}
|
|
294
|
+
catch {
|
|
295
|
+
return value;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
/* -------------------------------------------------------------------------- */
|
|
299
|
+
/* Header Parsing */
|
|
300
|
+
/* -------------------------------------------------------------------------- */
|
|
301
|
+
/**
|
|
302
|
+
* Splits a `Cookie` header into its `name=value` pairs.
|
|
303
|
+
*
|
|
304
|
+
* The split is unconditional on `;` per RFC 6265 section 5.4. DQUOTE is an
|
|
305
|
+
* ordinary `cookie-octet` there with no delimiting meaning, so tracking
|
|
306
|
+
* quotes would let a single unbalanced `"` in one attacker-set cookie swallow
|
|
307
|
+
* every cookie after it — a cookie-shadowing primitive.
|
|
308
|
+
*
|
|
309
|
+
* @param header - The raw header value.
|
|
310
|
+
* @returns The unparsed pairs.
|
|
311
|
+
*/
|
|
312
|
+
function splitCookieHeader(header) {
|
|
313
|
+
return header.split(";");
|
|
314
|
+
}
|
|
315
|
+
/* -------------------------------------------------------------------------- */
|
|
316
|
+
/* Validation */
|
|
317
|
+
/* -------------------------------------------------------------------------- */
|
|
318
|
+
/**
|
|
319
|
+
* Validates a cookie name against the RFC 6265 `cookie-name` production.
|
|
320
|
+
*
|
|
321
|
+
* @param name - The cookie name.
|
|
322
|
+
* @throws {TypeError} If the name is empty or contains a non-token character
|
|
323
|
+
* — which includes NUL and DEL, whose acceptance would let an intermediary
|
|
324
|
+
* truncate the name and set a different cookie than the one requested.
|
|
325
|
+
*/
|
|
326
|
+
function validateCookieName(name) {
|
|
327
|
+
if (!name) {
|
|
328
|
+
throw new TypeError("Cookie name cannot be empty.");
|
|
329
|
+
}
|
|
330
|
+
if (!COOKIE_NAME_TOKEN.test(name)) {
|
|
331
|
+
throw new TypeError(`Invalid cookie name: ${JSON.stringify(name)}`);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Enforces the RFC 6265bis section 4.1.3 cookie name prefixes.
|
|
336
|
+
*
|
|
337
|
+
* A browser silently drops a `__Host-` or `__Secure-` cookie whose
|
|
338
|
+
* attributes violate the prefix, and the failure is invisible server-side —
|
|
339
|
+
* a login that quietly does nothing. Failing loudly here is the only way the
|
|
340
|
+
* caller learns.
|
|
341
|
+
*
|
|
342
|
+
* @param name - The cookie name.
|
|
343
|
+
* @param options - The cookie attributes.
|
|
344
|
+
* @throws {TypeError} If a prefix constraint is violated.
|
|
345
|
+
*/
|
|
346
|
+
function validateCookiePrefix(name, options) {
|
|
347
|
+
if (name.startsWith("__Host-")) {
|
|
348
|
+
if (!options.secure) {
|
|
349
|
+
throw new TypeError("A __Host- cookie requires the Secure attribute.");
|
|
350
|
+
}
|
|
351
|
+
if (options.domain) {
|
|
352
|
+
throw new TypeError("A __Host- cookie must not set a Domain attribute.");
|
|
353
|
+
}
|
|
354
|
+
if ((options.path ?? "/") !== "/") {
|
|
355
|
+
throw new TypeError("A __Host- cookie requires Path=/.");
|
|
356
|
+
}
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
if (name.startsWith("__Secure-") && !options.secure) {
|
|
360
|
+
throw new TypeError("A __Secure- cookie requires the Secure attribute.");
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Validates a cookie attribute value.
|
|
365
|
+
*
|
|
366
|
+
* @param attribute - The attribute name, for the error message.
|
|
367
|
+
* @param value - The attribute value.
|
|
368
|
+
* @throws {TypeError} If the value contains `;` or any control character.
|
|
369
|
+
*/
|
|
370
|
+
function validateCookieAttribute(attribute, value) {
|
|
371
|
+
if (/[;\u0000-\u001f\u007f]/.test(value)) {
|
|
372
|
+
throw new TypeError(`Invalid cookie ${attribute}.`);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
function normalizeSameSite(value) {
|
|
376
|
+
switch (value) {
|
|
377
|
+
case "strict":
|
|
378
|
+
return "Strict";
|
|
379
|
+
case "lax":
|
|
380
|
+
return "Lax";
|
|
381
|
+
case "none":
|
|
382
|
+
return "None";
|
|
383
|
+
default:
|
|
384
|
+
throw new TypeError(`Invalid SameSite value: ${String(value)}`);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
function normalizePriority(value) {
|
|
388
|
+
switch (value) {
|
|
389
|
+
case "low":
|
|
390
|
+
return "Low";
|
|
391
|
+
case "medium":
|
|
392
|
+
return "Medium";
|
|
393
|
+
case "high":
|
|
394
|
+
return "High";
|
|
395
|
+
default:
|
|
396
|
+
throw new TypeError(`Invalid cookie priority: ${String(value)}`);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
/* -------------------------------------------------------------------------- */
|
|
400
|
+
/* Hash Helpers */
|
|
401
|
+
/* -------------------------------------------------------------------------- */
|
|
402
|
+
/**
|
|
403
|
+
* Compares two signatures in constant time.
|
|
404
|
+
*
|
|
405
|
+
* @param left - The candidate signature.
|
|
406
|
+
* @param right - The expected signature.
|
|
407
|
+
* @returns `true` if the two are byte-identical.
|
|
408
|
+
*/
|
|
409
|
+
function timingSafeEqual(left, right) {
|
|
410
|
+
const leftBuffer = Buffer.from(left, "utf8");
|
|
411
|
+
const rightBuffer = Buffer.from(right, "utf8");
|
|
412
|
+
if (leftBuffer.length !== rightBuffer.length) {
|
|
413
|
+
return false;
|
|
414
|
+
}
|
|
415
|
+
return cryptoTimingSafeEqual(leftBuffer, rightBuffer);
|
|
416
|
+
}
|
|
417
|
+
//# sourceMappingURL=http.cookies.js.map
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP CORS utilities.
|
|
3
|
+
*
|
|
4
|
+
* Provides parsing, validation, policy evaluation, and response-header
|
|
5
|
+
* generation for Cross-Origin Resource Sharing.
|
|
6
|
+
*/
|
|
7
|
+
export type CorsOrigin = string | readonly string[] | ((origin: string) => boolean | Promise<boolean>);
|
|
8
|
+
export type CorsMethods = string | readonly string[];
|
|
9
|
+
export type CorsHeaders = string | readonly string[];
|
|
10
|
+
export interface CorsOptions {
|
|
11
|
+
readonly origin?: CorsOrigin;
|
|
12
|
+
readonly methods?: CorsMethods;
|
|
13
|
+
readonly allowedHeaders?: CorsHeaders;
|
|
14
|
+
readonly exposedHeaders?: CorsHeaders;
|
|
15
|
+
readonly credentials?: boolean;
|
|
16
|
+
readonly maxAge?: number;
|
|
17
|
+
readonly preflightContinue?: boolean;
|
|
18
|
+
readonly optionsSuccessStatus?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface CorsRequest {
|
|
21
|
+
readonly origin?: string;
|
|
22
|
+
readonly method?: string;
|
|
23
|
+
readonly requestMethod?: string;
|
|
24
|
+
readonly requestHeaders?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface CorsResult {
|
|
27
|
+
readonly allowed: boolean;
|
|
28
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
29
|
+
readonly preflight: boolean;
|
|
30
|
+
readonly vary: readonly string[];
|
|
31
|
+
}
|
|
32
|
+
export interface CorsPolicy {
|
|
33
|
+
readonly origin: CorsOrigin;
|
|
34
|
+
readonly methods: readonly string[];
|
|
35
|
+
readonly allowedHeaders: readonly string[];
|
|
36
|
+
readonly exposedHeaders: readonly string[];
|
|
37
|
+
readonly credentials: boolean;
|
|
38
|
+
readonly maxAge?: number;
|
|
39
|
+
/**
|
|
40
|
+
* True when the configured origin allows every origin — whether written as
|
|
41
|
+
* the string `"*"` or as a `"*"` element inside an array. Credentials can
|
|
42
|
+
* never be combined with it.
|
|
43
|
+
*/
|
|
44
|
+
readonly wildcard: boolean;
|
|
45
|
+
readonly preflightContinue: boolean;
|
|
46
|
+
readonly optionsSuccessStatus: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The decision a CORS-aware middleware needs in order to act.
|
|
50
|
+
*/
|
|
51
|
+
export interface CorsDecision {
|
|
52
|
+
/** True when the request carried an `Origin` header at all. */
|
|
53
|
+
readonly isCorsRequest: boolean;
|
|
54
|
+
readonly preflight: boolean;
|
|
55
|
+
/** True when the origin (and, for a preflight, the method/headers) passed. */
|
|
56
|
+
readonly allowed: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* True when the middleware should answer the request itself rather than
|
|
59
|
+
* calling `next()`. Only ever true for a preflight with
|
|
60
|
+
* `preflightContinue: false`.
|
|
61
|
+
*/
|
|
62
|
+
readonly terminate: boolean;
|
|
63
|
+
/** Status to answer a terminated preflight with. */
|
|
64
|
+
readonly status: number;
|
|
65
|
+
/**
|
|
66
|
+
* Headers to apply to the response, `Vary` already merged in. Always
|
|
67
|
+
* contains `Vary: Origin` for any origin-dependent response, including a
|
|
68
|
+
* rejected one, so a shared cache cannot serve one origin's CORS grant to
|
|
69
|
+
* another.
|
|
70
|
+
*/
|
|
71
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
72
|
+
}
|
|
73
|
+
export declare const CORS_ORIGIN_HEADER = "Access-Control-Allow-Origin";
|
|
74
|
+
export declare const CORS_METHODS_HEADER = "Access-Control-Allow-Methods";
|
|
75
|
+
export declare const CORS_HEADERS_HEADER = "Access-Control-Allow-Headers";
|
|
76
|
+
export declare const CORS_EXPOSE_HEADERS_HEADER = "Access-Control-Expose-Headers";
|
|
77
|
+
export declare const CORS_CREDENTIALS_HEADER = "Access-Control-Allow-Credentials";
|
|
78
|
+
export declare const CORS_MAX_AGE_HEADER = "Access-Control-Max-Age";
|
|
79
|
+
export declare const CORS_REQUEST_METHOD_HEADER = "Access-Control-Request-Method";
|
|
80
|
+
export declare const CORS_REQUEST_HEADERS_HEADER = "Access-Control-Request-Headers";
|
|
81
|
+
export declare const CORS_VARY_HEADER = "Vary";
|
|
82
|
+
export declare const DEFAULT_CORS_METHODS: readonly string[];
|
|
83
|
+
export declare const DEFAULT_OPTIONS_SUCCESS_STATUS = 204;
|
|
84
|
+
export declare function normalizeOrigin(origin: string | undefined | null): string | undefined;
|
|
85
|
+
export declare function isWildcardOrigin(origin: string | undefined | null): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Canonicalises an origin for comparison.
|
|
88
|
+
*
|
|
89
|
+
* An origin is scheme + host + port. Scheme and host are case-insensitive, the
|
|
90
|
+
* default port is implicit, and there is no path — so `HTTPS://App.Example.com`
|
|
91
|
+
* and `https://app.example.com:443/` are the same origin and must compare
|
|
92
|
+
* equal, while anything that is not a parseable http(s) origin falls back to a
|
|
93
|
+
* trimmed, lower-cased literal so that `"null"` still compares by value.
|
|
94
|
+
*/
|
|
95
|
+
export declare function canonicalizeOrigin(origin: string | undefined | null): string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* True when the configured origin permits every origin.
|
|
98
|
+
*/
|
|
99
|
+
export declare function hasWildcardOrigin(configured: CorsOrigin | undefined): boolean;
|
|
100
|
+
export declare function isNullOrigin(origin: string | undefined | null): boolean;
|
|
101
|
+
export declare function isValidOrigin(origin: string | undefined | null): boolean;
|
|
102
|
+
export declare function normalizeMethods(methods: CorsMethods | undefined): readonly string[];
|
|
103
|
+
export declare function isMethodAllowed(method: string | undefined | null, allowedMethods: CorsMethods): boolean;
|
|
104
|
+
export declare function normalizeHeaderNames(headers: CorsHeaders | undefined): readonly string[];
|
|
105
|
+
export declare function areHeadersAllowed(requestedHeaders: CorsHeaders | undefined, allowedHeaders: CorsHeaders): boolean;
|
|
106
|
+
export declare function parseRequestedHeaders(value: string | undefined | null): readonly string[];
|
|
107
|
+
/**
|
|
108
|
+
* Decides whether a request origin is permitted by the configured origin.
|
|
109
|
+
*
|
|
110
|
+
* Matching is **exact on the canonical origin**. It is deliberately not
|
|
111
|
+
* `startsWith`, `endsWith`, `includes` or an unescaped regex built from the
|
|
112
|
+
* configured value: against `https://example.com`, all of those admit
|
|
113
|
+
* `https://evil-example.com.attacker.com`, `https://example.com.evil.tld` or
|
|
114
|
+
* `https://example.como`. A caller that needs subdomain matching must supply a
|
|
115
|
+
* predicate function and take responsibility for anchoring it.
|
|
116
|
+
*
|
|
117
|
+
* The opaque origin `null` (sandboxed iframes, `file://`, some redirects) is
|
|
118
|
+
* only allowed when `"null"` is configured explicitly. It is never covered by
|
|
119
|
+
* `"*"`, because reflecting it grants access to content any page can produce.
|
|
120
|
+
*/
|
|
121
|
+
export declare function matchesOrigin(configured: CorsOrigin | undefined, requestOrigin: string | undefined): Promise<boolean>;
|
|
122
|
+
export declare function createCorsPolicy(options?: CorsOptions | undefined): CorsPolicy;
|
|
123
|
+
export declare function isCorsRequest(request: CorsRequest): boolean;
|
|
124
|
+
export declare function isPreflightRequest(request: CorsRequest): boolean;
|
|
125
|
+
export declare function isSimpleCorsRequest(request: CorsRequest): boolean;
|
|
126
|
+
export declare function validatePreflight(request: CorsRequest, policy: CorsPolicy): boolean;
|
|
127
|
+
export declare function createCorsHeaders(request: CorsRequest, policy: CorsPolicy): Promise<Readonly<Record<string, string>>>;
|
|
128
|
+
export declare function evaluateCors(request: CorsRequest, options: CorsOptions | CorsPolicy): Promise<CorsResult>;
|
|
129
|
+
export declare function getCorsVaryHeaders(request: CorsRequest, policy: CorsPolicy): readonly string[];
|
|
130
|
+
export declare function formatVaryHeader(values: readonly string[]): string;
|
|
131
|
+
export declare function shouldHandlePreflight(request: CorsRequest): boolean;
|
|
132
|
+
export declare function getPreflightStatus(options?: CorsOptions | undefined): number;
|
|
133
|
+
export declare function serializeCorsHeaders(headers: Readonly<Record<string, string>>, vary: readonly string[] | undefined): Readonly<Record<string, string>>;
|
|
134
|
+
/**
|
|
135
|
+
* Evaluates a request against a CORS policy and returns everything a
|
|
136
|
+
* middleware needs: whether to answer the request itself, with what status,
|
|
137
|
+
* and which headers to set.
|
|
138
|
+
*
|
|
139
|
+
* This is the function a CORS middleware should be built on. It differs from
|
|
140
|
+
* the naive "always set `Access-Control-Allow-Origin: *`" approach in four
|
|
141
|
+
* ways that each matter:
|
|
142
|
+
*
|
|
143
|
+
* 1. A request with no `Origin` gets no CORS headers at all.
|
|
144
|
+
* 2. A disallowed origin gets no `Access-Control-Allow-Origin`, so the browser
|
|
145
|
+
* blocks the read — rather than the server advertising a grant it did not
|
|
146
|
+
* intend.
|
|
147
|
+
* 3. `Vary: Origin` is emitted on every origin-dependent response, allowed or
|
|
148
|
+
* not, so a CDN cannot serve one origin's grant to another.
|
|
149
|
+
* 4. A preflight is answered here, before the router can 404/405 it.
|
|
150
|
+
*/
|
|
151
|
+
export declare function evaluateCorsDecision(request: CorsRequest, options: CorsOptions | CorsPolicy): Promise<CorsDecision>;
|
|
152
|
+
//# sourceMappingURL=http.cors.d.ts.map
|