@zudojs/http 0.1.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +15 -7
- package/dist/httpAdapter/fetch/httpFetch.helper.d.ts +19 -0
- package/dist/httpAdapter/fetch/httpFetch.helper.js +35 -0
- package/dist/httpAdapter/fetch/httpFetch.requestContext.d.ts +20 -0
- package/dist/httpAdapter/fetch/httpFetch.requestContext.js +72 -0
- package/dist/httpAdapter/fetch/httpFetch.responseWriter.d.ts +31 -0
- package/dist/httpAdapter/fetch/httpFetch.responseWriter.js +69 -0
- package/dist/httpAdapter/fetch/httpFetch.type.d.ts +30 -0
- package/dist/httpAdapter/fetch/httpFetch.type.js +7 -0
- package/dist/httpAdapter/fetch/index.d.ts +11 -0
- package/dist/httpAdapter/fetch/index.js +11 -0
- package/dist/httpAdapter/http.adapter.d.ts +20 -0
- package/dist/httpAdapter/http.adapter.js +23 -4
- package/dist/httpAdapter/http.adapters.d.ts +71 -0
- package/dist/httpAdapter/httpAdapter.errorResponse.d.ts +35 -0
- package/dist/httpAdapter/httpAdapter.errorResponse.js +120 -0
- package/dist/httpAdapter/httpFetch.adapter.d.ts +11 -0
- package/dist/httpAdapter/httpFetch.adapter.js +10 -0
- package/dist/httpAdapter/node/httpNode.adapter.d.ts +29 -0
- package/dist/httpAdapter/node/httpNode.adapter.js +161 -23
- package/dist/httpAdapter/node/httpNode.request.d.ts +33 -0
- package/dist/httpAdapter/node/httpNode.request.js +183 -0
- package/dist/httpAdapter/node/httpNode.response.d.ts +27 -0
- package/dist/httpAdapter/node/httpNode.response.js +93 -0
- package/dist/httpAdapter/node/httpNode.server.d.ts +18 -1
- package/dist/httpAdapter/node/httpNode.server.js +42 -3
- package/dist/httpAdapter/node/httpNode.type.d.ts +84 -0
- package/dist/httpAdapter/node/httpNode.type.js +44 -0
- package/dist/httpAgent/http.agent.d.ts +63 -0
- package/dist/httpAgent/http.agent.js +297 -0
- package/dist/httpBody/http.body.d.ts +31 -2
- package/dist/httpBody/http.body.js +77 -17
- package/dist/httpBody/httpBody.formData.d.ts +15 -0
- package/dist/httpBody/httpBody.formData.js +75 -163
- package/dist/httpBody/httpBody.parser.d.ts +12 -0
- package/dist/httpBody/httpBody.parser.js +44 -14
- package/dist/httpCacheControl/core/httpCacheControl.parse.d.ts +27 -0
- package/dist/httpCacheControl/core/httpCacheControl.parse.js +229 -0
- package/dist/httpCacheControl/core/httpCacheControl.type.d.ts +54 -0
- package/dist/httpCacheControl/core/httpCacheControl.type.js +8 -0
- package/dist/httpCacheControl/core/httpCacheControl.validation.d.ts +13 -0
- package/dist/httpCacheControl/core/httpCacheControl.validation.js +87 -0
- package/dist/httpCacheControl/core/index.d.ts +9 -0
- package/dist/httpCacheControl/core/index.js +9 -0
- package/dist/httpCacheControl/httpCacheControl.core.d.ts +13 -0
- package/dist/httpCacheControl/httpCacheControl.core.js +13 -0
- package/dist/httpCacheControl/httpCacheControl.factory.d.ts +35 -0
- package/dist/httpCacheControl/httpCacheControl.factory.js +53 -0
- package/dist/httpCacheControl/httpCacheControl.freshness.d.ts +36 -0
- package/dist/httpCacheControl/httpCacheControl.freshness.js +124 -0
- package/dist/httpCacheControl/httpCacheControl.requestHelper.d.ts +39 -0
- package/dist/httpCacheControl/httpCacheControl.requestHelper.js +56 -0
- package/dist/httpCacheControl/httpCacheControl.responseHelper.d.ts +40 -0
- package/dist/httpCacheControl/httpCacheControl.responseHelper.js +87 -0
- package/dist/httpClient/httpClient.abort.d.ts +7 -0
- package/dist/httpClient/httpClient.abort.js +34 -0
- package/dist/httpClient/httpClient.body.d.ts +8 -0
- package/dist/httpClient/httpClient.body.js +53 -0
- package/dist/httpClient/httpClient.client.d.ts +24 -0
- package/dist/httpClient/httpClient.client.js +84 -0
- package/dist/httpClient/httpClient.context.d.ts +8 -0
- package/dist/httpClient/httpClient.context.js +42 -0
- package/dist/httpClient/httpClient.errorNormalizer.d.ts +8 -0
- package/dist/httpClient/httpClient.errorNormalizer.js +32 -0
- package/dist/httpClient/httpClient.executor.d.ts +14 -0
- package/dist/httpClient/httpClient.executor.js +179 -0
- package/dist/httpClient/httpClient.factory.d.ts +10 -0
- package/dist/httpClient/httpClient.factory.js +13 -0
- package/dist/httpClient/httpClient.headers.d.ts +7 -0
- package/dist/httpClient/httpClient.headers.js +16 -0
- package/dist/httpClient/httpClient.helpers.d.ts +18 -0
- package/dist/httpClient/httpClient.helpers.js +59 -0
- package/dist/httpClient/httpClient.interceptors.d.ts +10 -0
- package/dist/httpClient/httpClient.interceptors.js +25 -0
- package/dist/httpClient/httpClient.methods.d.ts +15 -0
- package/dist/httpClient/httpClient.methods.js +27 -0
- package/dist/httpClient/httpClient.response.d.ts +8 -0
- package/dist/httpClient/httpClient.response.js +78 -0
- package/dist/httpClient/httpClient.retry.d.ts +1 -1
- package/dist/httpClient/httpClient.retry.js +36 -7
- package/dist/httpClient/httpClient.type.d.ts +88 -0
- package/dist/httpClient/httpClient.type.js +7 -0
- package/dist/httpClient/httpClient.typeGuards.d.ts +14 -0
- package/dist/httpClient/httpClient.typeGuards.js +23 -0
- package/dist/httpClient/httpClient.url.d.ts +9 -0
- package/dist/httpClient/httpClient.url.js +40 -0
- package/dist/httpCompression/http.compression.d.ts +71 -0
- package/dist/httpCompression/http.compression.js +334 -0
- package/dist/httpConditional/httpConditional.core.d.ts +141 -0
- package/dist/httpConditional/httpConditional.core.js +552 -0
- package/dist/httpConstants/http.constants.d.ts +38 -3
- package/dist/httpConstants/http.constants.js +49 -7
- package/dist/httpContentDisposition/httpContentDisposition.core.d.ts +87 -0
- package/dist/httpContentDisposition/httpContentDisposition.core.js +447 -0
- package/dist/httpContentType/httpContentType.boundary.d.ts +8 -0
- package/dist/httpContentType/httpContentType.boundary.js +26 -0
- package/dist/httpContentType/httpContentType.category.d.ts +9 -0
- package/dist/httpContentType/httpContentType.category.js +23 -0
- package/dist/httpContentType/httpContentType.categoryBinary.d.ts +9 -0
- package/dist/httpContentType/httpContentType.categoryBinary.js +30 -0
- package/dist/httpContentType/httpContentType.charset.d.ts +8 -0
- package/dist/httpContentType/httpContentType.charset.js +36 -0
- package/dist/httpContentType/httpContentType.constructors.d.ts +10 -0
- package/dist/httpContentType/httpContentType.constructors.js +37 -0
- package/dist/httpContentType/httpContentType.formatter.d.ts +7 -0
- package/dist/httpContentType/httpContentType.formatter.js +44 -0
- package/dist/httpContentType/httpContentType.matcher.d.ts +6 -0
- package/dist/httpContentType/httpContentType.matcher.js +53 -0
- package/dist/httpContentType/httpContentType.mediaTypes.d.ts +21 -0
- package/dist/httpContentType/httpContentType.mediaTypes.js +21 -0
- package/dist/httpContentType/httpContentType.normalizer.d.ts +7 -0
- package/dist/httpContentType/httpContentType.normalizer.js +29 -0
- package/dist/httpContentType/httpContentType.parameter.d.ts +7 -0
- package/dist/httpContentType/httpContentType.parameter.js +20 -0
- package/dist/httpContentType/httpContentType.parser.d.ts +6 -0
- package/dist/httpContentType/httpContentType.parser.js +44 -0
- package/dist/httpContentType/httpContentType.parserHelpers.d.ts +21 -0
- package/dist/httpContentType/httpContentType.parserHelpers.js +91 -0
- package/dist/httpContentType/httpContentType.type.d.ts +17 -0
- package/dist/httpContentType/httpContentType.type.js +5 -0
- package/dist/httpContext/http.context.js +31 -11
- package/dist/httpCookies/http.cookies.d.ts +92 -0
- package/dist/httpCookies/http.cookies.js +417 -0
- package/dist/httpCors/http.cors.d.ts +152 -0
- package/dist/httpCors/http.cors.js +480 -0
- package/dist/httpCsp/checks/httpCsp.checks.d.ts +9 -0
- package/dist/httpCsp/checks/httpCsp.checks.js +30 -0
- package/dist/httpCsp/checks/index.d.ts +5 -0
- package/dist/httpCsp/checks/index.js +5 -0
- package/dist/httpCsp/formatting/httpCsp.formatting.d.ts +7 -0
- package/dist/httpCsp/formatting/httpCsp.formatting.js +70 -0
- package/dist/httpCsp/formatting/index.d.ts +5 -0
- package/dist/httpCsp/formatting/index.js +5 -0
- package/dist/httpCsp/internal/httpCsp.internal.d.ts +19 -0
- package/dist/httpCsp/internal/httpCsp.internal.js +81 -0
- package/dist/httpCsp/internal/index.d.ts +5 -0
- package/dist/httpCsp/internal/index.js +5 -0
- package/dist/httpCsp/nonce/httpCsp.nonce.d.ts +18 -0
- package/dist/httpCsp/nonce/httpCsp.nonce.js +82 -0
- package/dist/httpCsp/nonce/index.d.ts +5 -0
- package/dist/httpCsp/nonce/index.js +5 -0
- package/dist/httpCsp/parsing/httpCsp.parsing.d.ts +9 -0
- package/dist/httpCsp/parsing/httpCsp.parsing.js +61 -0
- package/dist/httpCsp/parsing/index.d.ts +5 -0
- package/dist/httpCsp/parsing/index.js +5 -0
- package/dist/httpCsp/policies/httpCsp.policies.d.ts +17 -0
- package/dist/httpCsp/policies/httpCsp.policies.js +52 -0
- package/dist/httpCsp/policies/index.d.ts +5 -0
- package/dist/httpCsp/policies/index.js +5 -0
- package/dist/httpCsp/reportOnly/httpCsp.reportOnly.d.ts +7 -0
- package/dist/httpCsp/reportOnly/httpCsp.reportOnly.js +17 -0
- package/dist/httpCsp/reportOnly/index.d.ts +5 -0
- package/dist/httpCsp/reportOnly/index.js +5 -0
- package/dist/httpCsp/sources/httpCsp.sources.d.ts +10 -0
- package/dist/httpCsp/sources/httpCsp.sources.js +22 -0
- package/dist/httpCsp/sources/index.d.ts +5 -0
- package/dist/httpCsp/sources/index.js +5 -0
- package/dist/httpCsp/types/httpCsp.constant.d.ts +9 -0
- package/dist/httpCsp/types/httpCsp.constant.js +39 -0
- package/dist/httpCsp/types/httpCsp.type.d.ts +43 -0
- package/dist/httpCsp/types/httpCsp.type.js +5 -0
- package/dist/httpCsp/types/index.d.ts +7 -0
- package/dist/httpCsp/types/index.js +5 -0
- package/dist/httpCsp/validation/httpCsp.validate.d.ts +6 -0
- package/dist/httpCsp/validation/httpCsp.validate.js +23 -0
- package/dist/httpCsp/validation/httpCsp.validation.d.ts +6 -0
- package/dist/httpCsp/validation/httpCsp.validation.js +14 -0
- package/dist/httpCsp/validation/index.d.ts +6 -0
- package/dist/httpCsp/validation/index.js +6 -0
- package/dist/httpErrors/factories/httpError.clientError.d.ts +40 -0
- package/dist/httpErrors/factories/httpError.clientError.js +79 -0
- package/dist/httpErrors/factories/httpError.serverError.d.ts +28 -0
- package/dist/httpErrors/factories/httpError.serverError.js +52 -0
- package/dist/httpErrors/httpError.base.d.ts +0 -2
- package/dist/httpErrors/httpError.base.js +4 -2
- package/dist/httpErrors/httpError.helper.d.ts +19 -0
- package/dist/httpErrors/httpError.helper.js +20 -0
- package/dist/httpErrors/httpError.invalidJson.d.ts +20 -0
- package/dist/httpErrors/httpError.invalidJson.js +26 -0
- package/dist/httpErrors/httpError.typeGuard.d.ts +23 -0
- package/dist/httpErrors/httpError.typeGuard.js +35 -0
- package/dist/httpErrors/httpError.util.d.ts +22 -0
- package/dist/httpErrors/httpError.util.js +36 -0
- package/dist/httpHeaders/authorization/httpHeaders.authorization.d.ts +34 -0
- package/dist/httpHeaders/authorization/httpHeaders.authorization.js +53 -0
- package/dist/httpHeaders/authorization/index.d.ts +0 -1
- package/dist/httpHeaders/authorization/index.js +0 -1
- package/dist/httpHeaders/basic/httpHeaders.basic.d.ts +23 -0
- package/dist/httpHeaders/basic/httpHeaders.basic.js +29 -0
- package/dist/httpHeaders/basic/httpHeaders.basicMatch.d.ts +26 -0
- package/dist/httpHeaders/basic/httpHeaders.basicMatch.js +45 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversion.d.ts +31 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversion.js +103 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversionObject.d.ts +21 -0
- package/dist/httpHeaders/conversion/httpHeaders.conversionObject.js +30 -0
- package/dist/httpHeaders/etag/httpHeaders.etag.d.ts +27 -0
- package/dist/httpHeaders/etag/httpHeaders.etag.js +44 -0
- package/dist/httpHeaders/etag/httpHeaders.etagMatch.d.ts +26 -0
- package/dist/httpHeaders/etag/httpHeaders.etagMatch.js +53 -0
- package/dist/httpHeaders/forwarded/httpHeaders.forwarded.d.ts +35 -0
- package/dist/httpHeaders/forwarded/httpHeaders.forwarded.js +39 -0
- package/dist/httpHeaders/forwarded/index.d.ts +0 -1
- package/dist/httpHeaders/forwarded/index.js +0 -1
- package/dist/httpHeaders/http.headers.d.ts +100 -0
- package/dist/httpHeaders/http.headers.js +324 -0
- package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.d.ts +13 -0
- package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.js +15 -0
- package/dist/httpHeaders/internal/index.d.ts +0 -5
- package/dist/httpHeaders/internal/index.js +0 -5
- package/dist/httpHeaders/list/httpHeaders.list.d.ts +32 -0
- package/dist/httpHeaders/list/httpHeaders.list.js +82 -0
- package/dist/httpHeaders/list/httpHeaders.listMutation.d.ts +25 -0
- package/dist/httpHeaders/list/httpHeaders.listMutation.js +40 -0
- package/dist/httpHeaders/security/httpHeaders.security.d.ts +87 -0
- package/dist/httpHeaders/security/httpHeaders.security.js +135 -0
- package/dist/httpHeaders/security/index.d.ts +0 -1
- package/dist/httpHeaders/security/index.js +0 -1
- package/dist/httpHeaders/types/httpHeaders.type.d.ts +19 -0
- package/dist/httpHeaders/types/httpHeaders.type.js +7 -0
- package/dist/httpHsts/http.hsts.d.ts +45 -0
- package/dist/httpHsts/http.hsts.js +224 -0
- package/dist/httpInterceptors/builtin/httpInterceptor.request.d.ts +70 -0
- package/dist/httpInterceptors/builtin/httpInterceptor.response.d.ts +33 -0
- package/dist/httpInterceptors/builtin/httpInterceptor.response.js +43 -0
- package/dist/httpInterceptors/builtin/index.d.ts +8 -0
- package/dist/httpInterceptors/builtin/index.js +8 -0
- package/dist/httpInterceptors/http.interceptors.d.ts +11 -0
- package/dist/httpInterceptors/http.interceptors.js +11 -0
- package/dist/httpInterceptors/httpInterceptor.helper.d.ts +27 -0
- package/dist/httpInterceptors/httpInterceptor.helper.js +53 -0
- package/dist/httpInterceptors/httpInterceptor.type.d.ts +48 -0
- package/dist/httpInterceptors/httpInterceptor.type.js +7 -0
- package/dist/httpInterceptors/manager/httpInterceptor.lookup.d.ts +11 -0
- package/dist/httpInterceptors/manager/httpInterceptor.lookup.js +62 -0
- package/dist/httpInterceptors/manager/httpInterceptor.manager.d.ts +24 -0
- package/dist/httpInterceptors/manager/httpInterceptor.manager.js +58 -0
- package/dist/httpInterceptors/manager/httpInterceptor.registration.d.ts +28 -0
- package/dist/httpInterceptors/manager/httpInterceptor.registration.js +119 -0
- package/dist/httpInterceptors/manager/httpInterceptor.snapshot.d.ts +12 -0
- package/dist/httpInterceptors/manager/httpInterceptor.snapshot.js +17 -0
- package/dist/httpInterceptors/manager/index.d.ts +10 -0
- package/dist/httpInterceptors/manager/index.js +10 -0
- package/dist/httpKeepAlive/httpKeepAlive.core.d.ts +63 -0
- package/dist/httpKeepAlive/httpKeepAlive.core.js +357 -0
- package/dist/httpMethods/http.methods.d.ts +72 -4
- package/dist/httpMethods/http.methods.js +97 -9
- package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.d.ts +10 -0
- package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.js +34 -0
- package/dist/httpMiddleware/builtin/compose/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/compose/index.js +7 -0
- package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.d.ts +14 -0
- package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.js +70 -0
- package/dist/httpMiddleware/builtin/conditional/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/conditional/index.js +7 -0
- package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.d.ts +28 -0
- package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.js +120 -0
- package/dist/httpMiddleware/builtin/cors/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/cors/index.js +7 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.d.ts +16 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.d.ts +16 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.js +23 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.response.d.ts +55 -0
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.response.js +92 -0
- package/dist/httpMiddleware/builtin/helpers/index.d.ts +9 -0
- package/dist/httpMiddleware/builtin/helpers/index.js +9 -0
- package/dist/httpMiddleware/builtin/image/httpMiddleware.image.d.ts +26 -0
- package/dist/httpMiddleware/builtin/image/httpMiddleware.image.js +90 -0
- package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.d.ts +16 -0
- package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.js +42 -0
- package/dist/httpMiddleware/builtin/logging/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/logging/index.js +7 -0
- package/dist/httpMiddleware/builtin/security/httpMiddleware.security.d.ts +21 -0
- package/dist/httpMiddleware/builtin/security/httpMiddleware.security.js +50 -0
- package/dist/httpMiddleware/builtin/security/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/security/index.js +7 -0
- package/dist/httpMiddleware/builtin/static/httpMiddleware.static.d.ts +22 -0
- package/dist/httpMiddleware/builtin/static/httpMiddleware.static.js +210 -0
- package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.d.ts +8 -0
- package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.js +18 -0
- package/dist/httpMiddleware/builtin/timing/index.d.ts +7 -0
- package/dist/httpMiddleware/builtin/timing/index.js +7 -0
- package/dist/httpMiddleware/builtin/video/httpMiddleware.video.d.ts +26 -0
- package/dist/httpMiddleware/builtin/video/httpMiddleware.video.js +83 -0
- package/dist/httpMiddleware/httpMiddleware.state.d.ts +16 -0
- package/dist/httpMiddleware/httpMiddleware.state.js +30 -0
- package/dist/httpMiddleware/httpMiddleware.type.d.ts +54 -0
- package/dist/httpMiddleware/httpMiddleware.type.js +7 -0
- package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.d.ts +35 -0
- package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.js +87 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.execution.d.ts +18 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.execution.js +97 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.helper.d.ts +36 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.helper.js +114 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.registration.d.ts +27 -0
- package/dist/httpMiddleware/pipeline/httpPipeline.registration.js +100 -0
- package/dist/httpMime/http.mime.d.ts +144 -0
- package/dist/httpMime/http.mime.js +481 -0
- package/dist/httpMultipart/http.multipart.d.ts +55 -0
- package/dist/httpMultipart/http.multipart.js +295 -99
- package/dist/httpNegotiation/httpNegotiation.core.d.ts +119 -0
- package/dist/httpNegotiation/httpNegotiation.core.js +519 -0
- package/dist/httpProtocol/http.protocol.d.ts +80 -0
- package/dist/httpProtocol/http.protocol.js +482 -0
- package/dist/httpProxy/http.proxy.d.ts +179 -0
- package/dist/httpProxy/http.proxy.js +540 -0
- package/dist/httpQuery/http.query.d.ts +110 -0
- package/dist/httpQuery/http.query.js +484 -0
- package/dist/httpQuery/index.d.ts +0 -1
- package/dist/httpQuery/index.js +0 -1
- package/dist/httpRange/http.range.d.ts +53 -0
- package/dist/httpRange/http.range.js +341 -0
- package/dist/httpRedirect/http.redirect.d.ts +140 -0
- package/dist/httpRedirect/http.redirect.js +442 -0
- package/dist/httpRequest/http.request.d.ts +71 -0
- package/dist/httpRequest/http.request.js +313 -0
- package/dist/httpRequest/httpRequest.context.constant.d.ts +8 -0
- package/dist/httpRequest/httpRequest.context.d.ts +122 -0
- package/dist/httpRequest/httpRequest.context.id.d.ts +8 -0
- package/dist/httpRequest/httpRequest.context.id.js +16 -0
- package/dist/httpRequest/httpRequest.context.type.d.ts +47 -0
- package/dist/httpRequest/httpRequest.context.type.js +8 -0
- package/dist/httpResponse/core/httpResponse.statusText.d.ts +10 -0
- package/dist/httpResponse/core/httpResponse.statusText.js +76 -0
- package/dist/httpResponse/core/httpResponse.type.d.ts +44 -0
- package/dist/httpResponse/core/httpResponse.type.js +8 -0
- package/dist/httpResponse/core/index.d.ts +8 -0
- package/dist/httpResponse/core/index.js +8 -0
- package/dist/httpResponse/http.response.d.ts +34 -0
- package/dist/httpResponse/http.response.js +204 -0
- package/dist/httpResponse/httpResponse.context.d.ts +70 -0
- package/dist/httpResponse/httpResponse.context.js +207 -0
- package/dist/httpResponse/httpResponse.fromWeb.d.ts +57 -0
- package/dist/httpResponse/httpResponse.fromWeb.js +114 -0
- package/dist/httpResponse/httpResponse.helper.d.ts +73 -0
- package/dist/httpResponse/httpResponse.helper.js +174 -0
- package/dist/httpResponse/httpResponse.writer.d.ts +8 -0
- package/dist/httpResponse/httpResponse.writer.js +43 -6
- package/dist/httpResponse/index.d.ts +1 -0
- package/dist/httpResponse/index.js +1 -0
- package/dist/httpRouter/core/error/httpRouter.error.d.ts +7 -0
- package/dist/httpRouter/core/error/httpRouter.error.js +7 -0
- package/dist/httpRouter/core/error/index.d.ts +7 -0
- package/dist/httpRouter/core/error/index.js +7 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.base.d.ts +44 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.base.js +186 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.d.ts +36 -0
- package/dist/httpRouter/core/factory/httpRoute.factory.js +67 -0
- package/dist/httpRouter/core/factory/index.d.ts +8 -0
- package/dist/httpRouter/core/factory/index.js +8 -0
- package/dist/httpRouter/core/group/httpRouterGroup.core.d.ts +27 -0
- package/dist/httpRouter/core/group/httpRouterGroup.core.js +68 -0
- package/dist/httpRouter/core/group/index.d.ts +7 -0
- package/dist/httpRouter/core/group/index.js +7 -0
- package/dist/httpRouter/core/index.d.ts +13 -0
- package/dist/httpRouter/core/index.js +13 -0
- package/dist/httpRouter/core/register/httpRouter.register.d.ts +45 -0
- package/dist/httpRouter/core/register/httpRouter.register.js +309 -0
- package/dist/httpRouter/core/register/index.d.ts +7 -0
- package/dist/httpRouter/core/register/index.js +7 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.helper.d.ts +34 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.helper.js +69 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.type.d.ts +33 -0
- package/dist/httpRouter/core/registry/core/httpRegistry.type.js +7 -0
- package/dist/httpRouter/core/registry/core/index.d.ts +8 -0
- package/dist/httpRouter/core/registry/core/index.js +8 -0
- package/dist/httpRouter/core/registry/httpRegistry.core.d.ts +23 -0
- package/dist/httpRouter/core/registry/httpRegistry.core.js +97 -0
- package/dist/httpRouter/core/registry/httpRegistry.factory.d.ts +25 -0
- package/dist/httpRouter/core/registry/httpRegistry.factory.js +32 -0
- package/dist/httpRouter/core/registry/httpRegistry.group.d.ts +23 -0
- package/dist/httpRouter/core/registry/httpRegistry.group.js +72 -0
- package/dist/httpRouter/core/registry/index.d.ts +16 -0
- package/dist/httpRouter/core/registry/index.js +15 -0
- package/dist/httpRouter/core/types/httpRouter.type.d.ts +109 -0
- package/dist/httpRouter/core/types/httpRouter.type.js +10 -0
- package/dist/httpRouter/core/types/index.d.ts +7 -0
- package/dist/httpRouter/core/types/index.js +7 -0
- package/dist/httpRouter/core/util/httpRoute.util.d.ts +26 -0
- package/dist/httpRouter/core/util/httpRoute.util.js +113 -0
- package/dist/httpRouter/core/util/index.d.ts +7 -0
- package/dist/httpRouter/core/util/index.js +7 -0
- package/dist/httpRouter/dispatch/httpRoute.dispatcher.d.ts +66 -0
- package/dist/httpRouter/dispatch/httpRoute.dispatcher.js +317 -0
- package/dist/httpRouter/dispatch/httpRoute.stack.d.ts +90 -0
- package/dist/httpRouter/dispatch/httpRoute.stack.js +301 -0
- package/dist/httpRouter/dispatch/index.d.ts +6 -0
- package/dist/httpRouter/dispatch/index.js +6 -0
- package/dist/httpRouter/httpRouter.context.d.ts +67 -0
- package/dist/httpRouter/httpRouter.context.js +239 -0
- package/dist/httpRouter/httpRouter.state.d.ts +18 -0
- package/dist/httpRouter/httpRouter.state.js +31 -0
- package/dist/httpRouter/index.d.ts +13 -0
- package/dist/httpRouter/index.js +13 -0
- package/dist/httpRouter/matching/httpRoute.matcher.core.d.ts +10 -0
- package/dist/httpRouter/matching/httpRoute.matcher.core.js +72 -0
- package/dist/httpRouter/matching/httpRoute.matcher.d.ts +63 -0
- package/dist/httpRouter/matching/httpRoute.matcher.js +274 -0
- package/dist/httpRouter/matching/index.d.ts +7 -0
- package/dist/httpRouter/matching/index.js +6 -0
- package/dist/httpRouter/pattern/core/httpPattern.compilation.d.ts +11 -0
- package/dist/httpRouter/pattern/core/httpPattern.compilation.js +44 -0
- package/dist/httpRouter/pattern/core/httpPattern.matching.d.ts +23 -0
- package/dist/httpRouter/pattern/core/httpPattern.matching.js +93 -0
- package/dist/httpRouter/pattern/core/httpPattern.regexBuilding.d.ts +11 -0
- package/dist/httpRouter/pattern/core/httpPattern.regexBuilding.js +49 -0
- package/dist/httpRouter/pattern/core/httpPattern.segmentParsing.d.ts +11 -0
- package/dist/httpRouter/pattern/core/httpPattern.segmentParsing.js +117 -0
- package/dist/httpRouter/pattern/core/httpPattern.type.d.ts +40 -0
- package/dist/httpRouter/pattern/core/httpPattern.type.js +8 -0
- package/dist/httpRouter/pattern/core/index.d.ts +11 -0
- package/dist/httpRouter/pattern/core/index.js +11 -0
- package/dist/httpRouter/pattern/httpPattern.factory.d.ts +19 -0
- package/dist/httpRouter/pattern/httpPattern.factory.js +25 -0
- package/dist/httpRouter/pattern/httpRoute.pattern.parse.d.ts +38 -0
- package/dist/httpRouter/pattern/httpRoute.pattern.parse.js +134 -0
- package/dist/httpRouter/pattern/index.d.ts +19 -0
- package/dist/httpRouter/pattern/index.js +17 -0
- package/dist/httpRouter/result/httpRoute.result.builder.d.ts +7 -0
- package/dist/httpRouter/result/httpRoute.result.builder.js +70 -0
- package/dist/httpRouter/result/httpRoute.result.class.d.ts +21 -0
- package/dist/httpRouter/result/httpRoute.result.class.js +33 -0
- package/dist/httpRouter/result/httpRoute.result.d.ts +17 -0
- package/dist/httpRouter/result/httpRoute.result.error.4xx.d.ts +14 -0
- package/dist/httpRouter/result/httpRoute.result.error.4xx.js +76 -0
- package/dist/httpRouter/result/httpRoute.result.error.5xx.d.ts +9 -0
- package/dist/httpRouter/result/httpRoute.result.error.5xx.js +32 -0
- package/dist/httpRouter/result/httpRoute.result.factory.d.ts +13 -0
- package/dist/httpRouter/result/httpRoute.result.factory.js +54 -0
- package/dist/httpRouter/result/httpRoute.result.guard.d.ts +9 -0
- package/dist/httpRouter/result/httpRoute.result.guard.js +33 -0
- package/dist/httpRouter/result/httpRoute.result.js +31 -0
- package/dist/httpRouter/result/httpRoute.result.normalize.d.ts +8 -0
- package/dist/httpRouter/result/httpRoute.result.normalize.js +73 -0
- package/dist/httpRouter/result/httpRoute.result.output.d.ts +7 -0
- package/dist/httpRouter/result/httpRoute.result.output.js +34 -0
- package/dist/httpRouter/result/httpRoute.result.serialize.d.ts +8 -0
- package/dist/httpRouter/result/httpRoute.result.serialize.js +61 -0
- package/dist/httpRouter/result/httpRoute.result.type.d.ts +41 -0
- package/dist/httpRouter/result/httpRoute.result.type.js +9 -0
- package/dist/httpRouter/result/httpRoute.result.util.d.ts +8 -0
- package/dist/httpRouter/result/httpRoute.result.util.js +52 -0
- package/dist/httpRouter/result/index.d.ts +6 -0
- package/dist/httpRouter/result/index.js +5 -0
- package/dist/httpRouter/tree/core/httpTree.helper.d.ts +31 -0
- package/dist/httpRouter/tree/core/httpTree.helper.js +80 -0
- package/dist/httpRouter/tree/core/httpTree.nodeCreation.d.ts +11 -0
- package/dist/httpRouter/tree/core/httpTree.nodeCreation.js +54 -0
- package/dist/httpRouter/tree/core/httpTree.traversal.d.ts +26 -0
- package/dist/httpRouter/tree/core/httpTree.traversal.js +73 -0
- package/dist/httpRouter/tree/core/httpTree.type.d.ts +52 -0
- package/dist/httpRouter/tree/core/httpTree.type.js +7 -0
- package/dist/httpRouter/tree/core/index.d.ts +10 -0
- package/dist/httpRouter/tree/core/index.js +10 -0
- package/dist/httpRouter/tree/httpTree.core.d.ts +21 -0
- package/dist/httpRouter/tree/httpTree.core.js +96 -0
- package/dist/httpRouter/tree/httpTree.factory.d.ts +12 -0
- package/dist/httpRouter/tree/httpTree.factory.js +13 -0
- package/dist/httpRouter/tree/index.d.ts +7 -0
- package/dist/httpRouter/tree/index.js +6 -0
- package/dist/httpSecurity/httpSecurity.config.d.ts +17 -11
- package/dist/httpSecurity/httpSecurity.config.js +9 -6
- package/dist/httpSecurity/httpSecurity.guard.d.ts +28 -0
- package/dist/httpSecurity/httpSecurity.guard.js +40 -0
- package/dist/httpSecurity/index.d.ts +1 -1
- package/dist/httpSecurity/index.js +1 -1
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.d.ts +56 -0
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.js +20 -0
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.d.ts +44 -0
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.js +111 -0
- package/dist/httpSecurityHeaders/core/index.d.ts +8 -0
- package/dist/httpSecurityHeaders/core/index.js +8 -0
- package/dist/httpSecurityHeaders/httpSecurity.headers.d.ts +12 -0
- package/dist/httpSecurityHeaders/httpSecurity.headers.js +12 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.factory.d.ts +11 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.factory.js +71 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.individual.d.ts +65 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.individual.js +123 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.d.ts +15 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.js +59 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.d.ts +65 -0
- package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.js +120 -0
- package/dist/httpServer/core/httpServer.core.d.ts +15 -3
- package/dist/httpServer/core/httpServer.core.js +80 -25
- package/dist/httpServer/types/httpServer.type.d.ts +17 -2
- package/dist/httpStatus/httpStatus.categoryPredicate.d.ts +12 -0
- package/dist/httpStatus/httpStatus.categoryPredicate.js +24 -0
- package/dist/httpStatus/httpStatus.clientErrorConstant.d.ts +43 -0
- package/dist/httpStatus/httpStatus.clientErrorConstant.js +43 -0
- package/dist/httpStatus/httpStatus.clientErrorTextConstant.d.ts +35 -0
- package/dist/httpStatus/httpStatus.clientErrorTextConstant.js +35 -0
- package/dist/httpStatus/httpStatus.collection.d.ts +11 -0
- package/dist/httpStatus/httpStatus.collection.js +22 -0
- package/dist/httpStatus/httpStatus.commonPredicate.d.ts +8 -0
- package/dist/httpStatus/httpStatus.commonPredicate.js +8 -0
- package/dist/httpStatus/httpStatus.constant.d.ts +8 -0
- package/dist/httpStatus/httpStatus.constant.js +8 -0
- package/dist/httpStatus/httpStatus.errorPredicate.d.ts +21 -0
- package/dist/httpStatus/httpStatus.errorPredicate.js +52 -0
- package/dist/httpStatus/httpStatus.info.d.ts +24 -0
- package/dist/httpStatus/httpStatus.info.js +31 -0
- package/dist/httpStatus/httpStatus.informationalSuccessConstant.d.ts +24 -0
- package/dist/httpStatus/httpStatus.informationalSuccessConstant.js +24 -0
- package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.d.ts +24 -0
- package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.js +24 -0
- package/dist/httpStatus/httpStatus.lookup.d.ts +9 -0
- package/dist/httpStatus/httpStatus.lookup.js +28 -0
- package/dist/httpStatus/httpStatus.name.d.ts +8 -0
- package/dist/httpStatus/httpStatus.name.js +16 -0
- package/dist/httpStatus/httpStatus.predicate.d.ts +9 -0
- package/dist/httpStatus/httpStatus.predicate.js +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorConstant.d.ts +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorConstant.js +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorTextConstant.d.ts +9 -0
- package/dist/httpStatus/httpStatus.redirectErrorTextConstant.js +9 -0
- package/dist/httpStatus/httpStatus.redirectPredicate.d.ts +10 -0
- package/dist/httpStatus/httpStatus.redirectPredicate.js +25 -0
- package/dist/httpStatus/httpStatus.redirectionConstant.d.ts +14 -0
- package/dist/httpStatus/httpStatus.redirectionConstant.js +14 -0
- package/dist/httpStatus/httpStatus.redirectionTextConstant.d.ts +14 -0
- package/dist/httpStatus/httpStatus.redirectionTextConstant.js +14 -0
- package/dist/httpStatus/httpStatus.semantics.d.ts +20 -0
- package/dist/httpStatus/httpStatus.semantics.js +49 -0
- package/dist/httpStatus/httpStatus.serverErrorConstant.d.ts +17 -0
- package/dist/httpStatus/httpStatus.serverErrorConstant.js +17 -0
- package/dist/httpStatus/httpStatus.serverErrorTextConstant.d.ts +17 -0
- package/dist/httpStatus/httpStatus.serverErrorTextConstant.js +17 -0
- package/dist/httpStatus/httpStatus.statusConstant.d.ts +74 -0
- package/dist/httpStatus/httpStatus.statusConstant.js +17 -0
- package/dist/httpStatus/httpStatus.statusTextConstant.d.ts +72 -0
- package/dist/httpStatus/httpStatus.statusTextConstant.js +17 -0
- package/dist/httpStatus/httpStatus.type.d.ts +15 -0
- package/dist/httpStatus/httpStatus.type.js +9 -0
- package/dist/httpStatus/httpStatus.validator.d.ts +8 -0
- package/dist/httpStatus/httpStatus.validator.js +17 -0
- package/dist/httpStatus/httpStatusCodes.constant.d.ts +239 -0
- package/dist/httpStatus/httpStatusCodes.constant.js +232 -0
- package/dist/httpStream/httpStream.backpressure.d.ts +9 -0
- package/dist/httpStream/httpStream.backpressure.js +44 -9
- package/dist/httpStream/httpStream.consume.d.ts +8 -0
- package/dist/httpStream/httpStream.consume.js +31 -3
- package/dist/httpStream/httpStream.error.d.ts +11 -0
- package/dist/httpStream/httpStream.error.js +17 -1
- package/dist/httpStream/httpStream.eventHelper.d.ts +0 -2
- package/dist/httpStream/httpStream.eventHelper.js +0 -24
- package/dist/httpStream/httpStream.helper.d.ts +13 -0
- package/dist/httpStream/httpStream.helper.js +18 -2
- package/dist/httpStream/httpStream.pipe.js +15 -4
- package/dist/httpStream/httpStream.progress.js +42 -8
- package/dist/httpStream/httpStream.transform.d.ts +3 -3
- package/dist/httpStream/httpStream.types.d.ts +20 -1
- package/dist/httpTrustProxy/httpTrustProxy.compilation.d.ts +32 -0
- package/dist/httpTrustProxy/httpTrustProxy.compilation.js +119 -0
- package/dist/httpTrustProxy/httpTrustProxy.core.d.ts +14 -0
- package/dist/httpTrustProxy/httpTrustProxy.core.js +14 -0
- package/dist/httpTrustProxy/httpTrustProxy.helper.d.ts +73 -0
- package/dist/httpTrustProxy/httpTrustProxy.helper.js +226 -0
- package/dist/httpTrustProxy/httpTrustProxy.ip.d.ts +49 -0
- package/dist/httpTrustProxy/httpTrustProxy.ip.js +238 -0
- package/dist/httpTrustProxy/httpTrustProxy.parsing.d.ts +32 -0
- package/dist/httpTrustProxy/httpTrustProxy.parsing.js +133 -0
- package/dist/httpTrustProxy/httpTrustProxy.type.d.ts +41 -0
- package/dist/httpTrustProxy/httpTrustProxy.type.js +12 -0
- package/dist/httpUrl/http.url.d.ts +143 -0
- package/dist/httpUrl/http.url.js +712 -0
- package/dist/httpValidation/httpValidationAssertion.d.ts +9 -0
- package/dist/httpValidation/httpValidationAssertion.js +26 -0
- package/dist/httpValidation/httpValidationAuthority.d.ts +8 -0
- package/dist/httpValidation/httpValidationAuthority.js +43 -0
- package/dist/httpValidation/httpValidationAuthorization.d.ts +7 -0
- package/dist/httpValidation/httpValidationAuthorization.js +22 -0
- package/dist/httpValidation/httpValidationCacheControl.d.ts +7 -0
- package/dist/httpValidation/httpValidationCacheControl.js +26 -0
- package/dist/httpValidation/httpValidationContentLength.d.ts +9 -0
- package/dist/httpValidation/httpValidationContentLength.js +25 -0
- package/dist/httpValidation/httpValidationContentType.d.ts +9 -0
- package/dist/httpValidation/httpValidationContentType.js +32 -0
- package/dist/httpValidation/httpValidationCookie.d.ts +8 -0
- package/dist/httpValidation/httpValidationCookie.js +19 -0
- package/dist/httpValidation/httpValidationDate.d.ts +7 -0
- package/dist/httpValidation/httpValidationDate.js +13 -0
- package/dist/httpValidation/httpValidationETag.d.ts +7 -0
- package/dist/httpValidation/httpValidationETag.js +16 -0
- package/dist/httpValidation/httpValidationHeader.d.ts +16 -0
- package/dist/httpValidation/httpValidationHeader.js +77 -0
- package/dist/httpValidation/httpValidationHostname.d.ts +7 -0
- package/dist/httpValidation/httpValidationHostname.js +27 -0
- package/dist/httpValidation/httpValidationMessage.d.ts +13 -0
- package/dist/httpValidation/httpValidationMessage.js +45 -0
- package/dist/httpValidation/httpValidationMethod.d.ts +9 -0
- package/dist/httpValidation/httpValidationMethod.js +25 -0
- package/dist/httpValidation/httpValidationPort.d.ts +9 -0
- package/dist/httpValidation/httpValidationPort.js +25 -0
- package/dist/httpValidation/httpValidationRange.d.ts +7 -0
- package/dist/httpValidation/httpValidationRange.js +41 -0
- package/dist/httpValidation/httpValidationRequestTarget.d.ts +10 -0
- package/dist/httpValidation/httpValidationRequestTarget.js +48 -0
- package/dist/httpValidation/httpValidationStatusCode.d.ts +9 -0
- package/dist/httpValidation/httpValidationStatusCode.js +25 -0
- package/dist/httpValidation/httpValidationToken.d.ts +10 -0
- package/dist/httpValidation/httpValidationToken.js +25 -0
- package/dist/httpValidation/httpValidationTypes.type.d.ts +15 -0
- package/dist/httpValidation/httpValidationTypes.type.js +7 -0
- package/dist/httpValidation/httpValidationUrl.d.ts +11 -0
- package/dist/httpValidation/httpValidationUrl.js +62 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.js +83 -0
- package/package.json +27 -16
- package/dist/httpAdapter/fetch/httpFetch.body.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.body.js.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.helper.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.requestContext.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.responseWriter.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/httpFetch.type.d.ts.map +0 -1
- package/dist/httpAdapter/fetch/index.d.ts.map +0 -1
- package/dist/httpAdapter/http.adapter.d.ts.map +0 -1
- package/dist/httpAdapter/http.adapter.js.map +0 -1
- package/dist/httpAdapter/http.adapters.d.ts.map +0 -1
- package/dist/httpAdapter/http.adapters.js.map +0 -1
- package/dist/httpAdapter/httpFetch.adapter.d.ts.map +0 -1
- package/dist/httpAdapter/index.d.ts.map +0 -1
- package/dist/httpAdapter/index.js.map +0 -1
- package/dist/httpAdapter/node/httpNode.adapter.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.adapter.js.map +0 -1
- package/dist/httpAdapter/node/httpNode.request.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.response.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.server.d.ts.map +0 -1
- package/dist/httpAdapter/node/httpNode.server.js.map +0 -1
- package/dist/httpAdapter/node/httpNode.type.d.ts.map +0 -1
- package/dist/httpAdapter/node/index.d.ts.map +0 -1
- package/dist/httpAdapter/node/index.js.map +0 -1
- package/dist/httpAgent/http.agent.d.ts.map +0 -1
- package/dist/httpAgent/index.d.ts.map +0 -1
- package/dist/httpAgent/index.js.map +0 -1
- package/dist/httpBody/http.body.d.ts.map +0 -1
- package/dist/httpBody/http.body.js.map +0 -1
- package/dist/httpBody/httpBody.formData.d.ts.map +0 -1
- package/dist/httpBody/httpBody.formData.js.map +0 -1
- package/dist/httpBody/httpBody.parser.d.ts.map +0 -1
- package/dist/httpBody/httpBody.parser.js.map +0 -1
- package/dist/httpBody/index.d.ts.map +0 -1
- package/dist/httpBody/index.js.map +0 -1
- package/dist/httpCacheControl/core/httpCacheControl.parse.d.ts.map +0 -1
- package/dist/httpCacheControl/core/httpCacheControl.type.d.ts.map +0 -1
- package/dist/httpCacheControl/core/httpCacheControl.validation.d.ts.map +0 -1
- package/dist/httpCacheControl/core/index.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.core.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.factory.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.freshness.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.requestHelper.d.ts.map +0 -1
- package/dist/httpCacheControl/httpCacheControl.responseHelper.d.ts.map +0 -1
- package/dist/httpCacheControl/index.d.ts.map +0 -1
- package/dist/httpCacheControl/index.js.map +0 -1
- package/dist/httpClient/httpClient.abort.d.ts.map +0 -1
- package/dist/httpClient/httpClient.body.d.ts.map +0 -1
- package/dist/httpClient/httpClient.client.d.ts.map +0 -1
- package/dist/httpClient/httpClient.context.d.ts.map +0 -1
- package/dist/httpClient/httpClient.error.d.ts.map +0 -1
- package/dist/httpClient/httpClient.error.js.map +0 -1
- package/dist/httpClient/httpClient.errorNormalizer.d.ts.map +0 -1
- package/dist/httpClient/httpClient.executor.d.ts.map +0 -1
- package/dist/httpClient/httpClient.factory.d.ts.map +0 -1
- package/dist/httpClient/httpClient.headers.d.ts.map +0 -1
- package/dist/httpClient/httpClient.helpers.d.ts.map +0 -1
- package/dist/httpClient/httpClient.interceptors.d.ts.map +0 -1
- package/dist/httpClient/httpClient.methods.d.ts.map +0 -1
- package/dist/httpClient/httpClient.response.d.ts.map +0 -1
- package/dist/httpClient/httpClient.retry.d.ts.map +0 -1
- package/dist/httpClient/httpClient.retry.js.map +0 -1
- package/dist/httpClient/httpClient.type.d.ts.map +0 -1
- package/dist/httpClient/httpClient.typeGuards.d.ts.map +0 -1
- package/dist/httpClient/httpClient.url.d.ts.map +0 -1
- package/dist/httpClient/index.d.ts.map +0 -1
- package/dist/httpClient/index.js.map +0 -1
- package/dist/httpCompression/http.compression.d.ts.map +0 -1
- package/dist/httpCompression/index.d.ts.map +0 -1
- package/dist/httpCompression/index.js.map +0 -1
- package/dist/httpConditional/httpConditional.core.d.ts.map +0 -1
- package/dist/httpConditional/index.d.ts.map +0 -1
- package/dist/httpConditional/index.js.map +0 -1
- package/dist/httpConstants/http.constants.d.ts.map +0 -1
- package/dist/httpConstants/http.constants.js.map +0 -1
- package/dist/httpConstants/index.d.ts.map +0 -1
- package/dist/httpConstants/index.js.map +0 -1
- package/dist/httpContentDisposition/httpContentDisposition.core.d.ts.map +0 -1
- package/dist/httpContentDisposition/index.d.ts.map +0 -1
- package/dist/httpContentDisposition/index.js.map +0 -1
- package/dist/httpContentType/httpContentType.boundary.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.category.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.categoryBinary.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.charset.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.constructors.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.formatter.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.matcher.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.mediaTypes.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.normalizer.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.parameter.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.parser.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.parserHelpers.d.ts.map +0 -1
- package/dist/httpContentType/httpContentType.type.d.ts.map +0 -1
- package/dist/httpContentType/index.d.ts.map +0 -1
- package/dist/httpContentType/index.js.map +0 -1
- package/dist/httpContext/http.context.d.ts.map +0 -1
- package/dist/httpContext/http.context.js.map +0 -1
- package/dist/httpContext/index.d.ts.map +0 -1
- package/dist/httpContext/index.js.map +0 -1
- package/dist/httpCookies/http.cookies.d.ts.map +0 -1
- package/dist/httpCookies/index.d.ts.map +0 -1
- package/dist/httpCookies/index.js.map +0 -1
- package/dist/httpCors/http.cors.d.ts.map +0 -1
- package/dist/httpCors/index.d.ts.map +0 -1
- package/dist/httpCors/index.js.map +0 -1
- package/dist/httpCsp/checks/httpCsp.checks.d.ts.map +0 -1
- package/dist/httpCsp/checks/index.d.ts.map +0 -1
- package/dist/httpCsp/formatting/httpCsp.formatting.d.ts.map +0 -1
- package/dist/httpCsp/formatting/index.d.ts.map +0 -1
- package/dist/httpCsp/index.d.ts.map +0 -1
- package/dist/httpCsp/index.js.map +0 -1
- package/dist/httpCsp/internal/httpCsp.internal.d.ts.map +0 -1
- package/dist/httpCsp/internal/index.d.ts.map +0 -1
- package/dist/httpCsp/nonce/httpCsp.nonce.d.ts.map +0 -1
- package/dist/httpCsp/nonce/index.d.ts.map +0 -1
- package/dist/httpCsp/parsing/httpCsp.parsing.d.ts.map +0 -1
- package/dist/httpCsp/parsing/index.d.ts.map +0 -1
- package/dist/httpCsp/policies/httpCsp.policies.d.ts.map +0 -1
- package/dist/httpCsp/policies/index.d.ts.map +0 -1
- package/dist/httpCsp/reportOnly/httpCsp.reportOnly.d.ts.map +0 -1
- package/dist/httpCsp/reportOnly/index.d.ts.map +0 -1
- package/dist/httpCsp/sources/httpCsp.sources.d.ts.map +0 -1
- package/dist/httpCsp/sources/index.d.ts.map +0 -1
- package/dist/httpCsp/types/httpCsp.constant.d.ts.map +0 -1
- package/dist/httpCsp/types/httpCsp.type.d.ts.map +0 -1
- package/dist/httpCsp/types/index.d.ts.map +0 -1
- package/dist/httpCsp/validation/httpCsp.validate.d.ts.map +0 -1
- package/dist/httpCsp/validation/httpCsp.validation.d.ts.map +0 -1
- package/dist/httpCsp/validation/index.d.ts.map +0 -1
- package/dist/httpErrors/factories/httpError.clientError.d.ts.map +0 -1
- package/dist/httpErrors/factories/httpError.serverError.d.ts.map +0 -1
- package/dist/httpErrors/httpError.base.d.ts.map +0 -1
- package/dist/httpErrors/httpError.base.js.map +0 -1
- package/dist/httpErrors/httpError.helper.d.ts.map +0 -1
- package/dist/httpErrors/httpError.invalidJson.d.ts.map +0 -1
- package/dist/httpErrors/httpError.type.d.ts.map +0 -1
- package/dist/httpErrors/httpError.type.js.map +0 -1
- package/dist/httpErrors/httpError.typeGuard.d.ts.map +0 -1
- package/dist/httpErrors/index.d.ts.map +0 -1
- package/dist/httpErrors/index.js.map +0 -1
- package/dist/httpFormData/index.d.ts.map +0 -1
- package/dist/httpFormData/index.js.map +0 -1
- package/dist/httpHeaders/authorization/httpHeaders.authorization.d.ts.map +0 -1
- package/dist/httpHeaders/authorization/index.d.ts.map +0 -1
- package/dist/httpHeaders/authorization/index.js.map +0 -1
- package/dist/httpHeaders/basic/httpHeaders.basic.d.ts.map +0 -1
- package/dist/httpHeaders/basic/httpHeaders.basicMatch.d.ts.map +0 -1
- package/dist/httpHeaders/basic/index.d.ts.map +0 -1
- package/dist/httpHeaders/basic/index.js.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControl.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlBuilder.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlParse.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/httpHeaders.cacheControlTokens.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/index.d.ts +0 -10
- package/dist/httpHeaders/cacheControl/index.d.ts.map +0 -1
- package/dist/httpHeaders/cacheControl/index.js +0 -10
- package/dist/httpHeaders/cacheControl/index.js.map +0 -1
- package/dist/httpHeaders/conversion/httpHeaders.conversion.d.ts.map +0 -1
- package/dist/httpHeaders/conversion/httpHeaders.conversionObject.d.ts.map +0 -1
- package/dist/httpHeaders/conversion/index.d.ts.map +0 -1
- package/dist/httpHeaders/conversion/index.js.map +0 -1
- package/dist/httpHeaders/date/httpHeaders.date.d.ts.map +0 -1
- package/dist/httpHeaders/date/index.d.ts +0 -8
- package/dist/httpHeaders/date/index.d.ts.map +0 -1
- package/dist/httpHeaders/date/index.js +0 -8
- package/dist/httpHeaders/date/index.js.map +0 -1
- package/dist/httpHeaders/etag/httpHeaders.etag.d.ts.map +0 -1
- package/dist/httpHeaders/etag/httpHeaders.etagMatch.d.ts.map +0 -1
- package/dist/httpHeaders/etag/index.d.ts.map +0 -1
- package/dist/httpHeaders/etag/index.js.map +0 -1
- package/dist/httpHeaders/forwarded/httpHeaders.forwarded.d.ts.map +0 -1
- package/dist/httpHeaders/forwarded/index.d.ts.map +0 -1
- package/dist/httpHeaders/forwarded/index.js.map +0 -1
- package/dist/httpHeaders/http.headers.d.ts.map +0 -1
- package/dist/httpHeaders/index.d.ts.map +0 -1
- package/dist/httpHeaders/index.js.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.cacheControl.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.mediaType.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.specificity.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.d.ts.map +0 -1
- package/dist/httpHeaders/internal/httpHeaders.internal.weightedValues.d.ts.map +0 -1
- package/dist/httpHeaders/internal/index.d.ts.map +0 -1
- package/dist/httpHeaders/internal/index.js.map +0 -1
- package/dist/httpHeaders/list/httpHeaders.list.d.ts.map +0 -1
- package/dist/httpHeaders/list/httpHeaders.listMutation.d.ts.map +0 -1
- package/dist/httpHeaders/list/index.d.ts.map +0 -1
- package/dist/httpHeaders/list/index.js.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.contentNegotiation.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.contentNegotiationSelect.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.encodingNegotiation.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.encodingNegotiationSelect.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/httpHeaders.languageNegotiation.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/index.d.ts +0 -11
- package/dist/httpHeaders/negotiation/index.d.ts.map +0 -1
- package/dist/httpHeaders/negotiation/index.js +0 -11
- package/dist/httpHeaders/negotiation/index.js.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.contentRange.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.contentRangeParse.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.range.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.rangeResolution.d.ts.map +0 -1
- package/dist/httpHeaders/range/httpHeaders.rangeSingle.d.ts.map +0 -1
- package/dist/httpHeaders/range/index.d.ts +0 -11
- package/dist/httpHeaders/range/index.d.ts.map +0 -1
- package/dist/httpHeaders/range/index.js +0 -11
- package/dist/httpHeaders/range/index.js.map +0 -1
- package/dist/httpHeaders/security/httpHeaders.security.d.ts.map +0 -1
- package/dist/httpHeaders/security/index.d.ts.map +0 -1
- package/dist/httpHeaders/security/index.js.map +0 -1
- package/dist/httpHeaders/types/httpHeaders.type.d.ts.map +0 -1
- package/dist/httpHeaders/types/index.d.ts.map +0 -1
- package/dist/httpHeaders/types/index.js.map +0 -1
- package/dist/httpHsts/http.hsts.d.ts.map +0 -1
- package/dist/httpHsts/index.d.ts.map +0 -1
- package/dist/httpHsts/index.js.map +0 -1
- package/dist/httpInterceptors/builtin/httpInterceptor.request.d.ts.map +0 -1
- package/dist/httpInterceptors/builtin/httpInterceptor.request.js.map +0 -1
- package/dist/httpInterceptors/builtin/httpInterceptor.response.d.ts.map +0 -1
- package/dist/httpInterceptors/builtin/index.d.ts.map +0 -1
- package/dist/httpInterceptors/http.interceptors.d.ts.map +0 -1
- package/dist/httpInterceptors/httpInterceptor.helper.d.ts.map +0 -1
- package/dist/httpInterceptors/httpInterceptor.middleware.d.ts.map +0 -1
- package/dist/httpInterceptors/httpInterceptor.type.d.ts.map +0 -1
- package/dist/httpInterceptors/index.d.ts.map +0 -1
- package/dist/httpInterceptors/index.js.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.lookup.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.manager.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.registration.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/httpInterceptor.snapshot.d.ts.map +0 -1
- package/dist/httpInterceptors/manager/index.d.ts.map +0 -1
- package/dist/httpKeepAlive/httpKeepAlive.core.d.ts.map +0 -1
- package/dist/httpKeepAlive/index.d.ts.map +0 -1
- package/dist/httpKeepAlive/index.js.map +0 -1
- package/dist/httpMethods/http.methods.d.ts.map +0 -1
- package/dist/httpMethods/http.methods.js.map +0 -1
- package/dist/httpMethods/index.d.ts.map +0 -1
- package/dist/httpMethods/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/compose/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/conditional/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/cors/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.js.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/httpMiddleware.normalizer.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/helpers/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/image/httpMiddleware.image.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/image/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/image/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/logging/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/security/httpMiddleware.security.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/security/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/static/httpMiddleware.static.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/static/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/static/index.js.map +0 -1
- package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/timing/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/video/httpMiddleware.video.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/video/index.d.ts.map +0 -1
- package/dist/httpMiddleware/builtin/video/index.js.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.error.d.ts.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.error.js.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.state.d.ts.map +0 -1
- package/dist/httpMiddleware/httpMiddleware.type.d.ts.map +0 -1
- package/dist/httpMiddleware/index.d.ts.map +0 -1
- package/dist/httpMiddleware/index.js.map +0 -1
- package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/httpPipeline.execution.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/httpPipeline.helper.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/httpPipeline.registration.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/index.d.ts.map +0 -1
- package/dist/httpMiddleware/pipeline/index.js.map +0 -1
- package/dist/httpMime/http.mime.d.ts.map +0 -1
- package/dist/httpMime/index.d.ts.map +0 -1
- package/dist/httpMime/index.js.map +0 -1
- package/dist/httpMultipart/http.multipart.d.ts.map +0 -1
- package/dist/httpMultipart/http.multipart.js.map +0 -1
- package/dist/httpMultipart/index.d.ts.map +0 -1
- package/dist/httpMultipart/index.js.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.accept.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.charset.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.construction.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.core.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.encoding.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.formatting.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.helpers.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.internal.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.language.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.mediaType.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.negotiate.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.parsing.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.quality.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.sorting.d.ts.map +0 -1
- package/dist/httpNegotiation/httpNegotiation.types.d.ts.map +0 -1
- package/dist/httpNegotiation/index.d.ts.map +0 -1
- package/dist/httpNegotiation/index.js.map +0 -1
- package/dist/httpProtocol/http.protocol.d.ts.map +0 -1
- package/dist/httpProtocol/index.d.ts.map +0 -1
- package/dist/httpProtocol/index.js.map +0 -1
- package/dist/httpProxy/http.proxy.d.ts.map +0 -1
- package/dist/httpProxy/index.d.ts.map +0 -1
- package/dist/httpProxy/index.js.map +0 -1
- package/dist/httpQuery/http.query.d.ts.map +0 -1
- package/dist/httpQuery/httpQuery.string.d.ts.map +0 -1
- package/dist/httpQuery/index.d.ts.map +0 -1
- package/dist/httpQuery/index.js.map +0 -1
- package/dist/httpRange/http.range.d.ts.map +0 -1
- package/dist/httpRange/index.d.ts.map +0 -1
- package/dist/httpRange/index.js.map +0 -1
- package/dist/httpRedirect/http.redirect.d.ts.map +0 -1
- package/dist/httpRedirect/index.d.ts.map +0 -1
- package/dist/httpRedirect/index.js.map +0 -1
- package/dist/httpRequest/http.request.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.constant.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.constant.js.map +0 -1
- package/dist/httpRequest/httpRequest.context.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.id.d.ts.map +0 -1
- package/dist/httpRequest/httpRequest.context.js.map +0 -1
- package/dist/httpRequest/httpRequest.context.type.d.ts.map +0 -1
- package/dist/httpRequest/index.d.ts.map +0 -1
- package/dist/httpRequest/index.js.map +0 -1
- package/dist/httpResponse/core/httpResponse.statusText.d.ts.map +0 -1
- package/dist/httpResponse/core/httpResponse.type.d.ts.map +0 -1
- package/dist/httpResponse/core/index.d.ts.map +0 -1
- package/dist/httpResponse/http.response.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.context.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.helper.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.writer.d.ts.map +0 -1
- package/dist/httpResponse/httpResponse.writer.js.map +0 -1
- package/dist/httpResponse/index.d.ts.map +0 -1
- package/dist/httpResponse/index.js.map +0 -1
- package/dist/httpSecurity/httpSecurity.config.d.ts.map +0 -1
- package/dist/httpSecurity/httpSecurity.config.js.map +0 -1
- package/dist/httpSecurity/httpSecurity.guard.d.ts.map +0 -1
- package/dist/httpSecurity/httpSecurity.guard.js.map +0 -1
- package/dist/httpSecurity/httpSecurity.validator.d.ts.map +0 -1
- package/dist/httpSecurity/httpSecurity.validator.js.map +0 -1
- package/dist/httpSecurity/index.d.ts.map +0 -1
- package/dist/httpSecurity/index.js.map +0 -1
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/core/index.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurity.headers.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.factory.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.individual.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/index.d.ts.map +0 -1
- package/dist/httpSecurityHeaders/index.js.map +0 -1
- package/dist/httpServer/core/httpServer.core.d.ts.map +0 -1
- package/dist/httpServer/core/httpServer.core.js.map +0 -1
- package/dist/httpServer/core/index.d.ts.map +0 -1
- package/dist/httpServer/core/index.js.map +0 -1
- package/dist/httpServer/factory/httpServer.factory.d.ts.map +0 -1
- package/dist/httpServer/factory/httpServer.factory.js.map +0 -1
- package/dist/httpServer/factory/index.d.ts.map +0 -1
- package/dist/httpServer/factory/index.js.map +0 -1
- package/dist/httpServer/index.d.ts.map +0 -1
- package/dist/httpServer/index.js.map +0 -1
- package/dist/httpServer/manager/httpServer.manager.d.ts.map +0 -1
- package/dist/httpServer/manager/httpServer.manager.js.map +0 -1
- package/dist/httpServer/manager/index.d.ts.map +0 -1
- package/dist/httpServer/manager/index.js.map +0 -1
- package/dist/httpServer/types/httpServer.type.d.ts.map +0 -1
- package/dist/httpServer/types/httpServer.type.js.map +0 -1
- package/dist/httpStatus/httpStatus.categoryPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.clientErrorConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.clientErrorTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.collection.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.commonPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.constant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.errorPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.info.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.informationalSuccessConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.lookup.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.name.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.predicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectErrorConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectErrorTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectPredicate.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectionConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.redirectionTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.semantics.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.serverErrorConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.serverErrorTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.statusConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.statusTextConstant.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.type.d.ts.map +0 -1
- package/dist/httpStatus/httpStatus.validator.d.ts.map +0 -1
- package/dist/httpStatus/httpStatusCodes.constant.d.ts.map +0 -1
- package/dist/httpStatus/index.d.ts.map +0 -1
- package/dist/httpStatus/index.js.map +0 -1
- package/dist/httpStream/httpStream.backpressure.d.ts.map +0 -1
- package/dist/httpStream/httpStream.backpressure.js.map +0 -1
- package/dist/httpStream/httpStream.constants.d.ts.map +0 -1
- package/dist/httpStream/httpStream.constants.js.map +0 -1
- package/dist/httpStream/httpStream.consume.d.ts.map +0 -1
- package/dist/httpStream/httpStream.consume.js.map +0 -1
- package/dist/httpStream/httpStream.destroy.d.ts.map +0 -1
- package/dist/httpStream/httpStream.destroy.js.map +0 -1
- package/dist/httpStream/httpStream.error.d.ts.map +0 -1
- package/dist/httpStream/httpStream.error.js.map +0 -1
- package/dist/httpStream/httpStream.eventHelper.d.ts.map +0 -1
- package/dist/httpStream/httpStream.eventHelper.js.map +0 -1
- package/dist/httpStream/httpStream.helper.d.ts.map +0 -1
- package/dist/httpStream/httpStream.helper.js.map +0 -1
- package/dist/httpStream/httpStream.pipe.d.ts.map +0 -1
- package/dist/httpStream/httpStream.pipe.js.map +0 -1
- package/dist/httpStream/httpStream.progress.d.ts.map +0 -1
- package/dist/httpStream/httpStream.progress.js.map +0 -1
- package/dist/httpStream/httpStream.read.d.ts.map +0 -1
- package/dist/httpStream/httpStream.read.js.map +0 -1
- package/dist/httpStream/httpStream.request.d.ts.map +0 -1
- package/dist/httpStream/httpStream.request.js.map +0 -1
- package/dist/httpStream/httpStream.state.d.ts.map +0 -1
- package/dist/httpStream/httpStream.state.js.map +0 -1
- package/dist/httpStream/httpStream.transform.d.ts.map +0 -1
- package/dist/httpStream/httpStream.transform.js.map +0 -1
- package/dist/httpStream/httpStream.types.d.ts.map +0 -1
- package/dist/httpStream/httpStream.types.js.map +0 -1
- package/dist/httpStream/index.d.ts.map +0 -1
- package/dist/httpStream/index.js.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.compilation.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.core.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.helper.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.parsing.d.ts.map +0 -1
- package/dist/httpTrustProxy/httpTrustProxy.type.d.ts.map +0 -1
- package/dist/httpTrustProxy/index.d.ts.map +0 -1
- package/dist/httpTrustProxy/index.js.map +0 -1
- package/dist/httpTypes/http.types.d.ts.map +0 -1
- package/dist/httpTypes/http.types.js.map +0 -1
- package/dist/httpTypes/index.d.ts.map +0 -1
- package/dist/httpTypes/index.js.map +0 -1
- package/dist/httpUrl/http.url.d.ts.map +0 -1
- package/dist/httpUrl/index.d.ts.map +0 -1
- package/dist/httpUrl/index.js.map +0 -1
- package/dist/httpValidation/httpValidationAssertion.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationAuthority.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationAuthorization.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationCacheControl.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationContentLength.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationContentType.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationCookie.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationDate.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationETag.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationHeader.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationHostname.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationMessage.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationMethod.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationPort.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationRange.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationRequestTarget.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationStatusCode.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationToken.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationTypes.type.d.ts.map +0 -1
- package/dist/httpValidation/httpValidationUrl.d.ts.map +0 -1
- package/dist/httpValidation/index.d.ts.map +0 -1
- package/dist/httpValidation/index.js.map +0 -1
|
@@ -0,0 +1,712 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP URL utilities.
|
|
3
|
+
*
|
|
4
|
+
* Provides URL normalization, query parameter handling, path joining and
|
|
5
|
+
* origin helpers for the HTTP package.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* These helpers perform **no scheme validation**. `parseURL`, `toURL`,
|
|
9
|
+
* `resolveURL` and `resolveURLString` accept `javascript:`, `data:`, `file:`
|
|
10
|
+
* and any custom scheme, and `new URL(path, base)` discards the base entirely
|
|
11
|
+
* when `path` carries its own scheme. Any caller that builds a link, a
|
|
12
|
+
* redirect target or a fetch target from untrusted input must gate the result
|
|
13
|
+
* with {@link isHTTPOrHTTPSURL} first.
|
|
14
|
+
*/
|
|
15
|
+
/* -------------------------------------------------------------------------- */
|
|
16
|
+
/* Constants */
|
|
17
|
+
/* -------------------------------------------------------------------------- */
|
|
18
|
+
export const HTTP_PROTOCOL = "http:";
|
|
19
|
+
export const HTTPS_PROTOCOL = "https:";
|
|
20
|
+
export const DEFAULT_HTTP_PORT = 80;
|
|
21
|
+
export const DEFAULT_HTTPS_PORT = 443;
|
|
22
|
+
/* -------------------------------------------------------------------------- */
|
|
23
|
+
/* Parsing */
|
|
24
|
+
/* -------------------------------------------------------------------------- */
|
|
25
|
+
export function parseURL(input, base) {
|
|
26
|
+
if (input instanceof URL) {
|
|
27
|
+
return new URL(input.href);
|
|
28
|
+
}
|
|
29
|
+
if (base !== undefined) {
|
|
30
|
+
return new URL(input, toURL(base));
|
|
31
|
+
}
|
|
32
|
+
return new URL(input);
|
|
33
|
+
}
|
|
34
|
+
export function tryParseURL(input, base) {
|
|
35
|
+
if (input === undefined || input === null) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
return parseURL(input, base);
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export function toURL(input, base) {
|
|
46
|
+
return parseURL(input, base);
|
|
47
|
+
}
|
|
48
|
+
/* -------------------------------------------------------------------------- */
|
|
49
|
+
/* Formatting */
|
|
50
|
+
/* -------------------------------------------------------------------------- */
|
|
51
|
+
export function stringifyURL(input) {
|
|
52
|
+
return toURL(input).href;
|
|
53
|
+
}
|
|
54
|
+
export function getOrigin(input) {
|
|
55
|
+
return toURL(input).origin;
|
|
56
|
+
}
|
|
57
|
+
export function getProtocol(input) {
|
|
58
|
+
return toURL(input).protocol;
|
|
59
|
+
}
|
|
60
|
+
export function getHostname(input) {
|
|
61
|
+
return toURL(input).hostname;
|
|
62
|
+
}
|
|
63
|
+
export function getPort(input) {
|
|
64
|
+
const url = toURL(input);
|
|
65
|
+
if (url.port.length > 0) {
|
|
66
|
+
return Number(url.port);
|
|
67
|
+
}
|
|
68
|
+
if (url.protocol === HTTP_PROTOCOL) {
|
|
69
|
+
return DEFAULT_HTTP_PORT;
|
|
70
|
+
}
|
|
71
|
+
if (url.protocol === HTTPS_PROTOCOL) {
|
|
72
|
+
return DEFAULT_HTTPS_PORT;
|
|
73
|
+
}
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
export function getPathname(input) {
|
|
77
|
+
return toURL(input).pathname;
|
|
78
|
+
}
|
|
79
|
+
export function getSearch(input) {
|
|
80
|
+
return toURL(input).search;
|
|
81
|
+
}
|
|
82
|
+
export function getHash(input) {
|
|
83
|
+
return toURL(input).hash;
|
|
84
|
+
}
|
|
85
|
+
/* -------------------------------------------------------------------------- */
|
|
86
|
+
/* Protocol Helpers */
|
|
87
|
+
/* -------------------------------------------------------------------------- */
|
|
88
|
+
export function isHTTPURL(input) {
|
|
89
|
+
return getProtocol(input) === HTTP_PROTOCOL;
|
|
90
|
+
}
|
|
91
|
+
export function isHTTPSURL(input) {
|
|
92
|
+
return getProtocol(input) === HTTPS_PROTOCOL;
|
|
93
|
+
}
|
|
94
|
+
export function isHTTPOrHTTPSURL(input) {
|
|
95
|
+
const protocol = getProtocol(input);
|
|
96
|
+
return protocol === HTTP_PROTOCOL || protocol === HTTPS_PROTOCOL;
|
|
97
|
+
}
|
|
98
|
+
export function isSecureURL(input) {
|
|
99
|
+
return isHTTPSURL(input);
|
|
100
|
+
}
|
|
101
|
+
/* -------------------------------------------------------------------------- */
|
|
102
|
+
/* Origin Helpers */
|
|
103
|
+
/* -------------------------------------------------------------------------- */
|
|
104
|
+
/**
|
|
105
|
+
* Reports whether two URLs share a tuple origin.
|
|
106
|
+
*
|
|
107
|
+
* The WHATWG `origin` getter returns the literal string `"null"` for every
|
|
108
|
+
* non-special scheme (`data:`, `file:`, opaque `blob:`, custom schemes). That
|
|
109
|
+
* value means "opaque origin, equal to nothing, not even itself", so two
|
|
110
|
+
* `"null"` origins are reported as **not** same-origin rather than as a
|
|
111
|
+
* universal match.
|
|
112
|
+
*/
|
|
113
|
+
export function sameOrigin(left, right) {
|
|
114
|
+
const first = getOrigin(left);
|
|
115
|
+
const second = getOrigin(right);
|
|
116
|
+
if (first === "null" || second === "null") {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
return first === second;
|
|
120
|
+
}
|
|
121
|
+
export function sameHost(left, right) {
|
|
122
|
+
const first = toURL(left);
|
|
123
|
+
const second = toURL(right);
|
|
124
|
+
return (first.hostname === second.hostname &&
|
|
125
|
+
first.port === second.port &&
|
|
126
|
+
first.protocol === second.protocol);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Reports whether two URLs have the identical hostname.
|
|
130
|
+
*
|
|
131
|
+
* @remarks
|
|
132
|
+
* This is host equality, **not** the web platform's "same site". Same-site
|
|
133
|
+
* compares registrable domains (eTLD+1), so `a.example.com` and
|
|
134
|
+
* `b.example.com` are same-site while this function reports `false`; and
|
|
135
|
+
* schemeful same-site also compares the scheme, which this function ignores.
|
|
136
|
+
* Do not use it for `SameSite` cookie, CSRF or cross-site navigation
|
|
137
|
+
* decisions.
|
|
138
|
+
*/
|
|
139
|
+
export function sameHostname(left, right) {
|
|
140
|
+
return getHostname(left) === getHostname(right);
|
|
141
|
+
}
|
|
142
|
+
/* -------------------------------------------------------------------------- */
|
|
143
|
+
/* Path Helpers */
|
|
144
|
+
/* -------------------------------------------------------------------------- */
|
|
145
|
+
export function joinURLPath(...parts) {
|
|
146
|
+
const filtered = parts.filter((part) => part !== "");
|
|
147
|
+
if (filtered.length === 0) {
|
|
148
|
+
return "/";
|
|
149
|
+
}
|
|
150
|
+
const joined = filtered.join("/");
|
|
151
|
+
return normalizePath(joined);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Collapses `.` and `..` segments, clamping at the root.
|
|
155
|
+
*
|
|
156
|
+
* Each segment is percent-decoded before it is compared, so the encoded forms
|
|
157
|
+
* of a traversal (`%2e%2e`, `%2E%2e`) are collapsed exactly like the literal
|
|
158
|
+
* `..` instead of surviving normalisation for a later decoding stage to
|
|
159
|
+
* re-expand. A backslash is treated as a separator so Windows-style
|
|
160
|
+
* traversals normalise too. The emitted segments are the original, still
|
|
161
|
+
* encoded ones.
|
|
162
|
+
*/
|
|
163
|
+
export function normalizePath(path) {
|
|
164
|
+
if (path.length === 0) {
|
|
165
|
+
return "/";
|
|
166
|
+
}
|
|
167
|
+
const hasLeadingSlash = path.startsWith("/") || path.startsWith("\\");
|
|
168
|
+
const hasTrailingSlash = path.length > 1 && (path.endsWith("/") || path.endsWith("\\"));
|
|
169
|
+
const segments = path.split(/[/\\]/);
|
|
170
|
+
const normalized = [];
|
|
171
|
+
for (const segment of segments) {
|
|
172
|
+
const decoded = decodePathSegment(segment);
|
|
173
|
+
if (decoded === "" || decoded === ".") {
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
if (decoded === "..") {
|
|
177
|
+
if (normalized.length > 0) {
|
|
178
|
+
normalized.pop();
|
|
179
|
+
}
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
normalized.push(segment);
|
|
183
|
+
}
|
|
184
|
+
let result = normalized.join("/");
|
|
185
|
+
if (hasLeadingSlash) {
|
|
186
|
+
result = `/${result}`;
|
|
187
|
+
}
|
|
188
|
+
if (result.length === 0) {
|
|
189
|
+
result = "/";
|
|
190
|
+
}
|
|
191
|
+
if (hasTrailingSlash && result !== "/") {
|
|
192
|
+
result += "/";
|
|
193
|
+
}
|
|
194
|
+
return result;
|
|
195
|
+
}
|
|
196
|
+
export function ensureLeadingSlash(path) {
|
|
197
|
+
if (path.length === 0) {
|
|
198
|
+
return "/";
|
|
199
|
+
}
|
|
200
|
+
return path.startsWith("/") ? path : `/${path}`;
|
|
201
|
+
}
|
|
202
|
+
export function ensureTrailingSlash(path) {
|
|
203
|
+
if (path.length === 0) {
|
|
204
|
+
return "/";
|
|
205
|
+
}
|
|
206
|
+
return path.endsWith("/") ? path : `${path}/`;
|
|
207
|
+
}
|
|
208
|
+
export function removeTrailingSlash(path) {
|
|
209
|
+
if (path === "/") {
|
|
210
|
+
return path;
|
|
211
|
+
}
|
|
212
|
+
let end = path.length;
|
|
213
|
+
while (end > 0 && path.charCodeAt(end - 1) === 47) {
|
|
214
|
+
end--;
|
|
215
|
+
}
|
|
216
|
+
return path.slice(0, end);
|
|
217
|
+
}
|
|
218
|
+
export function removeLeadingSlash(path) {
|
|
219
|
+
let start = 0;
|
|
220
|
+
while (start < path.length && path.charCodeAt(start) === 47) {
|
|
221
|
+
start++;
|
|
222
|
+
}
|
|
223
|
+
return path.slice(start);
|
|
224
|
+
}
|
|
225
|
+
/* -------------------------------------------------------------------------- */
|
|
226
|
+
/* URL Joining */
|
|
227
|
+
/* -------------------------------------------------------------------------- */
|
|
228
|
+
export function resolveURL(base, path) {
|
|
229
|
+
return new URL(path, toURL(base));
|
|
230
|
+
}
|
|
231
|
+
export function resolveURLString(base, path) {
|
|
232
|
+
return resolveURL(base, path).href;
|
|
233
|
+
}
|
|
234
|
+
export function appendPath(base, ...paths) {
|
|
235
|
+
const url = toURL(base);
|
|
236
|
+
const basePath = removeTrailingSlash(url.pathname);
|
|
237
|
+
const appended = paths.map(removeLeadingSlash).filter(Boolean).join("/");
|
|
238
|
+
url.pathname = normalizePath(appended ? `${basePath}/${appended}` : basePath);
|
|
239
|
+
return url;
|
|
240
|
+
}
|
|
241
|
+
/* -------------------------------------------------------------------------- */
|
|
242
|
+
/* Query Parameters */
|
|
243
|
+
/* -------------------------------------------------------------------------- */
|
|
244
|
+
export function getQuery(input) {
|
|
245
|
+
return new URLSearchParams(toURL(input).searchParams);
|
|
246
|
+
}
|
|
247
|
+
export function getQueryParam(input, name) {
|
|
248
|
+
return toURL(input).searchParams.get(name);
|
|
249
|
+
}
|
|
250
|
+
export function getQueryParams(input, name) {
|
|
251
|
+
return toURL(input).searchParams.getAll(name);
|
|
252
|
+
}
|
|
253
|
+
export function hasQueryParam(input, name) {
|
|
254
|
+
return toURL(input).searchParams.has(name);
|
|
255
|
+
}
|
|
256
|
+
export function setQueryParam(input, name, value) {
|
|
257
|
+
const url = toURL(input);
|
|
258
|
+
if (value === undefined || value === null) {
|
|
259
|
+
url.searchParams.delete(name);
|
|
260
|
+
return url;
|
|
261
|
+
}
|
|
262
|
+
url.searchParams.set(name, String(value));
|
|
263
|
+
return url;
|
|
264
|
+
}
|
|
265
|
+
export function appendQueryParam(input, name, value) {
|
|
266
|
+
const url = toURL(input);
|
|
267
|
+
if (value === undefined || value === null) {
|
|
268
|
+
return url;
|
|
269
|
+
}
|
|
270
|
+
url.searchParams.append(name, String(value));
|
|
271
|
+
return url;
|
|
272
|
+
}
|
|
273
|
+
export function deleteQueryParam(input, name) {
|
|
274
|
+
const url = toURL(input);
|
|
275
|
+
url.searchParams.delete(name);
|
|
276
|
+
return url;
|
|
277
|
+
}
|
|
278
|
+
export function setQueryParams(input, query) {
|
|
279
|
+
const url = toURL(input);
|
|
280
|
+
applyQueryParams(url.searchParams, query);
|
|
281
|
+
return url;
|
|
282
|
+
}
|
|
283
|
+
export function appendQueryParams(input, query) {
|
|
284
|
+
const url = toURL(input);
|
|
285
|
+
appendQueryValues(url.searchParams, query);
|
|
286
|
+
return url;
|
|
287
|
+
}
|
|
288
|
+
export function clearQuery(input) {
|
|
289
|
+
const url = toURL(input);
|
|
290
|
+
url.search = "";
|
|
291
|
+
return url;
|
|
292
|
+
}
|
|
293
|
+
export function queryToString(query) {
|
|
294
|
+
const params = new URLSearchParams();
|
|
295
|
+
appendQueryValues(params, query);
|
|
296
|
+
return params.toString();
|
|
297
|
+
}
|
|
298
|
+
/* -------------------------------------------------------------------------- */
|
|
299
|
+
/* Query Object Conversion */
|
|
300
|
+
/* -------------------------------------------------------------------------- */
|
|
301
|
+
export function queryToObject(input) {
|
|
302
|
+
const params = input instanceof URLSearchParams ? input : getQuery(input);
|
|
303
|
+
/*
|
|
304
|
+
* A null-prototype container: a query parameter named `__proto__` cannot
|
|
305
|
+
* replace the returned object's prototype, and reads cannot surface an
|
|
306
|
+
* inherited member such as `constructor` as if it were a parsed value.
|
|
307
|
+
*/
|
|
308
|
+
const result = Object.create(null);
|
|
309
|
+
for (const [key, value] of params) {
|
|
310
|
+
const existing = Object.prototype.hasOwnProperty.call(result, key)
|
|
311
|
+
? result[key]
|
|
312
|
+
: undefined;
|
|
313
|
+
if (existing === undefined) {
|
|
314
|
+
result[key] = value;
|
|
315
|
+
}
|
|
316
|
+
else if (Array.isArray(existing)) {
|
|
317
|
+
existing.push(value);
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
result[key] = [existing, value];
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return result;
|
|
324
|
+
}
|
|
325
|
+
/* -------------------------------------------------------------------------- */
|
|
326
|
+
/* URL Construction */
|
|
327
|
+
/* -------------------------------------------------------------------------- */
|
|
328
|
+
export function createURL(base, options = {}) {
|
|
329
|
+
let url = toURL(base);
|
|
330
|
+
if (options.path !== undefined) {
|
|
331
|
+
url = appendPath(url, options.path);
|
|
332
|
+
}
|
|
333
|
+
if (options.query !== undefined) {
|
|
334
|
+
setQueryParams(url, options.query);
|
|
335
|
+
}
|
|
336
|
+
if (options.hash !== undefined) {
|
|
337
|
+
url.hash = options.hash.startsWith("#") ? options.hash : `#${options.hash}`;
|
|
338
|
+
}
|
|
339
|
+
return url;
|
|
340
|
+
}
|
|
341
|
+
/* -------------------------------------------------------------------------- */
|
|
342
|
+
/* URL Sanitization */
|
|
343
|
+
/* -------------------------------------------------------------------------- */
|
|
344
|
+
export function stripHash(input) {
|
|
345
|
+
const url = toURL(input);
|
|
346
|
+
url.hash = "";
|
|
347
|
+
return url;
|
|
348
|
+
}
|
|
349
|
+
export function stripQuery(input) {
|
|
350
|
+
const url = toURL(input);
|
|
351
|
+
url.search = "";
|
|
352
|
+
return url;
|
|
353
|
+
}
|
|
354
|
+
export function stripCredentials(input) {
|
|
355
|
+
const url = toURL(input);
|
|
356
|
+
url.username = "";
|
|
357
|
+
url.password = "";
|
|
358
|
+
return url;
|
|
359
|
+
}
|
|
360
|
+
export function stripQueryAndHash(input) {
|
|
361
|
+
const url = toURL(input);
|
|
362
|
+
url.search = "";
|
|
363
|
+
url.hash = "";
|
|
364
|
+
return url;
|
|
365
|
+
}
|
|
366
|
+
/* -------------------------------------------------------------------------- */
|
|
367
|
+
/* Credentials */
|
|
368
|
+
/* -------------------------------------------------------------------------- */
|
|
369
|
+
export function getURLUsername(input) {
|
|
370
|
+
return toURL(input).username;
|
|
371
|
+
}
|
|
372
|
+
export function getURLPassword(input) {
|
|
373
|
+
return toURL(input).password;
|
|
374
|
+
}
|
|
375
|
+
export function hasURLCredentials(input) {
|
|
376
|
+
const url = toURL(input);
|
|
377
|
+
return url.username.length > 0 || url.password.length > 0;
|
|
378
|
+
}
|
|
379
|
+
/* -------------------------------------------------------------------------- */
|
|
380
|
+
/* Network Helpers */
|
|
381
|
+
/* -------------------------------------------------------------------------- */
|
|
382
|
+
/**
|
|
383
|
+
* Reports whether a URL's host resolves to the local machine by literal form.
|
|
384
|
+
*
|
|
385
|
+
* Covers the whole `127.0.0.0/8` block, `0.0.0.0`, the IPv6 loopback in both
|
|
386
|
+
* bracketed and bare form, IPv4-mapped loopback, the non-canonical numeric
|
|
387
|
+
* forms (`2130706433`, `0177.0.0.1`, `0x7f.0.0.1`, `127.1`) and the
|
|
388
|
+
* trailing-dot FQDN.
|
|
389
|
+
*
|
|
390
|
+
* @remarks
|
|
391
|
+
* This inspects the literal host only. It cannot see a DNS name that
|
|
392
|
+
* *resolves* to loopback, and it does not cover the other private ranges. It
|
|
393
|
+
* is therefore **not** a complete SSRF control on its own — use
|
|
394
|
+
* {@link isPrivateHostLiteral} for the private ranges and resolve the name
|
|
395
|
+
* before connecting.
|
|
396
|
+
*/
|
|
397
|
+
export function isLocalhost(input) {
|
|
398
|
+
const hostname = normalizeHostLiteral(getHostname(input));
|
|
399
|
+
if (hostname === "localhost" || hostname.endsWith(".localhost")) {
|
|
400
|
+
return true;
|
|
401
|
+
}
|
|
402
|
+
const ipv6 = parseIPv6(hostname);
|
|
403
|
+
if (ipv6 !== undefined) {
|
|
404
|
+
return isLoopbackIPv6(ipv6);
|
|
405
|
+
}
|
|
406
|
+
const ipv4 = parseIPv4(hostname);
|
|
407
|
+
if (ipv4 === undefined) {
|
|
408
|
+
return false;
|
|
409
|
+
}
|
|
410
|
+
/* 127.0.0.0/8 and the "this host" address 0.0.0.0. */
|
|
411
|
+
return ipv4 >>> 24 === 127 || ipv4 === 0;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Reports whether a URL's host literal is in a loopback, link-local or
|
|
415
|
+
* private range, including the non-canonical numeric IPv4 forms.
|
|
416
|
+
*/
|
|
417
|
+
export function isPrivateHostLiteral(input) {
|
|
418
|
+
const hostname = normalizeHostLiteral(getHostname(input));
|
|
419
|
+
const ipv6 = parseIPv6(hostname);
|
|
420
|
+
if (ipv6 !== undefined) {
|
|
421
|
+
return isPrivateIPv6(ipv6);
|
|
422
|
+
}
|
|
423
|
+
const ipv4 = parseIPv4(hostname);
|
|
424
|
+
if (ipv4 === undefined) {
|
|
425
|
+
return hostname === "localhost" || hostname.endsWith(".localhost");
|
|
426
|
+
}
|
|
427
|
+
const first = ipv4 >>> 24;
|
|
428
|
+
const second = (ipv4 >>> 16) & 0xff;
|
|
429
|
+
return (first === 0 ||
|
|
430
|
+
first === 10 ||
|
|
431
|
+
first === 127 ||
|
|
432
|
+
(first === 100 && second >= 64 && second <= 127) ||
|
|
433
|
+
(first === 169 && second === 254) ||
|
|
434
|
+
(first === 172 && second >= 16 && second <= 31) ||
|
|
435
|
+
(first === 192 && second === 168) ||
|
|
436
|
+
(first === 198 && (second === 18 || second === 19)));
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Reports whether a URL's host is an IP literal rather than a DNS name.
|
|
440
|
+
*
|
|
441
|
+
* Validates the address rather than pattern-matching it, so `999.999.999.999`
|
|
442
|
+
* and a bare hostname containing a colon are correctly rejected.
|
|
443
|
+
*/
|
|
444
|
+
export function isIPLiteral(input) {
|
|
445
|
+
const hostname = normalizeHostLiteral(getHostname(input));
|
|
446
|
+
return parseIPv4(hostname) !== undefined || parseIPv6(hostname) !== undefined;
|
|
447
|
+
}
|
|
448
|
+
/* -------------------------------------------------------------------------- */
|
|
449
|
+
/* URL Comparison */
|
|
450
|
+
/* -------------------------------------------------------------------------- */
|
|
451
|
+
export function urlsEqual(left, right) {
|
|
452
|
+
return toURL(left).href === toURL(right).href;
|
|
453
|
+
}
|
|
454
|
+
export function urlsEquivalent(left, right) {
|
|
455
|
+
const first = toURL(left);
|
|
456
|
+
const second = toURL(right);
|
|
457
|
+
first.hash = "";
|
|
458
|
+
second.hash = "";
|
|
459
|
+
return first.href === second.href;
|
|
460
|
+
}
|
|
461
|
+
/* -------------------------------------------------------------------------- */
|
|
462
|
+
/* Internal Query Helpers */
|
|
463
|
+
/* -------------------------------------------------------------------------- */
|
|
464
|
+
/*
|
|
465
|
+
* `URLSearchParams.prototype.forEach` walks the live entry list by index, so
|
|
466
|
+
* deleting during iteration shifts the remaining entries down and skips them
|
|
467
|
+
* (verified: forEach+delete over "a=1&b=2&c=3&d=4" leaves "b=2&d=4"). The key
|
|
468
|
+
* list is therefore snapshotted before anything is removed.
|
|
469
|
+
*/
|
|
470
|
+
function applyQueryParams(target, query) {
|
|
471
|
+
for (const key of new Set(target.keys())) {
|
|
472
|
+
target.delete(key);
|
|
473
|
+
}
|
|
474
|
+
appendQueryValues(target, query);
|
|
475
|
+
}
|
|
476
|
+
function appendQueryValues(target, query) {
|
|
477
|
+
if (query instanceof URLSearchParams) {
|
|
478
|
+
for (const [key, value] of query) {
|
|
479
|
+
target.append(key, value);
|
|
480
|
+
}
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
483
|
+
for (const [key, rawValue] of Object.entries(query)) {
|
|
484
|
+
if (Array.isArray(rawValue)) {
|
|
485
|
+
for (const value of rawValue) {
|
|
486
|
+
if (value === undefined || value === null) {
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
target.append(key, String(value));
|
|
490
|
+
}
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
493
|
+
if (rawValue === undefined || rawValue === null) {
|
|
494
|
+
continue;
|
|
495
|
+
}
|
|
496
|
+
target.append(key, String(rawValue));
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
/* -------------------------------------------------------------------------- */
|
|
500
|
+
/* Internal Path Helpers */
|
|
501
|
+
/* -------------------------------------------------------------------------- */
|
|
502
|
+
/**
|
|
503
|
+
* Percent-decodes one path segment for comparison purposes.
|
|
504
|
+
*
|
|
505
|
+
* A malformed sequence cannot be decoded and is returned unchanged; it is
|
|
506
|
+
* then compared as-is, which is safe because it is not a traversal token.
|
|
507
|
+
*/
|
|
508
|
+
function decodePathSegment(segment) {
|
|
509
|
+
if (!segment.includes("%")) {
|
|
510
|
+
return segment;
|
|
511
|
+
}
|
|
512
|
+
try {
|
|
513
|
+
return decodeURIComponent(segment);
|
|
514
|
+
}
|
|
515
|
+
catch {
|
|
516
|
+
return segment;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
/* -------------------------------------------------------------------------- */
|
|
520
|
+
/* Internal Host Helpers */
|
|
521
|
+
/* -------------------------------------------------------------------------- */
|
|
522
|
+
function normalizeHostLiteral(hostname) {
|
|
523
|
+
let value = hostname.trim().toLowerCase();
|
|
524
|
+
if (value.startsWith("[") && value.endsWith("]")) {
|
|
525
|
+
value = value.slice(1, -1);
|
|
526
|
+
}
|
|
527
|
+
/* A trailing dot makes an FQDN absolute; it does not change the host. */
|
|
528
|
+
while (value.endsWith(".") && value.length > 1) {
|
|
529
|
+
value = value.slice(0, -1);
|
|
530
|
+
}
|
|
531
|
+
return value;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Parses every numeric IPv4 form `inet_aton` accepts into a 32-bit address.
|
|
535
|
+
*
|
|
536
|
+
* That includes the dotted quad, the shorthand forms (`127.1`, `10.1.2`), and
|
|
537
|
+
* octal or hexadecimal parts — all of which reach the same host as the
|
|
538
|
+
* canonical form and all of which a naive dotted-quad regex misses.
|
|
539
|
+
*/
|
|
540
|
+
function parseIPv4(hostname) {
|
|
541
|
+
if (hostname.length === 0 || /[^0-9a-fx.]/.test(hostname)) {
|
|
542
|
+
return undefined;
|
|
543
|
+
}
|
|
544
|
+
const parts = hostname.split(".");
|
|
545
|
+
if (parts.length > 4) {
|
|
546
|
+
return undefined;
|
|
547
|
+
}
|
|
548
|
+
const numbers = [];
|
|
549
|
+
for (const part of parts) {
|
|
550
|
+
const parsed = parseIPv4Part(part);
|
|
551
|
+
if (parsed === undefined) {
|
|
552
|
+
return undefined;
|
|
553
|
+
}
|
|
554
|
+
numbers.push(parsed);
|
|
555
|
+
}
|
|
556
|
+
const last = numbers[numbers.length - 1];
|
|
557
|
+
if (last === undefined) {
|
|
558
|
+
/* `split` always yields at least one part, so this cannot be reached. */
|
|
559
|
+
return undefined;
|
|
560
|
+
}
|
|
561
|
+
/* The final part absorbs every octet the earlier parts did not supply. */
|
|
562
|
+
const maxLast = 256 ** (4 - numbers.length + 1);
|
|
563
|
+
if (last >= maxLast) {
|
|
564
|
+
return undefined;
|
|
565
|
+
}
|
|
566
|
+
let address = last;
|
|
567
|
+
for (const [index, value] of numbers.slice(0, -1).entries()) {
|
|
568
|
+
if (value > 255) {
|
|
569
|
+
return undefined;
|
|
570
|
+
}
|
|
571
|
+
address += value * 256 ** (3 - index);
|
|
572
|
+
}
|
|
573
|
+
if (!Number.isSafeInteger(address) || address < 0 || address > 0xffffffff) {
|
|
574
|
+
return undefined;
|
|
575
|
+
}
|
|
576
|
+
return address >>> 0;
|
|
577
|
+
}
|
|
578
|
+
function parseIPv4Part(part) {
|
|
579
|
+
if (part.length === 0) {
|
|
580
|
+
return undefined;
|
|
581
|
+
}
|
|
582
|
+
if (/^0[xX][0-9a-fA-F]+$/.test(part)) {
|
|
583
|
+
return Number.parseInt(part.slice(2), 16);
|
|
584
|
+
}
|
|
585
|
+
if (/^0[0-7]+$/.test(part)) {
|
|
586
|
+
return Number.parseInt(part.slice(1), 8);
|
|
587
|
+
}
|
|
588
|
+
if (/^\d+$/.test(part)) {
|
|
589
|
+
return Number.parseInt(part, 10);
|
|
590
|
+
}
|
|
591
|
+
return undefined;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Parses an IPv6 literal into its eight 16-bit groups.
|
|
595
|
+
*
|
|
596
|
+
* Supports `::` compression and a trailing embedded IPv4 address.
|
|
597
|
+
*/
|
|
598
|
+
function parseIPv6(hostname) {
|
|
599
|
+
if (!hostname.includes(":")) {
|
|
600
|
+
return undefined;
|
|
601
|
+
}
|
|
602
|
+
const doubleColon = hostname.indexOf("::");
|
|
603
|
+
if (doubleColon !== hostname.lastIndexOf("::")) {
|
|
604
|
+
return undefined;
|
|
605
|
+
}
|
|
606
|
+
const head = doubleColon === -1 ? hostname : hostname.slice(0, doubleColon);
|
|
607
|
+
const tail = doubleColon === -1 ? "" : hostname.slice(doubleColon + 2);
|
|
608
|
+
const headGroups = expandIPv6Groups(head);
|
|
609
|
+
const tailGroups = expandIPv6Groups(tail);
|
|
610
|
+
if (headGroups === undefined || tailGroups === undefined) {
|
|
611
|
+
return undefined;
|
|
612
|
+
}
|
|
613
|
+
if (doubleColon === -1) {
|
|
614
|
+
return toIPv6Groups(headGroups);
|
|
615
|
+
}
|
|
616
|
+
const missing = 8 - headGroups.length - tailGroups.length;
|
|
617
|
+
if (missing < 1) {
|
|
618
|
+
return undefined;
|
|
619
|
+
}
|
|
620
|
+
return toIPv6Groups([
|
|
621
|
+
...headGroups,
|
|
622
|
+
...new Array(missing).fill(0),
|
|
623
|
+
...tailGroups,
|
|
624
|
+
]);
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Narrows a variable-length group list to the eight-group tuple the address
|
|
628
|
+
* predicates require, so every later index is statically known to exist.
|
|
629
|
+
*/
|
|
630
|
+
function toIPv6Groups(groups) {
|
|
631
|
+
const [first, second, third, fourth, fifth, sixth, seventh, eighth] = groups;
|
|
632
|
+
if (groups.length !== 8 ||
|
|
633
|
+
first === undefined ||
|
|
634
|
+
second === undefined ||
|
|
635
|
+
third === undefined ||
|
|
636
|
+
fourth === undefined ||
|
|
637
|
+
fifth === undefined ||
|
|
638
|
+
sixth === undefined ||
|
|
639
|
+
seventh === undefined ||
|
|
640
|
+
eighth === undefined) {
|
|
641
|
+
return undefined;
|
|
642
|
+
}
|
|
643
|
+
return [first, second, third, fourth, fifth, sixth, seventh, eighth];
|
|
644
|
+
}
|
|
645
|
+
function expandIPv6Groups(section) {
|
|
646
|
+
if (section.length === 0) {
|
|
647
|
+
return [];
|
|
648
|
+
}
|
|
649
|
+
const parts = section.split(":");
|
|
650
|
+
const groups = [];
|
|
651
|
+
for (const [index, part] of parts.entries()) {
|
|
652
|
+
if (part.includes(".")) {
|
|
653
|
+
if (index !== parts.length - 1) {
|
|
654
|
+
return undefined;
|
|
655
|
+
}
|
|
656
|
+
const embedded = parseIPv4(part);
|
|
657
|
+
if (embedded === undefined) {
|
|
658
|
+
return undefined;
|
|
659
|
+
}
|
|
660
|
+
groups.push((embedded >>> 16) & 0xffff, embedded & 0xffff);
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
if (!/^[0-9a-fA-F]{1,4}$/.test(part)) {
|
|
664
|
+
return undefined;
|
|
665
|
+
}
|
|
666
|
+
groups.push(Number.parseInt(part, 16));
|
|
667
|
+
}
|
|
668
|
+
return groups.length > 8 ? undefined : groups;
|
|
669
|
+
}
|
|
670
|
+
function isLoopbackIPv6(groups) {
|
|
671
|
+
const embedded = getMappedIPv4(groups);
|
|
672
|
+
if (embedded !== undefined) {
|
|
673
|
+
return embedded >>> 24 === 127 || embedded === 0;
|
|
674
|
+
}
|
|
675
|
+
return groups.slice(0, 7).every((group) => group === 0) && groups[7] === 1;
|
|
676
|
+
}
|
|
677
|
+
function isPrivateIPv6(groups) {
|
|
678
|
+
const embedded = getMappedIPv4(groups);
|
|
679
|
+
if (embedded !== undefined) {
|
|
680
|
+
const first = embedded >>> 24;
|
|
681
|
+
const second = (embedded >>> 16) & 0xff;
|
|
682
|
+
return (first === 0 ||
|
|
683
|
+
first === 10 ||
|
|
684
|
+
first === 127 ||
|
|
685
|
+
(first === 169 && second === 254) ||
|
|
686
|
+
(first === 172 && second >= 16 && second <= 31) ||
|
|
687
|
+
(first === 192 && second === 168));
|
|
688
|
+
}
|
|
689
|
+
if (isLoopbackIPv6(groups)) {
|
|
690
|
+
return true;
|
|
691
|
+
}
|
|
692
|
+
/* The unspecified address ::, unique-local fc00::/7 and link-local fe80::/10. */
|
|
693
|
+
return (groups.every((group) => group === 0) ||
|
|
694
|
+
(groups[0] & 0xfe00) === 0xfc00 ||
|
|
695
|
+
(groups[0] & 0xffc0) === 0xfe80);
|
|
696
|
+
}
|
|
697
|
+
function getMappedIPv4(groups) {
|
|
698
|
+
const prefixIsZero = groups.slice(0, 5).every((group) => group === 0);
|
|
699
|
+
if (!prefixIsZero) {
|
|
700
|
+
return undefined;
|
|
701
|
+
}
|
|
702
|
+
if (groups[5] !== 0xffff && groups[5] !== 0) {
|
|
703
|
+
return undefined;
|
|
704
|
+
}
|
|
705
|
+
const address = ((groups[6] << 16) | groups[7]) >>> 0;
|
|
706
|
+
if (groups[5] === 0 && address <= 1) {
|
|
707
|
+
/* :: and ::1 are the unspecified and loopback addresses, not mapped IPv4. */
|
|
708
|
+
return undefined;
|
|
709
|
+
}
|
|
710
|
+
return address;
|
|
711
|
+
}
|
|
712
|
+
//# sourceMappingURL=http.url.js.map
|