@zudojs/http 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/httpAdapter/fetch/httpFetch.helper.d.ts +19 -0
- package/dist/httpAdapter/fetch/httpFetch.helper.js +35 -0
- package/dist/httpAdapter/fetch/httpFetch.requestContext.d.ts +20 -0
- package/dist/httpAdapter/fetch/httpFetch.requestContext.js +72 -0
- package/dist/httpAdapter/fetch/httpFetch.responseWriter.d.ts +31 -0
- package/dist/httpAdapter/fetch/httpFetch.responseWriter.js +69 -0
- package/dist/httpAdapter/fetch/httpFetch.type.d.ts +30 -0
- package/dist/httpAdapter/fetch/httpFetch.type.js +7 -0
- package/dist/httpAdapter/fetch/index.d.ts +11 -0
- package/dist/httpAdapter/fetch/index.js +11 -0
- package/dist/httpAdapter/http.adapter.d.ts +20 -0
- package/dist/httpAdapter/http.adapter.js +17 -0
- package/dist/httpAdapter/http.adapters.d.ts +71 -0
- package/dist/httpAdapter/httpFetch.adapter.d.ts +11 -0
- package/dist/httpAdapter/httpFetch.adapter.js +10 -0
- package/dist/httpAdapter/node/httpNode.adapter.d.ts +21 -0
- package/dist/httpAdapter/node/httpNode.adapter.js +111 -19
- package/dist/httpAdapter/node/httpNode.request.d.ts +23 -0
- package/dist/httpAdapter/node/httpNode.request.js +166 -0
- package/dist/httpAdapter/node/httpNode.response.d.ts +27 -0
- package/dist/httpAdapter/node/httpNode.response.js +93 -0
- package/dist/httpAdapter/node/httpNode.server.d.ts +18 -1
- package/dist/httpAdapter/node/httpNode.server.js +42 -3
- package/dist/httpAdapter/node/httpNode.type.d.ts +84 -0
- package/dist/httpAdapter/node/httpNode.type.js +44 -0
- package/dist/httpAgent/http.agent.d.ts +63 -0
- package/dist/httpAgent/http.agent.js +297 -0
- package/dist/httpBody/http.body.d.ts +31 -2
- package/dist/httpBody/http.body.js +77 -17
- package/dist/httpBody/httpBody.formData.d.ts +15 -0
- package/dist/httpBody/httpBody.formData.js +75 -163
- package/dist/httpBody/httpBody.parser.d.ts +12 -0
- package/dist/httpBody/httpBody.parser.js +44 -14
- package/dist/httpCacheControl/core/httpCacheControl.parse.d.ts +27 -0
- package/dist/httpCacheControl/core/httpCacheControl.parse.js +229 -0
- package/dist/httpCacheControl/core/httpCacheControl.type.d.ts +54 -0
- package/dist/httpCacheControl/core/httpCacheControl.type.js +8 -0
- package/dist/httpCacheControl/core/httpCacheControl.validation.d.ts +13 -0
- package/dist/httpCacheControl/core/httpCacheControl.validation.js +87 -0
- package/dist/httpCacheControl/core/index.d.ts +9 -0
- package/dist/httpCacheControl/core/index.js +9 -0
- package/dist/httpCacheControl/httpCacheControl.core.d.ts +13 -0
- package/dist/httpCacheControl/httpCacheControl.core.js +13 -0
- package/dist/httpCacheControl/httpCacheControl.factory.d.ts +35 -0
- package/dist/httpCacheControl/httpCacheControl.factory.js +53 -0
- package/dist/httpCacheControl/httpCacheControl.freshness.d.ts +36 -0
- package/dist/httpCacheControl/httpCacheControl.freshness.js +124 -0
- package/dist/httpCacheControl/httpCacheControl.requestHelper.d.ts +39 -0
- package/dist/httpCacheControl/httpCacheControl.requestHelper.js +56 -0
- package/dist/httpCacheControl/httpCacheControl.responseHelper.d.ts +40 -0
- package/dist/httpCacheControl/httpCacheControl.responseHelper.js +87 -0
- package/dist/httpClient/httpClient.abort.d.ts +7 -0
- package/dist/httpClient/httpClient.abort.js +34 -0
- package/dist/httpClient/httpClient.body.d.ts +8 -0
- package/dist/httpClient/httpClient.body.js +53 -0
- package/dist/httpClient/httpClient.client.d.ts +24 -0
- package/dist/httpClient/httpClient.client.js +84 -0
- package/dist/httpClient/httpClient.context.d.ts +8 -0
- package/dist/httpClient/httpClient.context.js +42 -0
- package/dist/httpClient/httpClient.errorNormalizer.d.ts +8 -0
- package/dist/httpClient/httpClient.errorNormalizer.js +32 -0
- package/dist/httpClient/httpClient.executor.d.ts +14 -0
- package/dist/httpClient/httpClient.executor.js +168 -0
- package/dist/httpClient/httpClient.factory.d.ts +10 -0
- package/dist/httpClient/httpClient.factory.js +13 -0
- package/dist/httpClient/httpClient.headers.d.ts +7 -0
- package/dist/httpClient/httpClient.headers.js +16 -0
- package/dist/httpClient/httpClient.helpers.d.ts +18 -0
- package/dist/httpClient/httpClient.helpers.js +59 -0
- package/dist/httpClient/httpClient.interceptors.d.ts +10 -0
- package/dist/httpClient/httpClient.interceptors.js +25 -0
- package/dist/httpClient/httpClient.methods.d.ts +15 -0
- package/dist/httpClient/httpClient.methods.js +27 -0
- package/dist/httpClient/httpClient.response.d.ts +8 -0
- package/dist/httpClient/httpClient.response.js +78 -0
- package/dist/httpClient/httpClient.retry.d.ts +1 -1
- package/dist/httpClient/httpClient.retry.js +36 -7
- package/dist/httpClient/httpClient.type.d.ts +88 -0
- package/dist/httpClient/httpClient.type.js +7 -0
- package/dist/httpClient/httpClient.typeGuards.d.ts +14 -0
- package/dist/httpClient/httpClient.typeGuards.js +23 -0
- package/dist/httpClient/httpClient.url.d.ts +9 -0
- package/dist/httpClient/httpClient.url.js +40 -0
- package/dist/httpCompression/http.compression.d.ts +71 -0
- package/dist/httpCompression/http.compression.js +334 -0
- package/dist/httpConditional/httpConditional.core.d.ts +141 -0
- package/dist/httpConditional/httpConditional.core.js +552 -0
- package/dist/httpConstants/http.constants.d.ts +38 -3
- package/dist/httpConstants/http.constants.js +49 -7
- package/dist/httpContentDisposition/httpContentDisposition.core.d.ts +87 -0
- package/dist/httpContentDisposition/httpContentDisposition.core.js +447 -0
- package/dist/httpContentType/httpContentType.boundary.d.ts +8 -0
- package/dist/httpContentType/httpContentType.boundary.js +26 -0
- package/dist/httpContentType/httpContentType.category.d.ts +9 -0
- package/dist/httpContentType/httpContentType.category.js +23 -0
- package/dist/httpContentType/httpContentType.categoryBinary.d.ts +9 -0
- package/dist/httpContentType/httpContentType.categoryBinary.js +30 -0
- package/dist/httpContentType/httpContentType.charset.d.ts +8 -0
- package/dist/httpContentType/httpContentType.charset.js +36 -0
- package/dist/httpContentType/httpContentType.constructors.d.ts +10 -0
- package/dist/httpContentType/httpContentType.constructors.js +37 -0
- package/dist/httpContentType/httpContentType.formatter.d.ts +7 -0
- package/dist/httpContentType/httpContentType.formatter.js +44 -0
- package/dist/httpContentType/httpContentType.matcher.d.ts +6 -0
- package/dist/httpContentType/httpContentType.matcher.js +53 -0
- package/dist/httpContentType/httpContentType.mediaTypes.d.ts +21 -0
- package/dist/httpContentType/httpContentType.mediaTypes.js +21 -0
- package/dist/httpContentType/httpContentType.normalizer.d.ts +7 -0
- package/dist/httpContentType/httpContentType.normalizer.js +29 -0
- package/dist/httpContentType/httpContentType.parameter.d.ts +7 -0
- package/dist/httpContentType/httpContentType.parameter.js +20 -0
- package/dist/httpContentType/httpContentType.parser.d.ts +6 -0
- package/dist/httpContentType/httpContentType.parser.js +44 -0
- package/dist/httpContentType/httpContentType.parserHelpers.d.ts +21 -0
- package/dist/httpContentType/httpContentType.parserHelpers.js +91 -0
- package/dist/httpContentType/httpContentType.type.d.ts +17 -0
- package/dist/httpContentType/httpContentType.type.js +5 -0
- package/dist/httpContext/http.context.js +31 -11
- package/dist/httpCookies/http.cookies.d.ts +92 -0
- package/dist/httpCookies/http.cookies.js +417 -0
- package/dist/httpCors/http.cors.d.ts +152 -0
- package/dist/httpCors/http.cors.js +480 -0
- package/dist/httpCsp/checks/httpCsp.checks.d.ts +9 -0
- package/dist/httpCsp/checks/httpCsp.checks.js +30 -0
- package/dist/httpCsp/checks/index.d.ts +5 -0
- package/dist/httpCsp/checks/index.js +5 -0
- package/dist/httpCsp/formatting/httpCsp.formatting.d.ts +7 -0
- package/dist/httpCsp/formatting/httpCsp.formatting.js +70 -0
- package/dist/httpCsp/formatting/index.d.ts +5 -0
- package/dist/httpCsp/formatting/index.js +5 -0
- package/dist/httpCsp/internal/httpCsp.internal.d.ts +19 -0
- package/dist/httpCsp/internal/httpCsp.internal.js +81 -0
- package/dist/httpCsp/internal/index.d.ts +5 -0
- package/dist/httpCsp/internal/index.js +5 -0
- package/dist/httpCsp/nonce/httpCsp.nonce.d.ts +18 -0
- package/dist/httpCsp/nonce/httpCsp.nonce.js +82 -0
- package/dist/httpCsp/nonce/index.d.ts +5 -0
- package/dist/httpCsp/nonce/index.js +5 -0
- package/dist/httpCsp/parsing/httpCsp.parsing.d.ts +9 -0
- package/dist/httpCsp/parsing/httpCsp.parsing.js +61 -0
- package/dist/httpCsp/parsing/index.d.ts +5 -0
- package/dist/httpCsp/parsing/index.js +5 -0
- package/dist/httpCsp/policies/httpCsp.policies.d.ts +17 -0
- package/dist/httpCsp/policies/httpCsp.policies.js +52 -0
- package/dist/httpCsp/policies/index.d.ts +5 -0
- package/dist/httpCsp/policies/index.js +5 -0
- package/dist/httpCsp/reportOnly/httpCsp.reportOnly.d.ts +7 -0
- package/dist/httpCsp/reportOnly/httpCsp.reportOnly.js +17 -0
- package/dist/httpCsp/reportOnly/index.d.ts +5 -0
- package/dist/httpCsp/reportOnly/index.js +5 -0
- package/dist/httpCsp/sources/httpCsp.sources.d.ts +10 -0
- package/dist/httpCsp/sources/httpCsp.sources.js +22 -0
- package/dist/httpCsp/sources/index.d.ts +5 -0
- package/dist/httpCsp/sources/index.js +5 -0
- package/dist/httpCsp/types/httpCsp.constant.d.ts +9 -0
- package/dist/httpCsp/types/httpCsp.constant.js +39 -0
- package/dist/httpCsp/types/httpCsp.type.d.ts +43 -0
- package/dist/httpCsp/types/httpCsp.type.js +5 -0
- package/dist/httpCsp/types/index.d.ts +7 -0
- package/dist/httpCsp/types/index.js +5 -0
- package/dist/httpCsp/validation/httpCsp.validate.d.ts +6 -0
- package/dist/httpCsp/validation/httpCsp.validate.js +23 -0
- package/dist/httpCsp/validation/httpCsp.validation.d.ts +6 -0
- package/dist/httpCsp/validation/httpCsp.validation.js +14 -0
- package/dist/httpCsp/validation/index.d.ts +6 -0
- package/dist/httpCsp/validation/index.js +6 -0
- package/dist/httpErrors/factories/httpError.clientError.d.ts +40 -0
- package/dist/httpErrors/factories/httpError.clientError.js +79 -0
- package/dist/httpErrors/factories/httpError.serverError.d.ts +28 -0
- package/dist/httpErrors/factories/httpError.serverError.js +52 -0
- package/dist/httpErrors/httpError.base.d.ts +0 -2
- package/dist/httpErrors/httpError.base.js +4 -2
- package/dist/httpErrors/httpError.helper.d.ts +19 -0
- package/dist/httpErrors/httpError.helper.js +20 -0
- package/dist/httpErrors/httpError.invalidJson.d.ts +20 -0
- package/dist/httpErrors/httpError.invalidJson.js +26 -0
- package/dist/httpErrors/httpError.typeGuard.d.ts +23 -0
- package/dist/httpErrors/httpError.typeGuard.js +35 -0
- package/dist/httpErrors/httpError.util.d.ts +22 -0
- package/dist/httpErrors/httpError.util.js +36 -0
- package/dist/httpHeaders/authorization/httpHeaders.authorization.d.ts +34 -0
- package/dist/httpHeaders/authorization/httpHeaders.authorization.js +53 -0
- package/dist/httpHeaders/authorization/index.d.ts +0 -1
- package/dist/httpHeaders/authorization/index.js +0 -1
- package/dist/httpHeaders/basic/httpHeaders.basic.d.ts +23 -0
- package/dist/httpHeaders/basic/httpHeaders.basic.js +29 -0
- package/dist/httpHeaders/basic/httpHeaders.basicMatch.d.ts +26 -0
- package/dist/httpHeaders/basic/httpHeaders.basicMatch.js +45 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversion.d.ts +31 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversion.js +103 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversionObject.d.ts +21 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversionObject.js +30 -0
- package/dist/httpHeaders/etag/httpHeaders.etag.d.ts +27 -0
- package/dist/httpHeaders/etag/httpHeaders.etag.js +44 -0
- package/dist/httpHeaders/etag/httpHeaders.etagMatch.d.ts +26 -0
- package/dist/httpHeaders/etag/httpHeaders.etagMatch.js +53 -0
- package/dist/httpHeaders/forwarded/httpHeaders.forwarded.d.ts +35 -0
- package/dist/httpHeaders/forwarded/httpHeaders.forwarded.js +39 -0
- package/dist/httpHeaders/forwarded/index.d.ts +0 -1
- package/dist/httpHeaders/forwarded/index.js +0 -1
- package/dist/httpHeaders/http.headers.d.ts +100 -0
- package/dist/httpHeaders/http.headers.js +324 -0
- package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.d.ts +13 -0
- package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.js +15 -0
- package/dist/httpHeaders/internal/index.d.ts +0 -5
- package/dist/httpHeaders/internal/index.js +0 -5
- package/dist/httpHeaders/list/httpHeaders.list.d.ts +32 -0
- package/dist/httpHeaders/list/httpHeaders.list.js +82 -0
- package/dist/httpHeaders/list/httpHeaders.listMutation.d.ts +25 -0
- package/dist/httpHeaders/list/httpHeaders.listMutation.js +40 -0
- package/dist/httpHeaders/security/httpHeaders.security.d.ts +87 -0
- package/dist/httpHeaders/security/httpHeaders.security.js +135 -0
- package/dist/httpHeaders/security/index.d.ts +0 -1
- package/dist/httpHeaders/security/index.js +0 -1
- package/dist/httpHeaders/types/httpHeaders.type.d.ts +19 -0
- package/dist/httpHeaders/types/httpHeaders.type.js +7 -0
- package/dist/httpHsts/http.hsts.d.ts +45 -0
- package/dist/httpHsts/http.hsts.js +224 -0
- package/dist/httpInterceptors/builtin/httpInterceptor.request.d.ts +70 -0
- package/dist/httpInterceptors/builtin/httpInterceptor.response.d.ts +33 -0
- package/dist/httpInterceptors/builtin/httpInterceptor.response.js +43 -0
- package/dist/httpInterceptors/builtin/index.d.ts +8 -0
- package/dist/httpInterceptors/builtin/index.js +8 -0
- package/dist/httpInterceptors/http.interceptors.d.ts +11 -0
- package/dist/httpInterceptors/http.interceptors.js +11 -0
- package/dist/httpInterceptors/httpInterceptor.helper.d.ts +27 -0
- package/dist/httpInterceptors/httpInterceptor.helper.js +53 -0
- package/dist/httpInterceptors/httpInterceptor.type.d.ts +48 -0
- package/dist/httpInterceptors/httpInterceptor.type.js +7 -0
- package/dist/httpInterceptors/manager/httpInterceptor.lookup.d.ts +11 -0
- package/dist/httpInterceptors/manager/httpInterceptor.lookup.js +62 -0
- package/dist/httpInterceptors/manager/httpInterceptor.manager.d.ts +24 -0
- package/dist/httpInterceptors/manager/httpInterceptor.manager.js +58 -0
- package/dist/httpInterceptors/manager/httpInterceptor.registration.d.ts +28 -0
- package/dist/httpInterceptors/manager/httpInterceptor.registration.js +119 -0
- package/dist/httpInterceptors/manager/httpInterceptor.snapshot.d.ts +12 -0
- package/dist/httpInterceptors/manager/httpInterceptor.snapshot.js +17 -0
- package/dist/httpInterceptors/manager/index.d.ts +10 -0
- package/dist/httpInterceptors/manager/index.js +10 -0
- package/dist/httpKeepAlive/httpKeepAlive.core.d.ts +63 -0
- package/dist/httpKeepAlive/httpKeepAlive.core.js +357 -0
- package/dist/httpMethods/http.methods.d.ts +72 -4
- package/dist/httpMethods/http.methods.js +97 -9
- package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.d.ts +10 -0
- package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.js +34 -0
- package/dist/httpMiddleware/builtin/compose/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/compose/index.js +7 -0
- package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.d.ts +14 -0
- package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.js +70 -0
- package/dist/httpMiddleware/builtin/conditional/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/conditional/index.js +7 -0
- package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.d.ts +28 -0
- package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.js +120 -0
- package/dist/httpMiddleware/builtin/cors/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/cors/index.js +7 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.d.ts +16 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.d.ts +16 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.js +23 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.response.d.ts +55 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.response.js +92 -0
- package/dist/httpMiddleware/builtin/helpers/index.d.ts +9 -0
- package/dist/httpMiddleware/builtin/helpers/index.js +9 -0
- package/dist/httpMiddleware/builtin/image/httpMiddleware.image.d.ts +26 -0
- package/dist/httpMiddleware/builtin/image/httpMiddleware.image.js +90 -0
- package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.d.ts +16 -0
- package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.js +42 -0
- package/dist/httpMiddleware/builtin/logging/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/logging/index.js +7 -0
- package/dist/httpMiddleware/builtin/security/httpMiddleware.security.d.ts +21 -0
- package/dist/httpMiddleware/builtin/security/httpMiddleware.security.js +50 -0
- package/dist/httpMiddleware/builtin/security/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/security/index.js +7 -0
- package/dist/httpMiddleware/builtin/static/httpMiddleware.static.d.ts +22 -0
- package/dist/httpMiddleware/builtin/static/httpMiddleware.static.js +198 -0
- package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.d.ts +8 -0
- package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.js +18 -0
- package/dist/httpMiddleware/builtin/timing/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/timing/index.js +7 -0
- package/dist/httpMiddleware/builtin/video/httpMiddleware.video.d.ts +26 -0
- package/dist/httpMiddleware/builtin/video/httpMiddleware.video.js +83 -0
- package/dist/httpMiddleware/httpMiddleware.state.d.ts +16 -0
- package/dist/httpMiddleware/httpMiddleware.state.js +30 -0
- package/dist/httpMiddleware/httpMiddleware.type.d.ts +54 -0
- package/dist/httpMiddleware/httpMiddleware.type.js +7 -0
- package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.d.ts +35 -0
- package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.js +87 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.execution.d.ts +18 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.execution.js +97 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.helper.d.ts +36 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.helper.js +114 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.registration.d.ts +27 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.registration.js +100 -0
- package/dist/httpMime/http.mime.d.ts +144 -0
- package/dist/httpMime/http.mime.js +481 -0
- package/dist/httpMultipart/http.multipart.d.ts +55 -0
- package/dist/httpMultipart/http.multipart.js +295 -99
- package/dist/httpNegotiation/httpNegotiation.core.d.ts +119 -0
- package/dist/httpNegotiation/httpNegotiation.core.js +519 -0
- package/dist/httpProtocol/http.protocol.d.ts +80 -0
- package/dist/httpProtocol/http.protocol.js +482 -0
- package/dist/httpProxy/http.proxy.d.ts +179 -0
- package/dist/httpProxy/http.proxy.js +540 -0
- package/dist/httpQuery/http.query.d.ts +110 -0
- package/dist/httpQuery/http.query.js +484 -0
- package/dist/httpQuery/index.d.ts +0 -1
- package/dist/httpQuery/index.js +0 -1
- package/dist/httpRange/http.range.d.ts +53 -0
- package/dist/httpRange/http.range.js +341 -0
- package/dist/httpRedirect/http.redirect.d.ts +140 -0
- package/dist/httpRedirect/http.redirect.js +442 -0
- package/dist/httpRequest/http.request.d.ts +71 -0
- package/dist/httpRequest/http.request.js +313 -0
- package/dist/httpRequest/httpRequest.context.constant.d.ts +8 -0
- package/dist/httpRequest/httpRequest.context.d.ts +122 -0
- package/dist/httpRequest/httpRequest.context.id.d.ts +8 -0
- package/dist/httpRequest/httpRequest.context.id.js +16 -0
- package/dist/httpRequest/httpRequest.context.type.d.ts +47 -0
- package/dist/httpRequest/httpRequest.context.type.js +8 -0
- package/dist/httpResponse/core/httpResponse.statusText.d.ts +10 -0
- package/dist/httpResponse/core/httpResponse.statusText.js +76 -0
- package/dist/httpResponse/core/httpResponse.type.d.ts +44 -0
- package/dist/httpResponse/core/httpResponse.type.js +8 -0
- package/dist/httpResponse/core/index.d.ts +8 -0
- package/dist/httpResponse/core/index.js +8 -0
- package/dist/httpResponse/http.response.d.ts +34 -0
- package/dist/httpResponse/http.response.js +204 -0
- package/dist/httpResponse/httpResponse.context.d.ts +60 -0
- package/dist/httpResponse/httpResponse.context.js +195 -0
- package/dist/httpResponse/httpResponse.fromWeb.d.ts +57 -0
- package/dist/httpResponse/httpResponse.fromWeb.js +114 -0
- package/dist/httpResponse/httpResponse.helper.d.ts +51 -0
- package/dist/httpResponse/httpResponse.helper.js +105 -0
- package/dist/httpResponse/httpResponse.writer.d.ts +8 -0
- package/dist/httpResponse/httpResponse.writer.js +43 -6
- package/dist/httpResponse/index.d.ts +1 -0
- package/dist/httpResponse/index.js +1 -0
- package/dist/httpRouter/core/error/httpRouter.error.d.ts +7 -0
- package/dist/httpRouter/core/error/httpRouter.error.js +7 -0
- package/dist/httpRouter/core/error/index.d.ts +7 -0
- package/dist/httpRouter/core/error/index.js +7 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.base.d.ts +44 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.base.js +186 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.d.ts +36 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.js +67 -0
- package/dist/httpRouter/core/factory/index.d.ts +8 -0
- package/dist/httpRouter/core/factory/index.js +8 -0
- package/dist/httpRouter/core/group/httpRouterGroup.core.d.ts +27 -0
- package/dist/httpRouter/core/group/httpRouterGroup.core.js +68 -0
- package/dist/httpRouter/core/group/index.d.ts +7 -0
- package/dist/httpRouter/core/group/index.js +7 -0
- package/dist/httpRouter/core/index.d.ts +13 -0
- package/dist/httpRouter/core/index.js +13 -0
- package/dist/httpRouter/core/register/httpRouter.register.d.ts +45 -0
- package/dist/httpRouter/core/register/httpRouter.register.js +309 -0
- package/dist/httpRouter/core/register/index.d.ts +7 -0
- package/dist/httpRouter/core/register/index.js +7 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.helper.d.ts +34 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.helper.js +69 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.type.d.ts +33 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.type.js +7 -0
- package/dist/httpRouter/core/registry/core/index.d.ts +8 -0
- package/dist/httpRouter/core/registry/core/index.js +8 -0
- package/dist/httpRouter/core/registry/httpRegistry.core.d.ts +23 -0
- package/dist/httpRouter/core/registry/httpRegistry.core.js +97 -0
- package/dist/httpRouter/core/registry/httpRegistry.factory.d.ts +25 -0
- package/dist/httpRouter/core/registry/httpRegistry.factory.js +32 -0
- package/dist/httpRouter/core/registry/httpRegistry.group.d.ts +23 -0
- package/dist/httpRouter/core/registry/httpRegistry.group.js +72 -0
- package/dist/httpRouter/core/registry/index.d.ts +16 -0
- package/dist/httpRouter/core/registry/index.js +15 -0
- package/dist/httpRouter/core/types/httpRouter.type.d.ts +109 -0
- package/dist/httpRouter/core/types/httpRouter.type.js +10 -0
- package/dist/httpRouter/core/types/index.d.ts +7 -0
- package/dist/httpRouter/core/types/index.js +7 -0
- package/dist/httpRouter/core/util/httpRoute.util.d.ts +26 -0
- package/dist/httpRouter/core/util/httpRoute.util.js +113 -0
- package/dist/httpRouter/core/util/index.d.ts +7 -0
- package/dist/httpRouter/core/util/index.js +7 -0
- package/dist/httpRouter/dispatch/httpRoute.dispatcher.d.ts +66 -0
- package/dist/httpRouter/dispatch/httpRoute.dispatcher.js +306 -0
- package/dist/httpRouter/dispatch/httpRoute.stack.d.ts +90 -0
- package/dist/httpRouter/dispatch/httpRoute.stack.js +301 -0
- package/dist/httpRouter/dispatch/index.d.ts +6 -0
- package/dist/httpRouter/dispatch/index.js +6 -0
- package/dist/httpRouter/httpRouter.context.d.ts +67 -0
- package/dist/httpRouter/httpRouter.context.js +239 -0
- package/dist/httpRouter/httpRouter.state.d.ts +18 -0
- package/dist/httpRouter/httpRouter.state.js +31 -0
- package/dist/httpRouter/index.d.ts +13 -0
- package/dist/httpRouter/index.js +13 -0
- package/dist/httpRouter/matching/httpRoute.matcher.core.d.ts +10 -0
- package/dist/httpRouter/matching/httpRoute.matcher.core.js +72 -0
- package/dist/httpRouter/matching/httpRoute.matcher.d.ts +63 -0
- package/dist/httpRouter/matching/httpRoute.matcher.js +274 -0
- package/dist/httpRouter/matching/index.d.ts +7 -0
- package/dist/httpRouter/matching/index.js +6 -0
- package/dist/httpRouter/pattern/core/httpPattern.compilation.d.ts +11 -0
- package/dist/httpRouter/pattern/core/httpPattern.compilation.js +44 -0
- package/dist/httpRouter/pattern/core/httpPattern.matching.d.ts +23 -0
- package/dist/httpRouter/pattern/core/httpPattern.matching.js +93 -0
- package/dist/httpRouter/pattern/core/httpPattern.regexBuilding.d.ts +11 -0
- package/dist/httpRouter/pattern/core/httpPattern.regexBuilding.js +49 -0
- package/dist/httpRouter/pattern/core/httpPattern.segmentParsing.d.ts +11 -0
- package/dist/httpRouter/pattern/core/httpPattern.segmentParsing.js +117 -0
- package/dist/httpRouter/pattern/core/httpPattern.type.d.ts +40 -0
- package/dist/httpRouter/pattern/core/httpPattern.type.js +8 -0
- package/dist/httpRouter/pattern/core/index.d.ts +11 -0
- package/dist/httpRouter/pattern/core/index.js +11 -0
- package/dist/httpRouter/pattern/httpPattern.factory.d.ts +19 -0
- package/dist/httpRouter/pattern/httpPattern.factory.js +25 -0
- package/dist/httpRouter/pattern/httpRoute.pattern.parse.d.ts +38 -0
- package/dist/httpRouter/pattern/httpRoute.pattern.parse.js +134 -0
- package/dist/httpRouter/pattern/index.d.ts +19 -0
- package/dist/httpRouter/pattern/index.js +17 -0
- package/dist/httpRouter/result/httpRoute.result.builder.d.ts +7 -0
- package/dist/httpRouter/result/httpRoute.result.builder.js +70 -0
- package/dist/httpRouter/result/httpRoute.result.class.d.ts +21 -0
- package/dist/httpRouter/result/httpRoute.result.class.js +33 -0
- package/dist/httpRouter/result/httpRoute.result.d.ts +17 -0
- package/dist/httpRouter/result/httpRoute.result.error.4xx.d.ts +14 -0
- package/dist/httpRouter/result/httpRoute.result.error.4xx.js +76 -0
- package/dist/httpRouter/result/httpRoute.result.error.5xx.d.ts +9 -0
- package/dist/httpRouter/result/httpRoute.result.error.5xx.js +32 -0
- package/dist/httpRouter/result/httpRoute.result.factory.d.ts +13 -0
- package/dist/httpRouter/result/httpRoute.result.factory.js +54 -0
- package/dist/httpRouter/result/httpRoute.result.guard.d.ts +9 -0
- package/dist/httpRouter/result/httpRoute.result.guard.js +33 -0
- package/dist/httpRouter/result/httpRoute.result.js +31 -0
- package/dist/httpRouter/result/httpRoute.result.normalize.d.ts +8 -0
- package/dist/httpRouter/result/httpRoute.result.normalize.js +73 -0
- package/dist/httpRouter/result/httpRoute.result.output.d.ts +7 -0
- package/dist/httpRouter/result/httpRoute.result.output.js +34 -0
- package/dist/httpRouter/result/httpRoute.result.serialize.d.ts +8 -0
- package/dist/httpRouter/result/httpRoute.result.serialize.js +61 -0
- package/dist/httpRouter/result/httpRoute.result.type.d.ts +41 -0
- package/dist/httpRouter/result/httpRoute.result.type.js +9 -0
- package/dist/httpRouter/result/httpRoute.result.util.d.ts +8 -0
- package/dist/httpRouter/result/httpRoute.result.util.js +52 -0
- package/dist/httpRouter/result/index.d.ts +6 -0
- package/dist/httpRouter/result/index.js +5 -0
- package/dist/httpRouter/tree/core/httpTree.helper.d.ts +31 -0
- package/dist/httpRouter/tree/core/httpTree.helper.js +80 -0
- package/dist/httpRouter/tree/core/httpTree.nodeCreation.d.ts +11 -0
- package/dist/httpRouter/tree/core/httpTree.nodeCreation.js +54 -0
- package/dist/httpRouter/tree/core/httpTree.traversal.d.ts +26 -0
- package/dist/httpRouter/tree/core/httpTree.traversal.js +73 -0
- package/dist/httpRouter/tree/core/httpTree.type.d.ts +52 -0
- package/dist/httpRouter/tree/core/httpTree.type.js +7 -0
- package/dist/httpRouter/tree/core/index.d.ts +10 -0
- package/dist/httpRouter/tree/core/index.js +10 -0
- package/dist/httpRouter/tree/httpTree.core.d.ts +21 -0
- package/dist/httpRouter/tree/httpTree.core.js +96 -0
- package/dist/httpRouter/tree/httpTree.factory.d.ts +12 -0
- package/dist/httpRouter/tree/httpTree.factory.js +13 -0
- package/dist/httpRouter/tree/index.d.ts +7 -0
- package/dist/httpRouter/tree/index.js +6 -0
- package/dist/httpSecurity/httpSecurity.config.d.ts +17 -11
- package/dist/httpSecurity/httpSecurity.config.js +9 -6
- package/dist/httpSecurity/httpSecurity.guard.d.ts +28 -0
- package/dist/httpSecurity/httpSecurity.guard.js +40 -0
- package/dist/httpSecurity/index.d.ts +1 -1
- package/dist/httpSecurity/index.js +1 -1
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.d.ts +56 -0
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.js +20 -0
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.d.ts +44 -0
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.js +111 -0
- package/dist/httpSecurityHeaders/core/index.d.ts +8 -0
- package/dist/httpSecurityHeaders/core/index.js +8 -0
- package/dist/httpSecurityHeaders/httpSecurity.headers.d.ts +12 -0
- package/dist/httpSecurityHeaders/httpSecurity.headers.js +12 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.factory.d.ts +11 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.factory.js +71 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.individual.d.ts +65 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.individual.js +123 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.d.ts +15 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.js +59 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.d.ts +65 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.js +120 -0
- package/dist/httpServer/core/httpServer.core.d.ts +15 -3
- package/dist/httpServer/core/httpServer.core.js +80 -25
- package/dist/httpServer/types/httpServer.type.d.ts +17 -2
- package/dist/httpStatus/httpStatus.categoryPredicate.d.ts +12 -0
- package/dist/httpStatus/httpStatus.categoryPredicate.js +24 -0
- package/dist/httpStatus/httpStatus.clientErrorConstant.d.ts +43 -0
- package/dist/httpStatus/httpStatus.clientErrorConstant.js +43 -0
- package/dist/httpStatus/httpStatus.clientErrorTextConstant.d.ts +35 -0
- package/dist/httpStatus/httpStatus.clientErrorTextConstant.js +35 -0
- package/dist/httpStatus/httpStatus.collection.d.ts +11 -0
- package/dist/httpStatus/httpStatus.collection.js +22 -0
- package/dist/httpStatus/httpStatus.commonPredicate.d.ts +8 -0
- package/dist/httpStatus/httpStatus.commonPredicate.js +8 -0
- package/dist/httpStatus/httpStatus.constant.d.ts +8 -0
- package/dist/httpStatus/httpStatus.constant.js +8 -0
- package/dist/httpStatus/httpStatus.errorPredicate.d.ts +21 -0
- package/dist/httpStatus/httpStatus.errorPredicate.js +52 -0
- package/dist/httpStatus/httpStatus.info.d.ts +24 -0
- package/dist/httpStatus/httpStatus.info.js +31 -0
- package/dist/httpStatus/httpStatus.informationalSuccessConstant.d.ts +24 -0
- package/dist/httpStatus/httpStatus.informationalSuccessConstant.js +24 -0
- package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.d.ts +24 -0
- package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.js +24 -0
- package/dist/httpStatus/httpStatus.lookup.d.ts +9 -0
- package/dist/httpStatus/httpStatus.lookup.js +28 -0
- package/dist/httpStatus/httpStatus.name.d.ts +8 -0
- package/dist/httpStatus/httpStatus.name.js +16 -0
- package/dist/httpStatus/httpStatus.predicate.d.ts +9 -0
- package/dist/httpStatus/httpStatus.predicate.js +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorConstant.d.ts +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorConstant.js +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorTextConstant.d.ts +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorTextConstant.js +9 -0
- package/dist/httpStatus/httpStatus.redirectPredicate.d.ts +10 -0
- package/dist/httpStatus/httpStatus.redirectPredicate.js +25 -0
- package/dist/httpStatus/httpStatus.redirectionConstant.d.ts +14 -0
- package/dist/httpStatus/httpStatus.redirectionConstant.js +14 -0
- package/dist/httpStatus/httpStatus.redirectionTextConstant.d.ts +14 -0
- package/dist/httpStatus/httpStatus.redirectionTextConstant.js +14 -0
- package/dist/httpStatus/httpStatus.semantics.d.ts +20 -0
- package/dist/httpStatus/httpStatus.semantics.js +49 -0
- package/dist/httpStatus/httpStatus.serverErrorConstant.d.ts +17 -0
- package/dist/httpStatus/httpStatus.serverErrorConstant.js +17 -0
- package/dist/httpStatus/httpStatus.serverErrorTextConstant.d.ts +17 -0
- package/dist/httpStatus/httpStatus.serverErrorTextConstant.js +17 -0
- package/dist/httpStatus/httpStatus.statusConstant.d.ts +74 -0
- package/dist/httpStatus/httpStatus.statusConstant.js +17 -0
- package/dist/httpStatus/httpStatus.statusTextConstant.d.ts +72 -0
- package/dist/httpStatus/httpStatus.statusTextConstant.js +17 -0
- package/dist/httpStatus/httpStatus.type.d.ts +15 -0
- package/dist/httpStatus/httpStatus.type.js +9 -0
- package/dist/httpStatus/httpStatus.validator.d.ts +8 -0
- package/dist/httpStatus/httpStatus.validator.js +17 -0
- package/dist/httpStatus/httpStatusCodes.constant.d.ts +239 -0
- package/dist/httpStatus/httpStatusCodes.constant.js +232 -0
- package/dist/httpStream/httpStream.backpressure.d.ts +9 -0
- package/dist/httpStream/httpStream.backpressure.js +44 -9
- package/dist/httpStream/httpStream.consume.d.ts +8 -0
- package/dist/httpStream/httpStream.consume.js +31 -3
- package/dist/httpStream/httpStream.error.d.ts +11 -0
- package/dist/httpStream/httpStream.error.js +17 -1
- package/dist/httpStream/httpStream.eventHelper.d.ts +0 -2
- package/dist/httpStream/httpStream.eventHelper.js +0 -24
- package/dist/httpStream/httpStream.helper.d.ts +13 -0
- package/dist/httpStream/httpStream.helper.js +18 -2
- package/dist/httpStream/httpStream.pipe.js +15 -4
- package/dist/httpStream/httpStream.progress.js +42 -8
- package/dist/httpStream/httpStream.transform.d.ts +3 -3
- package/dist/httpStream/httpStream.types.d.ts +20 -1
- package/dist/httpTrustProxy/httpTrustProxy.compilation.d.ts +32 -0
- package/dist/httpTrustProxy/httpTrustProxy.compilation.js +119 -0
- package/dist/httpTrustProxy/httpTrustProxy.core.d.ts +14 -0
- package/dist/httpTrustProxy/httpTrustProxy.core.js +14 -0
- package/dist/httpTrustProxy/httpTrustProxy.helper.d.ts +73 -0
- package/dist/httpTrustProxy/httpTrustProxy.helper.js +226 -0
- package/dist/httpTrustProxy/httpTrustProxy.ip.d.ts +49 -0
- package/dist/httpTrustProxy/httpTrustProxy.ip.js +238 -0
- package/dist/httpTrustProxy/httpTrustProxy.parsing.d.ts +32 -0
- package/dist/httpTrustProxy/httpTrustProxy.parsing.js +133 -0
- package/dist/httpTrustProxy/httpTrustProxy.type.d.ts +41 -0
- package/dist/httpTrustProxy/httpTrustProxy.type.js +12 -0
- package/dist/httpUrl/http.url.d.ts +143 -0
- package/dist/httpUrl/http.url.js +712 -0
- package/dist/httpValidation/httpValidationAssertion.d.ts +9 -0
- package/dist/httpValidation/httpValidationAssertion.js +26 -0
- package/dist/httpValidation/httpValidationAuthority.d.ts +8 -0
- package/dist/httpValidation/httpValidationAuthority.js +43 -0
- package/dist/httpValidation/httpValidationAuthorization.d.ts +7 -0
- package/dist/httpValidation/httpValidationAuthorization.js +22 -0
- package/dist/httpValidation/httpValidationCacheControl.d.ts +7 -0
- package/dist/httpValidation/httpValidationCacheControl.js +26 -0
- package/dist/httpValidation/httpValidationContentLength.d.ts +9 -0
- package/dist/httpValidation/httpValidationContentLength.js +25 -0
- package/dist/httpValidation/httpValidationContentType.d.ts +9 -0
- package/dist/httpValidation/httpValidationContentType.js +32 -0
- package/dist/httpValidation/httpValidationCookie.d.ts +8 -0
- package/dist/httpValidation/httpValidationCookie.js +19 -0
- package/dist/httpValidation/httpValidationDate.d.ts +7 -0
- package/dist/httpValidation/httpValidationDate.js +13 -0
- package/dist/httpValidation/httpValidationETag.d.ts +7 -0
- package/dist/httpValidation/httpValidationETag.js +16 -0
- package/dist/httpValidation/httpValidationHeader.d.ts +16 -0
- package/dist/httpValidation/httpValidationHeader.js +77 -0
- package/dist/httpValidation/httpValidationHostname.d.ts +7 -0
- package/dist/httpValidation/httpValidationHostname.js +27 -0
- package/dist/httpValidation/httpValidationMessage.d.ts +13 -0
- package/dist/httpValidation/httpValidationMessage.js +45 -0
- package/dist/httpValidation/httpValidationMethod.d.ts +9 -0
- package/dist/httpValidation/httpValidationMethod.js +25 -0
- package/dist/httpValidation/httpValidationPort.d.ts +9 -0
- package/dist/httpValidation/httpValidationPort.js +25 -0
- package/dist/httpValidation/httpValidationRange.d.ts +7 -0
- package/dist/httpValidation/httpValidationRange.js +41 -0
- package/dist/httpValidation/httpValidationRequestTarget.d.ts +10 -0
- package/dist/httpValidation/httpValidationRequestTarget.js +48 -0
- package/dist/httpValidation/httpValidationStatusCode.d.ts +9 -0
- package/dist/httpValidation/httpValidationStatusCode.js +25 -0
- package/dist/httpValidation/httpValidationToken.d.ts +10 -0
- package/dist/httpValidation/httpValidationToken.js +25 -0
- package/dist/httpValidation/httpValidationTypes.type.d.ts +15 -0
- package/dist/httpValidation/httpValidationTypes.type.js +7 -0
- package/dist/httpValidation/httpValidationUrl.d.ts +11 -0
- package/dist/httpValidation/httpValidationUrl.js +62 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.js +83 -0
- package/package.json +23 -16
- package/dist/httpAdapter/fetch/httpFetch.body.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.body.js.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.helper.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.requestContext.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.responseWriter.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.type.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/index.d.ts.map +0 -1
- package/dist/httpAdapter/http.adapter.d.ts.map +0 -1
- package/dist/httpAdapter/http.adapter.js.map +0 -1
- package/dist/httpAdapter/http.adapters.d.ts.map +0 -1
- package/dist/httpAdapter/http.adapters.js.map +0 -1
- package/dist/httpAdapter/httpFetch.adapter.d.ts.map +0 -1
- package/dist/httpAdapter/index.d.ts.map +0 -1
- package/dist/httpAdapter/index.js.map +0 -1
- package/dist/httpAdapter/node/httpNode.adapter.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.adapter.js.map +0 -1
- package/dist/httpAdapter/node/httpNode.request.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.response.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.server.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.server.js.map +0 -1
- package/dist/httpAdapter/node/httpNode.type.d.ts.map +0 -1
- package/dist/httpAdapter/node/index.d.ts.map +0 -1
- package/dist/httpAdapter/node/index.js.map +0 -1
- package/dist/httpAgent/http.agent.d.ts.map +0 -1
- package/dist/httpAgent/index.d.ts.map +0 -1
- package/dist/httpAgent/index.js.map +0 -1
- package/dist/httpBody/http.body.d.ts.map +0 -1
- package/dist/httpBody/http.body.js.map +0 -1
- package/dist/httpBody/httpBody.formData.d.ts.map +0 -1
- package/dist/httpBody/httpBody.formData.js.map +0 -1
- package/dist/httpBody/httpBody.parser.d.ts.map +0 -1
- package/dist/httpBody/httpBody.parser.js.map +0 -1
- package/dist/httpBody/index.d.ts.map +0 -1
- package/dist/httpBody/index.js.map +0 -1
- package/dist/httpCacheControl/core/httpCacheControl.parse.d.ts.map +0 -1
- package/dist/httpCacheControl/core/httpCacheControl.type.d.ts.map +0 -1
- package/dist/httpCacheControl/core/httpCacheControl.validation.d.ts.map +0 -1
- package/dist/httpCacheControl/core/index.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.core.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.factory.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.freshness.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.requestHelper.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.responseHelper.d.ts.map +0 -1
- package/dist/httpCacheControl/index.d.ts.map +0 -1
- package/dist/httpCacheControl/index.js.map +0 -1
- package/dist/httpClient/httpClient.abort.d.ts.map +0 -1
- package/dist/httpClient/httpClient.body.d.ts.map +0 -1
- package/dist/httpClient/httpClient.client.d.ts.map +0 -1
- package/dist/httpClient/httpClient.context.d.ts.map +0 -1
- package/dist/httpClient/httpClient.error.d.ts.map +0 -1
- package/dist/httpClient/httpClient.error.js.map +0 -1
- package/dist/httpClient/httpClient.errorNormalizer.d.ts.map +0 -1
- package/dist/httpClient/httpClient.executor.d.ts.map +0 -1
- package/dist/httpClient/httpClient.factory.d.ts.map +0 -1
- package/dist/httpClient/httpClient.headers.d.ts.map +0 -1
- package/dist/httpClient/httpClient.helpers.d.ts.map +0 -1
- package/dist/httpClient/httpClient.interceptors.d.ts.map +0 -1
- package/dist/httpClient/httpClient.methods.d.ts.map +0 -1
- package/dist/httpClient/httpClient.response.d.ts.map +0 -1
- package/dist/httpClient/httpClient.retry.d.ts.map +0 -1
- package/dist/httpClient/httpClient.retry.js.map +0 -1
- package/dist/httpClient/httpClient.type.d.ts.map +0 -1
- package/dist/httpClient/httpClient.typeGuards.d.ts.map +0 -1
- package/dist/httpClient/httpClient.url.d.ts.map +0 -1
- package/dist/httpClient/index.d.ts.map +0 -1
- package/dist/httpClient/index.js.map +0 -1
- package/dist/httpCompression/http.compression.d.ts.map +0 -1
- package/dist/httpCompression/index.d.ts.map +0 -1
- package/dist/httpCompression/index.js.map +0 -1
- package/dist/httpConditional/httpConditional.core.d.ts.map +0 -1
- package/dist/httpConditional/index.d.ts.map +0 -1
- package/dist/httpConditional/index.js.map +0 -1
- package/dist/httpConstants/http.constants.d.ts.map +0 -1
- package/dist/httpConstants/http.constants.js.map +0 -1
- package/dist/httpConstants/index.d.ts.map +0 -1
- package/dist/httpConstants/index.js.map +0 -1
- package/dist/httpContentDisposition/httpContentDisposition.core.d.ts.map +0 -1
- package/dist/httpContentDisposition/index.d.ts.map +0 -1
- package/dist/httpContentDisposition/index.js.map +0 -1
- package/dist/httpContentType/httpContentType.boundary.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.category.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.categoryBinary.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.charset.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.constructors.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.formatter.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.matcher.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.mediaTypes.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.normalizer.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.parameter.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.parser.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.parserHelpers.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.type.d.ts.map +0 -1
- package/dist/httpContentType/index.d.ts.map +0 -1
- package/dist/httpContentType/index.js.map +0 -1
- package/dist/httpContext/http.context.d.ts.map +0 -1
- package/dist/httpContext/http.context.js.map +0 -1
- package/dist/httpContext/index.d.ts.map +0 -1
- package/dist/httpContext/index.js.map +0 -1
- package/dist/httpCookies/http.cookies.d.ts.map +0 -1
- package/dist/httpCookies/index.d.ts.map +0 -1
- package/dist/httpCookies/index.js.map +0 -1
- package/dist/httpCors/http.cors.d.ts.map +0 -1
- package/dist/httpCors/index.d.ts.map +0 -1
- package/dist/httpCors/index.js.map +0 -1
- package/dist/httpCsp/checks/httpCsp.checks.d.ts.map +0 -1
- package/dist/httpCsp/checks/index.d.ts.map +0 -1
- package/dist/httpCsp/formatting/httpCsp.formatting.d.ts.map +0 -1
- package/dist/httpCsp/formatting/index.d.ts.map +0 -1
- package/dist/httpCsp/index.d.ts.map +0 -1
- package/dist/httpCsp/index.js.map +0 -1
- package/dist/httpCsp/internal/httpCsp.internal.d.ts.map +0 -1
- package/dist/httpCsp/internal/index.d.ts.map +0 -1
- package/dist/httpCsp/nonce/httpCsp.nonce.d.ts.map +0 -1
- package/dist/httpCsp/nonce/index.d.ts.map +0 -1
- package/dist/httpCsp/parsing/httpCsp.parsing.d.ts.map +0 -1
- package/dist/httpCsp/parsing/index.d.ts.map +0 -1
- package/dist/httpCsp/policies/httpCsp.policies.d.ts.map +0 -1
- package/dist/httpCsp/policies/index.d.ts.map +0 -1
- package/dist/httpCsp/reportOnly/httpCsp.reportOnly.d.ts.map +0 -1
- package/dist/httpCsp/reportOnly/index.d.ts.map +0 -1
- package/dist/httpCsp/sources/httpCsp.sources.d.ts.map +0 -1
- package/dist/httpCsp/sources/index.d.ts.map +0 -1
- package/dist/httpCsp/types/httpCsp.constant.d.ts.map +0 -1
- package/dist/httpCsp/types/httpCsp.type.d.ts.map +0 -1
- package/dist/httpCsp/types/index.d.ts.map +0 -1
- package/dist/httpCsp/validation/httpCsp.validate.d.ts.map +0 -1
- package/dist/httpCsp/validation/httpCsp.validation.d.ts.map +0 -1
- package/dist/httpCsp/validation/index.d.ts.map +0 -1
- package/dist/httpErrors/factories/httpError.clientError.d.ts.map +0 -1
- package/dist/httpErrors/factories/httpError.serverError.d.ts.map +0 -1
- package/dist/httpErrors/httpError.base.d.ts.map +0 -1
- package/dist/httpErrors/httpError.base.js.map +0 -1
- package/dist/httpErrors/httpError.helper.d.ts.map +0 -1
- package/dist/httpErrors/httpError.invalidJson.d.ts.map +0 -1
- package/dist/httpErrors/httpError.type.d.ts.map +0 -1
- package/dist/httpErrors/httpError.type.js.map +0 -1
- package/dist/httpErrors/httpError.typeGuard.d.ts.map +0 -1
- package/dist/httpErrors/index.d.ts.map +0 -1
- package/dist/httpErrors/index.js.map +0 -1
- package/dist/httpFormData/index.d.ts.map +0 -1
- package/dist/httpFormData/index.js.map +0 -1
- package/dist/httpHeaders/authorization/httpHeaders.authorization.d.ts.map +0 -1
- package/dist/httpHeaders/authorization/index.d.ts.map +0 -1
- package/dist/httpHeaders/authorization/index.js.map +0 -1
- package/dist/httpHeaders/basic/httpHeaders.basic.d.ts.map +0 -1
- package/dist/httpHeaders/basic/httpHeaders.basicMatch.d.ts.map +0 -1
- package/dist/httpHeaders/basic/index.d.ts.map +0 -1
- package/dist/httpHeaders/basic/index.js.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControl.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlBuilder.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlParse.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlTokens.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/index.d.ts +0 -10
- package/dist/httpHeaders/cacheControl/index.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/index.js +0 -10
- package/dist/httpHeaders/cacheControl/index.js.map +0 -1
- package/dist/httpHeaders/conversion/httpHeaders.conversion.d.ts.map +0 -1
- package/dist/httpHeaders/conversion/httpHeaders.conversionObject.d.ts.map +0 -1
- package/dist/httpHeaders/conversion/index.d.ts.map +0 -1
- package/dist/httpHeaders/conversion/index.js.map +0 -1
- package/dist/httpHeaders/date/httpHeaders.date.d.ts.map +0 -1
- package/dist/httpHeaders/date/index.d.ts +0 -8
- package/dist/httpHeaders/date/index.d.ts.map +0 -1
- package/dist/httpHeaders/date/index.js +0 -8
- package/dist/httpHeaders/date/index.js.map +0 -1
- package/dist/httpHeaders/etag/httpHeaders.etag.d.ts.map +0 -1
- package/dist/httpHeaders/etag/httpHeaders.etagMatch.d.ts.map +0 -1
- package/dist/httpHeaders/etag/index.d.ts.map +0 -1
- package/dist/httpHeaders/etag/index.js.map +0 -1
- package/dist/httpHeaders/forwarded/httpHeaders.forwarded.d.ts.map +0 -1
- package/dist/httpHeaders/forwarded/index.d.ts.map +0 -1
- package/dist/httpHeaders/forwarded/index.js.map +0 -1
- package/dist/httpHeaders/http.headers.d.ts.map +0 -1
- package/dist/httpHeaders/index.d.ts.map +0 -1
- package/dist/httpHeaders/index.js.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.cacheControl.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.mediaType.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.specificity.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.weightedValues.d.ts.map +0 -1
- package/dist/httpHeaders/internal/index.d.ts.map +0 -1
- package/dist/httpHeaders/internal/index.js.map +0 -1
- package/dist/httpHeaders/list/httpHeaders.list.d.ts.map +0 -1
- package/dist/httpHeaders/list/httpHeaders.listMutation.d.ts.map +0 -1
- package/dist/httpHeaders/list/index.d.ts.map +0 -1
- package/dist/httpHeaders/list/index.js.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.contentNegotiation.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.contentNegotiationSelect.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.encodingNegotiation.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.encodingNegotiationSelect.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.languageNegotiation.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/index.d.ts +0 -11
- package/dist/httpHeaders/negotiation/index.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/index.js +0 -11
- package/dist/httpHeaders/negotiation/index.js.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.contentRange.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.contentRangeParse.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.range.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.rangeResolution.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.rangeSingle.d.ts.map +0 -1
- package/dist/httpHeaders/range/index.d.ts +0 -11
- package/dist/httpHeaders/range/index.d.ts.map +0 -1
- package/dist/httpHeaders/range/index.js +0 -11
- package/dist/httpHeaders/range/index.js.map +0 -1
- package/dist/httpHeaders/security/httpHeaders.security.d.ts.map +0 -1
- package/dist/httpHeaders/security/index.d.ts.map +0 -1
- package/dist/httpHeaders/security/index.js.map +0 -1
- package/dist/httpHeaders/types/httpHeaders.type.d.ts.map +0 -1
- package/dist/httpHeaders/types/index.d.ts.map +0 -1
- package/dist/httpHeaders/types/index.js.map +0 -1
- package/dist/httpHsts/http.hsts.d.ts.map +0 -1
- package/dist/httpHsts/index.d.ts.map +0 -1
- package/dist/httpHsts/index.js.map +0 -1
- package/dist/httpInterceptors/builtin/httpInterceptor.request.d.ts.map +0 -1
- package/dist/httpInterceptors/builtin/httpInterceptor.request.js.map +0 -1
- package/dist/httpInterceptors/builtin/httpInterceptor.response.d.ts.map +0 -1
- package/dist/httpInterceptors/builtin/index.d.ts.map +0 -1
- package/dist/httpInterceptors/http.interceptors.d.ts.map +0 -1
- package/dist/httpInterceptors/httpInterceptor.helper.d.ts.map +0 -1
- package/dist/httpInterceptors/httpInterceptor.middleware.d.ts.map +0 -1
- package/dist/httpInterceptors/httpInterceptor.type.d.ts.map +0 -1
- package/dist/httpInterceptors/index.d.ts.map +0 -1
- package/dist/httpInterceptors/index.js.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.lookup.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.manager.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.registration.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.snapshot.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/index.d.ts.map +0 -1
- package/dist/httpKeepAlive/httpKeepAlive.core.d.ts.map +0 -1
- package/dist/httpKeepAlive/index.d.ts.map +0 -1
- package/dist/httpKeepAlive/index.js.map +0 -1
- package/dist/httpMethods/http.methods.d.ts.map +0 -1
- package/dist/httpMethods/http.methods.js.map +0 -1
- package/dist/httpMethods/index.d.ts.map +0 -1
- package/dist/httpMethods/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/compose/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/conditional/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/cors/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.js.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.normalizer.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/image/httpMiddleware.image.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/image/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/image/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/logging/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/security/httpMiddleware.security.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/security/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/static/httpMiddleware.static.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/static/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/static/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/timing/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/video/httpMiddleware.video.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/video/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/video/index.js.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.error.d.ts.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.error.js.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.state.d.ts.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.type.d.ts.map +0 -1
- package/dist/httpMiddleware/index.d.ts.map +0 -1
- package/dist/httpMiddleware/index.js.map +0 -1
- package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/httpPipeline.execution.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/httpPipeline.helper.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/httpPipeline.registration.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/index.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/index.js.map +0 -1
- package/dist/httpMime/http.mime.d.ts.map +0 -1
- package/dist/httpMime/index.d.ts.map +0 -1
- package/dist/httpMime/index.js.map +0 -1
- package/dist/httpMultipart/http.multipart.d.ts.map +0 -1
- package/dist/httpMultipart/http.multipart.js.map +0 -1
- package/dist/httpMultipart/index.d.ts.map +0 -1
- package/dist/httpMultipart/index.js.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.accept.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.charset.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.construction.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.core.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.encoding.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.formatting.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.helpers.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.internal.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.language.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.mediaType.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.negotiate.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.parsing.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.quality.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.sorting.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.types.d.ts.map +0 -1
- package/dist/httpNegotiation/index.d.ts.map +0 -1
- package/dist/httpNegotiation/index.js.map +0 -1
- package/dist/httpProtocol/http.protocol.d.ts.map +0 -1
- package/dist/httpProtocol/index.d.ts.map +0 -1
- package/dist/httpProtocol/index.js.map +0 -1
- package/dist/httpProxy/http.proxy.d.ts.map +0 -1
- package/dist/httpProxy/index.d.ts.map +0 -1
- package/dist/httpProxy/index.js.map +0 -1
- package/dist/httpQuery/http.query.d.ts.map +0 -1
- package/dist/httpQuery/httpQuery.string.d.ts.map +0 -1
- package/dist/httpQuery/index.d.ts.map +0 -1
- package/dist/httpQuery/index.js.map +0 -1
- package/dist/httpRange/http.range.d.ts.map +0 -1
- package/dist/httpRange/index.d.ts.map +0 -1
- package/dist/httpRange/index.js.map +0 -1
- package/dist/httpRedirect/http.redirect.d.ts.map +0 -1
- package/dist/httpRedirect/index.d.ts.map +0 -1
- package/dist/httpRedirect/index.js.map +0 -1
- package/dist/httpRequest/http.request.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.constant.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.constant.js.map +0 -1
- package/dist/httpRequest/httpRequest.context.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.id.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.js.map +0 -1
- package/dist/httpRequest/httpRequest.context.type.d.ts.map +0 -1
- package/dist/httpRequest/index.d.ts.map +0 -1
- package/dist/httpRequest/index.js.map +0 -1
- package/dist/httpResponse/core/httpResponse.statusText.d.ts.map +0 -1
- package/dist/httpResponse/core/httpResponse.type.d.ts.map +0 -1
- package/dist/httpResponse/core/index.d.ts.map +0 -1
- package/dist/httpResponse/http.response.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.context.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.helper.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.writer.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.writer.js.map +0 -1
- package/dist/httpResponse/index.d.ts.map +0 -1
- package/dist/httpResponse/index.js.map +0 -1
- package/dist/httpSecurity/httpSecurity.config.d.ts.map +0 -1
- package/dist/httpSecurity/httpSecurity.config.js.map +0 -1
- package/dist/httpSecurity/httpSecurity.guard.d.ts.map +0 -1
- package/dist/httpSecurity/httpSecurity.guard.js.map +0 -1
- package/dist/httpSecurity/httpSecurity.validator.d.ts.map +0 -1
- package/dist/httpSecurity/httpSecurity.validator.js.map +0 -1
- package/dist/httpSecurity/index.d.ts.map +0 -1
- package/dist/httpSecurity/index.js.map +0 -1
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/core/index.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurity.headers.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.factory.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.individual.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/index.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/index.js.map +0 -1
- package/dist/httpServer/core/httpServer.core.d.ts.map +0 -1
- package/dist/httpServer/core/httpServer.core.js.map +0 -1
- package/dist/httpServer/core/index.d.ts.map +0 -1
- package/dist/httpServer/core/index.js.map +0 -1
- package/dist/httpServer/factory/httpServer.factory.d.ts.map +0 -1
- package/dist/httpServer/factory/httpServer.factory.js.map +0 -1
- package/dist/httpServer/factory/index.d.ts.map +0 -1
- package/dist/httpServer/factory/index.js.map +0 -1
- package/dist/httpServer/index.d.ts.map +0 -1
- package/dist/httpServer/index.js.map +0 -1
- package/dist/httpServer/manager/httpServer.manager.d.ts.map +0 -1
- package/dist/httpServer/manager/httpServer.manager.js.map +0 -1
- package/dist/httpServer/manager/index.d.ts.map +0 -1
- package/dist/httpServer/manager/index.js.map +0 -1
- package/dist/httpServer/types/httpServer.type.d.ts.map +0 -1
- package/dist/httpServer/types/httpServer.type.js.map +0 -1
- package/dist/httpStatus/httpStatus.categoryPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.clientErrorConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.clientErrorTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.collection.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.commonPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.constant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.errorPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.info.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.informationalSuccessConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.lookup.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.name.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.predicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectErrorConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectErrorTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectionConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectionTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.semantics.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.serverErrorConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.serverErrorTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.statusConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.statusTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.type.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.validator.d.ts.map +0 -1
- package/dist/httpStatus/httpStatusCodes.constant.d.ts.map +0 -1
- package/dist/httpStatus/index.d.ts.map +0 -1
- package/dist/httpStatus/index.js.map +0 -1
- package/dist/httpStream/httpStream.backpressure.d.ts.map +0 -1
- package/dist/httpStream/httpStream.backpressure.js.map +0 -1
- package/dist/httpStream/httpStream.constants.d.ts.map +0 -1
- package/dist/httpStream/httpStream.constants.js.map +0 -1
- package/dist/httpStream/httpStream.consume.d.ts.map +0 -1
- package/dist/httpStream/httpStream.consume.js.map +0 -1
- package/dist/httpStream/httpStream.destroy.d.ts.map +0 -1
- package/dist/httpStream/httpStream.destroy.js.map +0 -1
- package/dist/httpStream/httpStream.error.d.ts.map +0 -1
- package/dist/httpStream/httpStream.error.js.map +0 -1
- package/dist/httpStream/httpStream.eventHelper.d.ts.map +0 -1
- package/dist/httpStream/httpStream.eventHelper.js.map +0 -1
- package/dist/httpStream/httpStream.helper.d.ts.map +0 -1
- package/dist/httpStream/httpStream.helper.js.map +0 -1
- package/dist/httpStream/httpStream.pipe.d.ts.map +0 -1
- package/dist/httpStream/httpStream.pipe.js.map +0 -1
- package/dist/httpStream/httpStream.progress.d.ts.map +0 -1
- package/dist/httpStream/httpStream.progress.js.map +0 -1
- package/dist/httpStream/httpStream.read.d.ts.map +0 -1
- package/dist/httpStream/httpStream.read.js.map +0 -1
- package/dist/httpStream/httpStream.request.d.ts.map +0 -1
- package/dist/httpStream/httpStream.request.js.map +0 -1
- package/dist/httpStream/httpStream.state.d.ts.map +0 -1
- package/dist/httpStream/httpStream.state.js.map +0 -1
- package/dist/httpStream/httpStream.transform.d.ts.map +0 -1
- package/dist/httpStream/httpStream.transform.js.map +0 -1
- package/dist/httpStream/httpStream.types.d.ts.map +0 -1
- package/dist/httpStream/httpStream.types.js.map +0 -1
- package/dist/httpStream/index.d.ts.map +0 -1
- package/dist/httpStream/index.js.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.compilation.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.core.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.helper.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.parsing.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.type.d.ts.map +0 -1
- package/dist/httpTrustProxy/index.d.ts.map +0 -1
- package/dist/httpTrustProxy/index.js.map +0 -1
- package/dist/httpTypes/http.types.d.ts.map +0 -1
- package/dist/httpTypes/http.types.js.map +0 -1
- package/dist/httpTypes/index.d.ts.map +0 -1
- package/dist/httpTypes/index.js.map +0 -1
- package/dist/httpUrl/http.url.d.ts.map +0 -1
- package/dist/httpUrl/index.d.ts.map +0 -1
- package/dist/httpUrl/index.js.map +0 -1
- package/dist/httpValidation/httpValidationAssertion.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationAuthority.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationAuthorization.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationCacheControl.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationContentLength.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationContentType.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationCookie.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationDate.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationETag.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationHeader.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationHostname.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationMessage.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationMethod.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationPort.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationRange.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationRequestTarget.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationStatusCode.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationToken.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationTypes.type.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationUrl.d.ts.map +0 -1
- package/dist/httpValidation/index.d.ts.map +0 -1
- package/dist/httpValidation/index.js.map +0 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache freshness calculations.
|
|
3
|
+
*
|
|
4
|
+
* @module httpCacheControl/freshness
|
|
5
|
+
*/
|
|
6
|
+
import { parseCacheControl } from "./core/httpCacheControl.parse.js";
|
|
7
|
+
/**
|
|
8
|
+
* Calculates the freshness of a cached response.
|
|
9
|
+
*
|
|
10
|
+
* `s-maxage` is preferred over `max-age`, and `Expires` is used when neither
|
|
11
|
+
* is present. `no-cache` and `no-store` force the response stale — a response
|
|
12
|
+
* the origin marked must-revalidate-before-reuse must never be reported
|
|
13
|
+
* fresh.
|
|
14
|
+
*
|
|
15
|
+
* @param responseHeaders - The cached response's headers.
|
|
16
|
+
* @param responseDate - The response's `Date`, if already parsed.
|
|
17
|
+
* @returns The freshness calculation.
|
|
18
|
+
*/
|
|
19
|
+
export function calculateFreshness(responseHeaders, responseDate) {
|
|
20
|
+
const cacheControl = responseHeaders["cache-control"];
|
|
21
|
+
const directives = parseCacheControl(cacheControl);
|
|
22
|
+
const date = responseDate ?? new Date(responseHeaders["date"] ?? Date.now());
|
|
23
|
+
/*
|
|
24
|
+
* RFC 9111 section 5.1: Age is a non-negative delta-seconds. A negative or
|
|
25
|
+
* suffixed value would otherwise inflate freshness without bound, which
|
|
26
|
+
* pins a poisoned response in cache far past the origin's TTL.
|
|
27
|
+
*/
|
|
28
|
+
const rawAge = (responseHeaders["age"] ?? "").trim();
|
|
29
|
+
const age = /^\d+$/.test(rawAge) ? Number(rawAge) : 0;
|
|
30
|
+
const expiresHeader = responseHeaders["expires"];
|
|
31
|
+
const expires = expiresHeader ? parseExpires(expiresHeader) : undefined;
|
|
32
|
+
const effectiveMaxAge = resolveMaxAge(directives, expires, date);
|
|
33
|
+
const remaining = Math.max(0, effectiveMaxAge - age);
|
|
34
|
+
const stale = remaining <= 0 ||
|
|
35
|
+
directives.noCache === true ||
|
|
36
|
+
directives.noStore === true;
|
|
37
|
+
return {
|
|
38
|
+
maxAge: effectiveMaxAge,
|
|
39
|
+
expires,
|
|
40
|
+
date,
|
|
41
|
+
age,
|
|
42
|
+
stale,
|
|
43
|
+
remaining,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Parses an `Expires` header, treating an unparseable value as expired.
|
|
48
|
+
*
|
|
49
|
+
* @param value - The raw `Expires` value.
|
|
50
|
+
* @returns The parsed date, or the epoch when it cannot be parsed.
|
|
51
|
+
*/
|
|
52
|
+
function parseExpires(value) {
|
|
53
|
+
const parsed = new Date(value);
|
|
54
|
+
return Number.isNaN(parsed.getTime()) ? new Date(0) : parsed;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Resolves the freshness lifetime in seconds.
|
|
58
|
+
*
|
|
59
|
+
* @param directives - The parsed Cache-Control directives.
|
|
60
|
+
* @param expires - The parsed `Expires` header, if present.
|
|
61
|
+
* @param date - The response's `Date`.
|
|
62
|
+
* @returns The freshness lifetime in seconds.
|
|
63
|
+
*/
|
|
64
|
+
function resolveMaxAge(directives, expires, date) {
|
|
65
|
+
if (directives.sMaxAge !== undefined) {
|
|
66
|
+
return directives.sMaxAge;
|
|
67
|
+
}
|
|
68
|
+
if (directives.maxAge !== undefined) {
|
|
69
|
+
return directives.maxAge;
|
|
70
|
+
}
|
|
71
|
+
if (expires) {
|
|
72
|
+
return Math.max(0, Math.floor((expires.getTime() - date.getTime()) / 1_000));
|
|
73
|
+
}
|
|
74
|
+
return 0;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Determines if a cached response is still fresh.
|
|
78
|
+
*/
|
|
79
|
+
export function isFresh(responseHeaders, requestHeaders) {
|
|
80
|
+
const freshness = calculateFreshness(responseHeaders);
|
|
81
|
+
if (freshness.stale) {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
if (requestHeaders) {
|
|
85
|
+
const reqCacheControl = requestHeaders["cache-control"];
|
|
86
|
+
const reqDirectives = parseCacheControl(reqCacheControl);
|
|
87
|
+
if (reqDirectives.maxAge !== undefined &&
|
|
88
|
+
freshness.age >= reqDirectives.maxAge) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
if (reqDirectives.minFresh !== undefined) {
|
|
92
|
+
const remaining = freshness.remaining;
|
|
93
|
+
if (remaining < reqDirectives.minFresh) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Gets the remaining freshness in seconds.
|
|
102
|
+
*/
|
|
103
|
+
export function getRemainingFreshness(responseHeaders) {
|
|
104
|
+
const freshness = calculateFreshness(responseHeaders);
|
|
105
|
+
return freshness.remaining;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Determines if a stale response can be served while revalidating.
|
|
109
|
+
*/
|
|
110
|
+
export function canServeStaleWhileRevalidate(responseHeaders) {
|
|
111
|
+
const cacheControl = responseHeaders["cache-control"];
|
|
112
|
+
const directives = parseCacheControl(cacheControl);
|
|
113
|
+
return (directives.staleWhileRevalidate !== undefined &&
|
|
114
|
+
directives.staleWhileRevalidate > 0);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Determines if a stale response can be served on error.
|
|
118
|
+
*/
|
|
119
|
+
export function canServeStaleIfError(responseHeaders) {
|
|
120
|
+
const cacheControl = responseHeaders["cache-control"];
|
|
121
|
+
const directives = parseCacheControl(cacheControl);
|
|
122
|
+
return directives.staleIfError !== undefined && directives.staleIfError > 0;
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=httpCacheControl.freshness.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request-related cache control helpers.
|
|
3
|
+
*
|
|
4
|
+
* @module httpCacheControl/requestHelpers
|
|
5
|
+
*/
|
|
6
|
+
import type { CacheControlDirectives } from "./core/httpCacheControl.type.js";
|
|
7
|
+
/**
|
|
8
|
+
* Checks if a specific cache directive is present.
|
|
9
|
+
*
|
|
10
|
+
* Valued directives (`maxAge`, `sMaxAge`, `staleWhileRevalidate`,
|
|
11
|
+
* `noCacheHeaders`, …) are stored as numbers or arrays, not `true`, so a
|
|
12
|
+
* strict equality against `true` answered "no" for every one of them.
|
|
13
|
+
*
|
|
14
|
+
* @param directives - The parsed directives.
|
|
15
|
+
* @param directive - The directive to look for.
|
|
16
|
+
* @returns `true` if the directive was present in the header.
|
|
17
|
+
*/
|
|
18
|
+
export declare function hasCacheDirective(directives: CacheControlDirectives, directive: keyof CacheControlDirectives): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Gets the value of a specific cache directive.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getCacheDirective(directives: CacheControlDirectives, directive: keyof CacheControlDirectives): string | number | boolean | readonly string[] | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Determines if a request requires cache revalidation.
|
|
25
|
+
*/
|
|
26
|
+
export declare function requestRequiresRevalidation(header: string | undefined): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Determines if a request only uses cached responses.
|
|
29
|
+
*/
|
|
30
|
+
export declare function requestOnlyIfCached(header: string | undefined): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Gets the maximum stale age from request directives.
|
|
33
|
+
*/
|
|
34
|
+
export declare function getMaximumStaleAge(header: string | undefined): number | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the minimum freshness required from request directives.
|
|
37
|
+
*/
|
|
38
|
+
export declare function getMinimumFreshness(header: string | undefined): number | undefined;
|
|
39
|
+
//# sourceMappingURL=httpCacheControl.requestHelper.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request-related cache control helpers.
|
|
3
|
+
*
|
|
4
|
+
* @module httpCacheControl/requestHelpers
|
|
5
|
+
*/
|
|
6
|
+
import { parseCacheControl } from "./core/httpCacheControl.parse.js";
|
|
7
|
+
/**
|
|
8
|
+
* Checks if a specific cache directive is present.
|
|
9
|
+
*
|
|
10
|
+
* Valued directives (`maxAge`, `sMaxAge`, `staleWhileRevalidate`,
|
|
11
|
+
* `noCacheHeaders`, …) are stored as numbers or arrays, not `true`, so a
|
|
12
|
+
* strict equality against `true` answered "no" for every one of them.
|
|
13
|
+
*
|
|
14
|
+
* @param directives - The parsed directives.
|
|
15
|
+
* @param directive - The directive to look for.
|
|
16
|
+
* @returns `true` if the directive was present in the header.
|
|
17
|
+
*/
|
|
18
|
+
export function hasCacheDirective(directives, directive) {
|
|
19
|
+
const value = directives[directive];
|
|
20
|
+
return value !== undefined && value !== false;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Gets the value of a specific cache directive.
|
|
24
|
+
*/
|
|
25
|
+
export function getCacheDirective(directives, directive) {
|
|
26
|
+
return directives[directive];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Determines if a request requires cache revalidation.
|
|
30
|
+
*/
|
|
31
|
+
export function requestRequiresRevalidation(header) {
|
|
32
|
+
const directives = parseCacheControl(header);
|
|
33
|
+
return directives.noCache === true || directives.mustRevalidate === true;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Determines if a request only uses cached responses.
|
|
37
|
+
*/
|
|
38
|
+
export function requestOnlyIfCached(header) {
|
|
39
|
+
const directives = parseCacheControl(header);
|
|
40
|
+
return directives.onlyIfCached === true;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Gets the maximum stale age from request directives.
|
|
44
|
+
*/
|
|
45
|
+
export function getMaximumStaleAge(header) {
|
|
46
|
+
const directives = parseCacheControl(header);
|
|
47
|
+
return directives.maxStale;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Gets the minimum freshness required from request directives.
|
|
51
|
+
*/
|
|
52
|
+
export function getMinimumFreshness(header) {
|
|
53
|
+
const directives = parseCacheControl(header);
|
|
54
|
+
return directives.minFresh;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=httpCacheControl.requestHelper.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response-related cache control helpers.
|
|
3
|
+
*
|
|
4
|
+
* @module httpCacheControl/responseHelpers
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Determines if a response is storable by a **shared** cache.
|
|
8
|
+
*
|
|
9
|
+
* RFC 9111 section 3.5: a response to an `Authorization`-bearing request may
|
|
10
|
+
* only be stored when it carries `must-revalidate`, `public` or `s-maxage`.
|
|
11
|
+
* `private` is not sufficient — it is the directive meaning *"do not store
|
|
12
|
+
* this in a shared cache"*, so accepting it authorised the canonical
|
|
13
|
+
* shared-cache authentication bypass.
|
|
14
|
+
*
|
|
15
|
+
* @param responseHeaders - The response headers.
|
|
16
|
+
* @param requestHeaders - The originating request's headers.
|
|
17
|
+
* @returns `true` if the response may be stored.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isResponseStorable(responseHeaders: Readonly<Record<string, string>>, requestHeaders?: Readonly<Record<string, string>>): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Determines if a response is explicitly public.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isResponsePublic(responseHeaders: Readonly<Record<string, string>>): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Determines if a response is explicitly private.
|
|
26
|
+
*/
|
|
27
|
+
export declare function isResponsePrivate(responseHeaders: Readonly<Record<string, string>>): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Determines if a response is immutable.
|
|
30
|
+
*/
|
|
31
|
+
export declare function isImmutable(responseHeaders: Readonly<Record<string, string>>): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Determines if a response allows transformation.
|
|
34
|
+
*/
|
|
35
|
+
export declare function allowsTransformation(responseHeaders: Readonly<Record<string, string>>): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the effective max-age for a response.
|
|
38
|
+
*/
|
|
39
|
+
export declare function getEffectiveMaxAge(responseHeaders: Readonly<Record<string, string>>): number;
|
|
40
|
+
//# sourceMappingURL=httpCacheControl.responseHelper.d.ts.map
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response-related cache control helpers.
|
|
3
|
+
*
|
|
4
|
+
* @module httpCacheControl/responseHelpers
|
|
5
|
+
*/
|
|
6
|
+
import { parseCacheControl } from "./core/httpCacheControl.parse.js";
|
|
7
|
+
/**
|
|
8
|
+
* Determines if a response is storable by a **shared** cache.
|
|
9
|
+
*
|
|
10
|
+
* RFC 9111 section 3.5: a response to an `Authorization`-bearing request may
|
|
11
|
+
* only be stored when it carries `must-revalidate`, `public` or `s-maxage`.
|
|
12
|
+
* `private` is not sufficient — it is the directive meaning *"do not store
|
|
13
|
+
* this in a shared cache"*, so accepting it authorised the canonical
|
|
14
|
+
* shared-cache authentication bypass.
|
|
15
|
+
*
|
|
16
|
+
* @param responseHeaders - The response headers.
|
|
17
|
+
* @param requestHeaders - The originating request's headers.
|
|
18
|
+
* @returns `true` if the response may be stored.
|
|
19
|
+
*/
|
|
20
|
+
export function isResponseStorable(responseHeaders, requestHeaders) {
|
|
21
|
+
const directives = parseCacheControl(responseHeaders["cache-control"]);
|
|
22
|
+
if (directives.noStore) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
if (parseCacheControl(requestHeaders?.["cache-control"]).noStore) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
const authHeader = requestHeaders?.["authorization"];
|
|
29
|
+
if (authHeader &&
|
|
30
|
+
!(directives.public === true ||
|
|
31
|
+
directives.mustRevalidate === true ||
|
|
32
|
+
directives.sMaxAge !== undefined)) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Determines if a response is explicitly public.
|
|
39
|
+
*/
|
|
40
|
+
export function isResponsePublic(responseHeaders) {
|
|
41
|
+
const cacheControl = responseHeaders["cache-control"];
|
|
42
|
+
const directives = parseCacheControl(cacheControl);
|
|
43
|
+
return directives.public === true;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Determines if a response is explicitly private.
|
|
47
|
+
*/
|
|
48
|
+
export function isResponsePrivate(responseHeaders) {
|
|
49
|
+
const cacheControl = responseHeaders["cache-control"];
|
|
50
|
+
const directives = parseCacheControl(cacheControl);
|
|
51
|
+
return directives.private === true;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Determines if a response is immutable.
|
|
55
|
+
*/
|
|
56
|
+
export function isImmutable(responseHeaders) {
|
|
57
|
+
const cacheControl = responseHeaders["cache-control"];
|
|
58
|
+
const directives = parseCacheControl(cacheControl);
|
|
59
|
+
return directives.immutable === true;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Determines if a response allows transformation.
|
|
63
|
+
*/
|
|
64
|
+
export function allowsTransformation(responseHeaders) {
|
|
65
|
+
const cacheControl = responseHeaders["cache-control"];
|
|
66
|
+
const directives = parseCacheControl(cacheControl);
|
|
67
|
+
return directives.noTransform !== true;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Gets the effective max-age for a response.
|
|
71
|
+
*/
|
|
72
|
+
export function getEffectiveMaxAge(responseHeaders) {
|
|
73
|
+
const cacheControl = responseHeaders["cache-control"];
|
|
74
|
+
const directives = parseCacheControl(cacheControl);
|
|
75
|
+
if (directives.maxAge !== undefined) {
|
|
76
|
+
return directives.maxAge;
|
|
77
|
+
}
|
|
78
|
+
const expires = responseHeaders["expires"];
|
|
79
|
+
if (expires) {
|
|
80
|
+
const expiresDate = new Date(expires);
|
|
81
|
+
const now = new Date();
|
|
82
|
+
const diff = Math.floor((expiresDate.getTime() - now.getTime()) / 1000);
|
|
83
|
+
return Math.max(0, diff);
|
|
84
|
+
}
|
|
85
|
+
return 0;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=httpCacheControl.responseHelper.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP client abort signal combining.
|
|
3
|
+
*
|
|
4
|
+
* @module httpClient/abort
|
|
5
|
+
*/
|
|
6
|
+
export function combineAbortSignals(first, second) {
|
|
7
|
+
if (!first) {
|
|
8
|
+
return second;
|
|
9
|
+
}
|
|
10
|
+
if (!second) {
|
|
11
|
+
return first;
|
|
12
|
+
}
|
|
13
|
+
if (typeof AbortSignal !== "undefined" && "any" in AbortSignal) {
|
|
14
|
+
return AbortSignal.any([first, second]);
|
|
15
|
+
}
|
|
16
|
+
const controller = new AbortController();
|
|
17
|
+
const abort = (event) => {
|
|
18
|
+
controller.abort(event.target.reason);
|
|
19
|
+
};
|
|
20
|
+
if (first.aborted) {
|
|
21
|
+
controller.abort(first.reason);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
first.addEventListener("abort", abort, { once: true });
|
|
25
|
+
}
|
|
26
|
+
if (second.aborted) {
|
|
27
|
+
controller.abort(second.reason);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
second.addEventListener("abort", abort, { once: true });
|
|
31
|
+
}
|
|
32
|
+
return controller.signal;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=httpClient.abort.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP client request body normalization.
|
|
3
|
+
*
|
|
4
|
+
* @module httpClient/body
|
|
5
|
+
*/
|
|
6
|
+
import type { HttpClientBody } from "./httpClient.type.js";
|
|
7
|
+
export declare function normalizeRequestBody(body: HttpClientBody, headers: Headers, method: string): BodyInit | undefined;
|
|
8
|
+
//# sourceMappingURL=httpClient.body.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP client request body normalization.
|
|
3
|
+
*
|
|
4
|
+
* @module httpClient/body
|
|
5
|
+
*/
|
|
6
|
+
import { HttpClientError } from "./httpClient.error.js";
|
|
7
|
+
export function normalizeRequestBody(body, headers, method) {
|
|
8
|
+
if (body === undefined || body === null) {
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
if (method === "GET" || method === "HEAD") {
|
|
12
|
+
throw new HttpClientError(`${method} requests cannot contain a request body.`, {
|
|
13
|
+
code: "HTTP_CLIENT_INVALID_BODY",
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
if (isBodyInit(body)) {
|
|
17
|
+
return body;
|
|
18
|
+
}
|
|
19
|
+
if (typeof body === "object") {
|
|
20
|
+
if (!headers.has("content-type")) {
|
|
21
|
+
headers.set("content-type", "application/json; charset=utf-8");
|
|
22
|
+
}
|
|
23
|
+
return JSON.stringify(body);
|
|
24
|
+
}
|
|
25
|
+
return String(body);
|
|
26
|
+
}
|
|
27
|
+
function isBodyInit(value) {
|
|
28
|
+
if (typeof value === "string") {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
if (typeof Blob !== "undefined" && value instanceof Blob) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (typeof FormData !== "undefined" && value instanceof FormData) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
if (typeof URLSearchParams !== "undefined" &&
|
|
38
|
+
value instanceof URLSearchParams) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
if (typeof ArrayBuffer !== "undefined" && value instanceof ArrayBuffer) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
if (typeof Uint8Array !== "undefined" && value instanceof Uint8Array) {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
if (typeof ReadableStream !== "undefined" &&
|
|
48
|
+
value instanceof ReadableStream) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=httpClient.body.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP client core class.
|
|
3
|
+
*
|
|
4
|
+
* @module httpClient/client
|
|
5
|
+
*/
|
|
6
|
+
import type { HttpClientRequestConfig, HttpRetryOptions, HttpClientOptions, HttpClientResponse, HttpRequestInterceptor, HttpResponseInterceptor, HttpErrorInterceptor } from "./httpClient.type.js";
|
|
7
|
+
export declare class HttpClient {
|
|
8
|
+
readonly baseUrl: string | undefined;
|
|
9
|
+
private readonly defaultHeaders;
|
|
10
|
+
readonly defaultTimeout: number | undefined;
|
|
11
|
+
readonly defaultRetry: HttpRetryOptions | undefined;
|
|
12
|
+
readonly defaults: Omit<RequestInit, "headers">;
|
|
13
|
+
readonly fetchImpl: typeof globalThis.fetch;
|
|
14
|
+
private readonly requestInterceptors;
|
|
15
|
+
private readonly responseInterceptors;
|
|
16
|
+
private readonly errorInterceptors;
|
|
17
|
+
constructor(options?: HttpClientOptions);
|
|
18
|
+
request<T = unknown>(url: string | URL, config?: HttpClientRequestConfig): Promise<HttpClientResponse<T>>;
|
|
19
|
+
addRequestInterceptor(interceptor: HttpRequestInterceptor): () => void;
|
|
20
|
+
addResponseInterceptor(interceptor: HttpResponseInterceptor): () => void;
|
|
21
|
+
addErrorInterceptor(interceptor: HttpErrorInterceptor): () => void;
|
|
22
|
+
private execute;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=httpClient.client.d.ts.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP client core class.
|
|
3
|
+
*
|
|
4
|
+
* @module httpClient/client
|
|
5
|
+
*/
|
|
6
|
+
import { normalizeBaseUrl, validateTimeout, isHttpClientResponse, HttpClientResponseMarker, } from "./httpClient.helpers.js";
|
|
7
|
+
import { normalizeRetryOptions } from "./httpClient.retry.js";
|
|
8
|
+
import { normalizeClientError } from "./httpClient.errorNormalizer.js";
|
|
9
|
+
import { createContext } from "./httpClient.context.js";
|
|
10
|
+
import { executeWithRetry } from "./httpClient.executor.js";
|
|
11
|
+
import { addRequestInterceptor, addResponseInterceptor, addErrorInterceptor, } from "./httpClient.interceptors.js";
|
|
12
|
+
export class HttpClient {
|
|
13
|
+
baseUrl;
|
|
14
|
+
defaultHeaders;
|
|
15
|
+
defaultTimeout;
|
|
16
|
+
defaultRetry;
|
|
17
|
+
defaults;
|
|
18
|
+
fetchImpl;
|
|
19
|
+
requestInterceptors;
|
|
20
|
+
responseInterceptors;
|
|
21
|
+
errorInterceptors;
|
|
22
|
+
constructor(options = {}) {
|
|
23
|
+
this.baseUrl = normalizeBaseUrl(options.baseUrl);
|
|
24
|
+
this.defaultHeaders = new Headers(options.headers);
|
|
25
|
+
this.defaultTimeout = validateTimeout(options.timeout);
|
|
26
|
+
this.defaultRetry = normalizeRetryOptions(options.retry);
|
|
27
|
+
this.defaults = {
|
|
28
|
+
credentials: options.credentials,
|
|
29
|
+
mode: options.mode,
|
|
30
|
+
cache: options.cache,
|
|
31
|
+
redirect: options.redirect,
|
|
32
|
+
referrer: options.referrer,
|
|
33
|
+
referrerPolicy: options.referrerPolicy,
|
|
34
|
+
integrity: options.integrity,
|
|
35
|
+
keepalive: options.keepalive,
|
|
36
|
+
};
|
|
37
|
+
this.fetchImpl = options.fetch ?? globalThis.fetch.bind(globalThis);
|
|
38
|
+
this.requestInterceptors = [...(options.interceptors?.request ?? [])];
|
|
39
|
+
this.responseInterceptors = [...(options.interceptors?.response ?? [])];
|
|
40
|
+
this.errorInterceptors = [...(options.interceptors?.error ?? [])];
|
|
41
|
+
}
|
|
42
|
+
request(url, config = {}) {
|
|
43
|
+
return this.execute(url, config);
|
|
44
|
+
}
|
|
45
|
+
/* Interceptors */
|
|
46
|
+
addRequestInterceptor(interceptor) {
|
|
47
|
+
return addRequestInterceptor(this.requestInterceptors, interceptor);
|
|
48
|
+
}
|
|
49
|
+
addResponseInterceptor(interceptor) {
|
|
50
|
+
return addResponseInterceptor(this.responseInterceptors, interceptor);
|
|
51
|
+
}
|
|
52
|
+
addErrorInterceptor(interceptor) {
|
|
53
|
+
return addErrorInterceptor(this.errorInterceptors, interceptor);
|
|
54
|
+
}
|
|
55
|
+
/* Execution */
|
|
56
|
+
async execute(url, config) {
|
|
57
|
+
let context = createContext(url, config, this.baseUrl, this.defaultHeaders, this.defaults);
|
|
58
|
+
try {
|
|
59
|
+
for (const interceptor of this.requestInterceptors) {
|
|
60
|
+
context = await interceptor(context);
|
|
61
|
+
}
|
|
62
|
+
const response = await executeWithRetry(context, this);
|
|
63
|
+
let transformed = response;
|
|
64
|
+
for (const interceptor of this.responseInterceptors) {
|
|
65
|
+
transformed = await interceptor(transformed);
|
|
66
|
+
}
|
|
67
|
+
return transformed;
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
const normalized = normalizeClientError(error, context.request);
|
|
71
|
+
for (const interceptor of this.errorInterceptors) {
|
|
72
|
+
const result = await interceptor(normalized);
|
|
73
|
+
if (result instanceof HttpClientResponseMarker) {
|
|
74
|
+
return result.value;
|
|
75
|
+
}
|
|
76
|
+
if (isHttpClientResponse(result)) {
|
|
77
|
+
return result;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
throw normalized;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=httpClient.client.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP client request context creation.
|
|
3
|
+
*
|
|
4
|
+
* @module httpClient/context
|
|
5
|
+
*/
|
|
6
|
+
import type { HttpClientRequestConfig, HttpClientRequestContext } from "./httpClient.type.js";
|
|
7
|
+
export declare function createContext(url: string | URL, config: HttpClientRequestConfig, baseUrl: string | undefined, defaultHeaders: Headers, defaults?: Omit<RequestInit, "headers">): HttpClientRequestContext;
|
|
8
|
+
//# sourceMappingURL=httpClient.context.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP client request context creation.
|
|
3
|
+
*
|
|
4
|
+
* @module httpClient/context
|
|
5
|
+
*/
|
|
6
|
+
import { createFetchRequest } from "../httpAdapter/httpFetch.adapter.js";
|
|
7
|
+
import { buildClientUrl } from "./httpClient.url.js";
|
|
8
|
+
import { mergeHeaders } from "./httpClient.headers.js";
|
|
9
|
+
import { normalizeRequestBody } from "./httpClient.body.js";
|
|
10
|
+
export function createContext(url, config, baseUrl, defaultHeaders, defaults = {}) {
|
|
11
|
+
const method = (config.method ?? "GET").toUpperCase();
|
|
12
|
+
const target = buildClientUrl(url, baseUrl, config.query);
|
|
13
|
+
const headers = mergeHeaders(defaultHeaders, config.headers);
|
|
14
|
+
const body = normalizeRequestBody(config.body, headers, method);
|
|
15
|
+
/*
|
|
16
|
+
* Client-level defaults are applied first and the per-request config
|
|
17
|
+
* overrides them. Previously `defaults` was built in the constructor and
|
|
18
|
+
* read nowhere, so `redirect: "manual"`, `credentials: "omit"` and an
|
|
19
|
+
* `integrity` pin were all silently dropped.
|
|
20
|
+
*/
|
|
21
|
+
const request = createFetchRequest({
|
|
22
|
+
url: typeof target === "string" ? target : target.toString(),
|
|
23
|
+
method,
|
|
24
|
+
headers: Object.fromEntries(headers.entries()),
|
|
25
|
+
body,
|
|
26
|
+
}, {
|
|
27
|
+
credentials: config.credentials ?? defaults.credentials,
|
|
28
|
+
mode: config.mode ?? defaults.mode,
|
|
29
|
+
cache: config.cache ?? defaults.cache,
|
|
30
|
+
redirect: config.redirect ?? defaults.redirect,
|
|
31
|
+
referrer: config.referrer ?? defaults.referrer,
|
|
32
|
+
referrerPolicy: config.referrerPolicy ?? defaults.referrerPolicy,
|
|
33
|
+
integrity: config.integrity ?? defaults.integrity,
|
|
34
|
+
keepalive: config.keepalive ?? defaults.keepalive,
|
|
35
|
+
});
|
|
36
|
+
return {
|
|
37
|
+
url: target.toString(),
|
|
38
|
+
config: { ...config, method },
|
|
39
|
+
request,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=httpClient.context.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP client error normalization.
|
|
3
|
+
*
|
|
4
|
+
* @module httpClient/errorNormalizer
|
|
5
|
+
*/
|
|
6
|
+
import { HttpClientError } from "./httpClient.error.js";
|
|
7
|
+
export declare function normalizeClientError(error: unknown, request?: Request): HttpClientError;
|
|
8
|
+
//# sourceMappingURL=httpClient.errorNormalizer.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP client error normalization.
|
|
3
|
+
*
|
|
4
|
+
* @module httpClient/errorNormalizer
|
|
5
|
+
*/
|
|
6
|
+
import { HttpClientError, HttpClientTimeoutError, HttpClientAbortError, HttpClientNetworkError, } from "./httpClient.error.js";
|
|
7
|
+
export function normalizeClientError(error, request) {
|
|
8
|
+
if (error instanceof HttpClientError) {
|
|
9
|
+
return error;
|
|
10
|
+
}
|
|
11
|
+
/*
|
|
12
|
+
* Classify by the error itself first. Checking `signal.aborted` up front
|
|
13
|
+
* meant a genuine DNS or TLS failure that happened to race a concurrent
|
|
14
|
+
* timeout was reported as an abort, hiding the real cause.
|
|
15
|
+
*/
|
|
16
|
+
if (error instanceof DOMException && error.name === "AbortError") {
|
|
17
|
+
const reason = request?.signal.reason;
|
|
18
|
+
if (reason instanceof HttpClientTimeoutError) {
|
|
19
|
+
return reason;
|
|
20
|
+
}
|
|
21
|
+
return new HttpClientAbortError(request, reason ?? error);
|
|
22
|
+
}
|
|
23
|
+
if (error instanceof TypeError) {
|
|
24
|
+
return new HttpClientNetworkError(error.message || "HTTP request failed due to a network error.", request, error);
|
|
25
|
+
}
|
|
26
|
+
return new HttpClientError(error instanceof Error ? error.message : "HTTP request failed.", {
|
|
27
|
+
code: "HTTP_CLIENT_ERROR",
|
|
28
|
+
request,
|
|
29
|
+
cause: error,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=httpClient.errorNormalizer.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP client execution with retry.
|
|
3
|
+
*
|
|
4
|
+
* @module httpClient/executor
|
|
5
|
+
*/
|
|
6
|
+
import type { HttpClientRequestContext, HttpClientResponse } from "./httpClient.type.js";
|
|
7
|
+
interface HttpClientLike {
|
|
8
|
+
readonly fetchImpl: typeof globalThis.fetch;
|
|
9
|
+
readonly defaultRetry: import("./httpClient.type.js").HttpRetryOptions | undefined;
|
|
10
|
+
readonly defaultTimeout: number | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare function executeWithRetry(context: HttpClientRequestContext, client: HttpClientLike): Promise<HttpClientResponse>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=httpClient.executor.d.ts.map
|