@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,481 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIME type utilities.
|
|
3
|
+
*
|
|
4
|
+
* Provides extension-to-MIME and MIME-to-extension resolution used by
|
|
5
|
+
* request handling, static files, uploads, downloads, and HTTP responses.
|
|
6
|
+
*/
|
|
7
|
+
/* -------------------------------------------------------------------------- */
|
|
8
|
+
/* MIME Types */
|
|
9
|
+
/* -------------------------------------------------------------------------- */
|
|
10
|
+
export const MIME_TYPES = {
|
|
11
|
+
AAC: "audio/aac",
|
|
12
|
+
AVIF: "image/avif",
|
|
13
|
+
AVI: "video/x-msvideo",
|
|
14
|
+
BIN: "application/octet-stream",
|
|
15
|
+
BMP: "image/bmp",
|
|
16
|
+
BZIP: "application/x-bzip",
|
|
17
|
+
BZIP2: "application/x-bzip2",
|
|
18
|
+
CSV: "text/csv",
|
|
19
|
+
CSS: "text/css",
|
|
20
|
+
DOC: "application/msword",
|
|
21
|
+
DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
22
|
+
EOT: "application/vnd.ms-fontobject",
|
|
23
|
+
EPUB: "application/epub+zip",
|
|
24
|
+
GIF: "image/gif",
|
|
25
|
+
GZIP: "application/gzip",
|
|
26
|
+
HTML: "text/html",
|
|
27
|
+
ICO: "image/x-icon",
|
|
28
|
+
JAR: "application/java-archive",
|
|
29
|
+
JPEG: "image/jpeg",
|
|
30
|
+
JPG: "image/jpeg",
|
|
31
|
+
JS: "text/javascript",
|
|
32
|
+
JSON: "application/json",
|
|
33
|
+
MAP: "application/json",
|
|
34
|
+
M4A: "audio/mp4",
|
|
35
|
+
MP3: "audio/mpeg",
|
|
36
|
+
MP4: "video/mp4",
|
|
37
|
+
MPEG: "video/mpeg",
|
|
38
|
+
OGG: "audio/ogg",
|
|
39
|
+
OTF: "font/otf",
|
|
40
|
+
PDF: "application/pdf",
|
|
41
|
+
PNG: "image/png",
|
|
42
|
+
PPT: "application/vnd.ms-powerpoint",
|
|
43
|
+
PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
44
|
+
RAR: "application/vnd.rar",
|
|
45
|
+
RSS: "application/rss+xml",
|
|
46
|
+
SVG: "image/svg+xml",
|
|
47
|
+
TAR: "application/x-tar",
|
|
48
|
+
TIFF: "image/tiff",
|
|
49
|
+
TIF: "image/tiff",
|
|
50
|
+
TS: "video/mp2t",
|
|
51
|
+
TXT: "text/plain",
|
|
52
|
+
WASM: "application/wasm",
|
|
53
|
+
WAV: "audio/wav",
|
|
54
|
+
WEBA: "audio/webm",
|
|
55
|
+
WEBM: "video/webm",
|
|
56
|
+
WEBP: "image/webp",
|
|
57
|
+
WOFF: "font/woff",
|
|
58
|
+
WOFF2: "font/woff2",
|
|
59
|
+
XML: "application/xml",
|
|
60
|
+
XLS: "application/vnd.ms-excel",
|
|
61
|
+
XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
62
|
+
ZIP: "application/zip",
|
|
63
|
+
ZST: "application/zstd",
|
|
64
|
+
};
|
|
65
|
+
/* -------------------------------------------------------------------------- */
|
|
66
|
+
/* Extension Map */
|
|
67
|
+
/* -------------------------------------------------------------------------- */
|
|
68
|
+
const EXTENSION_TO_MIME = Object.assign(Object.create(null), {
|
|
69
|
+
aac: MIME_TYPES.AAC,
|
|
70
|
+
avif: MIME_TYPES.AVIF,
|
|
71
|
+
avi: MIME_TYPES.AVI,
|
|
72
|
+
bin: MIME_TYPES.BIN,
|
|
73
|
+
bmp: MIME_TYPES.BMP,
|
|
74
|
+
bz: MIME_TYPES.BZIP,
|
|
75
|
+
bz2: MIME_TYPES.BZIP2,
|
|
76
|
+
csv: MIME_TYPES.CSV,
|
|
77
|
+
css: MIME_TYPES.CSS,
|
|
78
|
+
doc: MIME_TYPES.DOC,
|
|
79
|
+
docx: MIME_TYPES.DOCX,
|
|
80
|
+
eot: MIME_TYPES.EOT,
|
|
81
|
+
epub: MIME_TYPES.EPUB,
|
|
82
|
+
gif: MIME_TYPES.GIF,
|
|
83
|
+
gz: MIME_TYPES.GZIP,
|
|
84
|
+
gzip: MIME_TYPES.GZIP,
|
|
85
|
+
htm: MIME_TYPES.HTML,
|
|
86
|
+
html: MIME_TYPES.HTML,
|
|
87
|
+
ico: MIME_TYPES.ICO,
|
|
88
|
+
jar: MIME_TYPES.JAR,
|
|
89
|
+
jpeg: MIME_TYPES.JPEG,
|
|
90
|
+
jpg: MIME_TYPES.JPG,
|
|
91
|
+
js: MIME_TYPES.JS,
|
|
92
|
+
json: MIME_TYPES.JSON,
|
|
93
|
+
map: MIME_TYPES.MAP,
|
|
94
|
+
m4a: MIME_TYPES.M4A,
|
|
95
|
+
mp3: MIME_TYPES.MP3,
|
|
96
|
+
mp4: MIME_TYPES.MP4,
|
|
97
|
+
mpeg: MIME_TYPES.MPEG,
|
|
98
|
+
ogg: MIME_TYPES.OGG,
|
|
99
|
+
otf: MIME_TYPES.OTF,
|
|
100
|
+
pdf: MIME_TYPES.PDF,
|
|
101
|
+
png: MIME_TYPES.PNG,
|
|
102
|
+
ppt: MIME_TYPES.PPT,
|
|
103
|
+
pptx: MIME_TYPES.PPTX,
|
|
104
|
+
rar: MIME_TYPES.RAR,
|
|
105
|
+
rss: MIME_TYPES.RSS,
|
|
106
|
+
svg: MIME_TYPES.SVG,
|
|
107
|
+
tar: MIME_TYPES.TAR,
|
|
108
|
+
tif: MIME_TYPES.TIF,
|
|
109
|
+
tiff: MIME_TYPES.TIFF,
|
|
110
|
+
ts: MIME_TYPES.TS,
|
|
111
|
+
txt: MIME_TYPES.TXT,
|
|
112
|
+
wasm: MIME_TYPES.WASM,
|
|
113
|
+
wav: MIME_TYPES.WAV,
|
|
114
|
+
weba: MIME_TYPES.WEBA,
|
|
115
|
+
webm: MIME_TYPES.WEBM,
|
|
116
|
+
webp: MIME_TYPES.WEBP,
|
|
117
|
+
woff: MIME_TYPES.WOFF,
|
|
118
|
+
woff2: MIME_TYPES.WOFF2,
|
|
119
|
+
xml: MIME_TYPES.XML,
|
|
120
|
+
xls: MIME_TYPES.XLS,
|
|
121
|
+
xlsx: MIME_TYPES.XLSX,
|
|
122
|
+
zip: MIME_TYPES.ZIP,
|
|
123
|
+
zst: MIME_TYPES.ZST,
|
|
124
|
+
});
|
|
125
|
+
/* -------------------------------------------------------------------------- */
|
|
126
|
+
/* Reverse Map */
|
|
127
|
+
/* -------------------------------------------------------------------------- */
|
|
128
|
+
const MIME_TO_EXTENSIONS = buildReverseMap(EXTENSION_TO_MIME);
|
|
129
|
+
/* -------------------------------------------------------------------------- */
|
|
130
|
+
/* Lookup */
|
|
131
|
+
/* -------------------------------------------------------------------------- */
|
|
132
|
+
export function getMIMEType(filenameOrExtension) {
|
|
133
|
+
if (filenameOrExtension === undefined || filenameOrExtension === null) {
|
|
134
|
+
return MIME_TYPES.BIN;
|
|
135
|
+
}
|
|
136
|
+
const extension = getExtension(filenameOrExtension);
|
|
137
|
+
if (extension.length === 0) {
|
|
138
|
+
return MIME_TYPES.BIN;
|
|
139
|
+
}
|
|
140
|
+
return EXTENSION_TO_MIME[extension] ?? MIME_TYPES.BIN;
|
|
141
|
+
}
|
|
142
|
+
export function lookupMIMEType(filenameOrExtension) {
|
|
143
|
+
if (filenameOrExtension === undefined || filenameOrExtension === null) {
|
|
144
|
+
return undefined;
|
|
145
|
+
}
|
|
146
|
+
const extension = getExtension(filenameOrExtension);
|
|
147
|
+
return EXTENSION_TO_MIME[extension];
|
|
148
|
+
}
|
|
149
|
+
export function getExtension(filenameOrExtension) {
|
|
150
|
+
const [beforeQuery = ""] = filenameOrExtension.split("?", 1);
|
|
151
|
+
const [beforeFragment = ""] = beforeQuery.split("#", 1);
|
|
152
|
+
const clean = beforeFragment.trim();
|
|
153
|
+
const lastSlash = Math.max(clean.lastIndexOf("/"), clean.lastIndexOf("\\"));
|
|
154
|
+
const filename = clean.slice(lastSlash + 1);
|
|
155
|
+
const lastDot = filename.lastIndexOf(".");
|
|
156
|
+
/*
|
|
157
|
+
* A bare "png" and a dot-prefixed ".png" are both extensions; the parameter
|
|
158
|
+
* name invites them, so treat them as such rather than returning nothing.
|
|
159
|
+
*/
|
|
160
|
+
if (lastDot === -1) {
|
|
161
|
+
return filename.toLowerCase();
|
|
162
|
+
}
|
|
163
|
+
return filename.slice(lastDot + 1).toLowerCase();
|
|
164
|
+
}
|
|
165
|
+
export function getMIMEExtensions(mimeType) {
|
|
166
|
+
const normalized = normalizeMIMEType(mimeType);
|
|
167
|
+
return MIME_TO_EXTENSIONS[normalized] ?? [];
|
|
168
|
+
}
|
|
169
|
+
export function getPrimaryExtension(mimeType) {
|
|
170
|
+
return getMIMEExtensions(mimeType)[0];
|
|
171
|
+
}
|
|
172
|
+
/* -------------------------------------------------------------------------- */
|
|
173
|
+
/* Validation */
|
|
174
|
+
/* -------------------------------------------------------------------------- */
|
|
175
|
+
/**
|
|
176
|
+
* Resolves a MIME type string to its canonical {@link KnownMIMEType}.
|
|
177
|
+
*
|
|
178
|
+
* @param mimeType - The raw MIME type, with or without parameters.
|
|
179
|
+
* @returns The canonical type, or `undefined` if it is not known.
|
|
180
|
+
*/
|
|
181
|
+
export function toKnownMIMEType(mimeType) {
|
|
182
|
+
if (!mimeType) {
|
|
183
|
+
return undefined;
|
|
184
|
+
}
|
|
185
|
+
const normalized = normalizeMIMEType(mimeType);
|
|
186
|
+
return Object.values(MIME_TYPES).includes(normalized)
|
|
187
|
+
? normalized
|
|
188
|
+
: undefined;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Checks whether a string names a MIME type this module knows.
|
|
192
|
+
*
|
|
193
|
+
* @remarks
|
|
194
|
+
* Returns a plain `boolean` rather than narrowing: the check normalises
|
|
195
|
+
* (lower-cases, strips parameters) before testing, so the input's own runtime
|
|
196
|
+
* value may still be `"TEXT/HTML; charset=utf-8"`. Use
|
|
197
|
+
* {@link toKnownMIMEType} when the narrowed value is what you need.
|
|
198
|
+
*
|
|
199
|
+
* @param mimeType - The raw MIME type.
|
|
200
|
+
* @returns `true` if the type is known.
|
|
201
|
+
*/
|
|
202
|
+
export function isKnownMIMEType(mimeType) {
|
|
203
|
+
return toKnownMIMEType(mimeType) !== undefined;
|
|
204
|
+
}
|
|
205
|
+
export function isMIMEType(value) {
|
|
206
|
+
if (!value) {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
const normalized = value.trim();
|
|
210
|
+
const separator = normalized.indexOf("/");
|
|
211
|
+
if (separator <= 0 || separator === normalized.length - 1) {
|
|
212
|
+
return false;
|
|
213
|
+
}
|
|
214
|
+
const type = normalized.slice(0, separator);
|
|
215
|
+
const subtype = normalized.slice(separator + 1);
|
|
216
|
+
return isMIMEToken(type) && isMIMEToken(subtype);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Asserts that a value is one of the MIME types this module knows.
|
|
220
|
+
*
|
|
221
|
+
* The narrowing is to {@link KnownMIMEType}, so the check must be membership
|
|
222
|
+
* in that union — a purely syntactic check would assert a type the value does
|
|
223
|
+
* not hold and let an exhaustive `switch` fall through silently.
|
|
224
|
+
*
|
|
225
|
+
* @param value - The candidate MIME type.
|
|
226
|
+
* @throws {TypeError} If the value is not a known MIME type.
|
|
227
|
+
*/
|
|
228
|
+
export function assertMIMEType(value) {
|
|
229
|
+
if (!isKnownMIMEType(value)) {
|
|
230
|
+
throw new TypeError(`Unknown MIME type: ${value}`);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
/* -------------------------------------------------------------------------- */
|
|
234
|
+
/* Normalization */
|
|
235
|
+
/* -------------------------------------------------------------------------- */
|
|
236
|
+
export function normalizeMIMEType(mimeType) {
|
|
237
|
+
return (mimeType.trim().split(";", 1)[0] ?? "").trim().toLowerCase();
|
|
238
|
+
}
|
|
239
|
+
/* -------------------------------------------------------------------------- */
|
|
240
|
+
/* MIME Categories */
|
|
241
|
+
/* -------------------------------------------------------------------------- */
|
|
242
|
+
export function getMIMECategory(mimeType) {
|
|
243
|
+
const normalized = normalizeMIMEType(mimeType);
|
|
244
|
+
const separator = normalized.indexOf("/");
|
|
245
|
+
if (separator <= 0 || separator === normalized.length - 1) {
|
|
246
|
+
return undefined;
|
|
247
|
+
}
|
|
248
|
+
return normalized.slice(0, separator);
|
|
249
|
+
}
|
|
250
|
+
export function getMIMESubtype(mimeType) {
|
|
251
|
+
const normalized = normalizeMIMEType(mimeType);
|
|
252
|
+
const separator = normalized.indexOf("/");
|
|
253
|
+
if (separator <= 0 || separator === normalized.length - 1) {
|
|
254
|
+
return undefined;
|
|
255
|
+
}
|
|
256
|
+
return normalized.slice(separator + 1);
|
|
257
|
+
}
|
|
258
|
+
export function isTextMIME(mimeType) {
|
|
259
|
+
return getMIMECategory(mimeType) === "text";
|
|
260
|
+
}
|
|
261
|
+
export function isImageMIME(mimeType) {
|
|
262
|
+
return getMIMECategory(mimeType) === "image";
|
|
263
|
+
}
|
|
264
|
+
export function isAudioMIME(mimeType) {
|
|
265
|
+
return getMIMECategory(mimeType) === "audio";
|
|
266
|
+
}
|
|
267
|
+
export function isVideoMIME(mimeType) {
|
|
268
|
+
return getMIMECategory(mimeType) === "video";
|
|
269
|
+
}
|
|
270
|
+
export function isApplicationMIME(mimeType) {
|
|
271
|
+
return getMIMECategory(mimeType) === "application";
|
|
272
|
+
}
|
|
273
|
+
export function isFontMIME(mimeType) {
|
|
274
|
+
return getMIMECategory(mimeType) === "font";
|
|
275
|
+
}
|
|
276
|
+
/* -------------------------------------------------------------------------- */
|
|
277
|
+
/* Structured Types */
|
|
278
|
+
/* -------------------------------------------------------------------------- */
|
|
279
|
+
export function isJSONMIME(mimeType) {
|
|
280
|
+
const normalized = normalizeMIMEType(mimeType);
|
|
281
|
+
return normalized === "application/json" || normalized.endsWith("+json");
|
|
282
|
+
}
|
|
283
|
+
export function isXMLMIME(mimeType) {
|
|
284
|
+
const normalized = normalizeMIMEType(mimeType);
|
|
285
|
+
return (normalized === "application/xml" ||
|
|
286
|
+
normalized === "text/xml" ||
|
|
287
|
+
normalized.endsWith("+xml"));
|
|
288
|
+
}
|
|
289
|
+
export function isMultipartMIME(mimeType) {
|
|
290
|
+
return normalizeMIMEType(mimeType).startsWith("multipart/");
|
|
291
|
+
}
|
|
292
|
+
export function isBinaryMIME(mimeType) {
|
|
293
|
+
const normalized = normalizeMIMEType(mimeType);
|
|
294
|
+
if (normalized === MIME_TYPES.BIN) {
|
|
295
|
+
return true;
|
|
296
|
+
}
|
|
297
|
+
return (isImageMIME(normalized) ||
|
|
298
|
+
isAudioMIME(normalized) ||
|
|
299
|
+
isVideoMIME(normalized) ||
|
|
300
|
+
normalized === MIME_TYPES.PDF ||
|
|
301
|
+
normalized === MIME_TYPES.ZIP ||
|
|
302
|
+
normalized === MIME_TYPES.GZIP ||
|
|
303
|
+
normalized === MIME_TYPES.BZIP ||
|
|
304
|
+
normalized === MIME_TYPES.BZIP2 ||
|
|
305
|
+
normalized === MIME_TYPES.RAR ||
|
|
306
|
+
normalized === MIME_TYPES.TAR ||
|
|
307
|
+
normalized === MIME_TYPES.WASM);
|
|
308
|
+
}
|
|
309
|
+
/* -------------------------------------------------------------------------- */
|
|
310
|
+
/* Content Negotiation */
|
|
311
|
+
/* -------------------------------------------------------------------------- */
|
|
312
|
+
export function mimeTypesEqual(left, right) {
|
|
313
|
+
return normalizeMIMEType(left) === normalizeMIMEType(right);
|
|
314
|
+
}
|
|
315
|
+
export function matchesMIMEType(actual, expected) {
|
|
316
|
+
const left = normalizeMIMEType(actual);
|
|
317
|
+
const right = normalizeMIMEType(expected);
|
|
318
|
+
if (left === right) {
|
|
319
|
+
return true;
|
|
320
|
+
}
|
|
321
|
+
const [actualType, actualSubtype] = splitMIMEType(left);
|
|
322
|
+
const [expectedType, expectedSubtype] = splitMIMEType(right);
|
|
323
|
+
if (!actualType || !actualSubtype || !expectedType || !expectedSubtype) {
|
|
324
|
+
return false;
|
|
325
|
+
}
|
|
326
|
+
if (expectedType !== "*" && expectedType !== actualType) {
|
|
327
|
+
return false;
|
|
328
|
+
}
|
|
329
|
+
return expectedSubtype === "*" || expectedSubtype === actualSubtype;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Maximum number of `Accept` entries parsed.
|
|
333
|
+
*/
|
|
334
|
+
const MAX_ACCEPT_ENTRIES = 64;
|
|
335
|
+
/**
|
|
336
|
+
* RFC 9110 section 12.4.2 `qvalue`.
|
|
337
|
+
*/
|
|
338
|
+
const MIME_QVALUE = /^(?:0(?:\.\d{0,3})?|1(?:\.0{0,3})?)$/;
|
|
339
|
+
/**
|
|
340
|
+
* Parses an `Accept` header into media types, most preferred first.
|
|
341
|
+
*
|
|
342
|
+
* Weights are honoured: entries are sorted by descending `q` (stably, so
|
|
343
|
+
* header order breaks ties) and `q=0` entries — explicit rejections — are
|
|
344
|
+
* dropped.
|
|
345
|
+
*
|
|
346
|
+
* @param header - The raw `Accept` header.
|
|
347
|
+
* @returns The acceptable media types in preference order.
|
|
348
|
+
*/
|
|
349
|
+
export function parseAcceptHeader(header) {
|
|
350
|
+
if (!header) {
|
|
351
|
+
return [];
|
|
352
|
+
}
|
|
353
|
+
const entries = [];
|
|
354
|
+
const parts = header.split(",").slice(0, MAX_ACCEPT_ENTRIES);
|
|
355
|
+
for (const [order, part] of parts.entries()) {
|
|
356
|
+
const segments = part.split(";");
|
|
357
|
+
const type = (segments[0] ?? "").trim().toLowerCase();
|
|
358
|
+
if (!isMIMEType(type)) {
|
|
359
|
+
continue;
|
|
360
|
+
}
|
|
361
|
+
entries.push({ type, quality: parseMIMEQuality(segments), order });
|
|
362
|
+
}
|
|
363
|
+
return entries
|
|
364
|
+
.filter((entry) => entry.quality > 0)
|
|
365
|
+
.sort((left, right) => left.quality === right.quality
|
|
366
|
+
? left.order - right.order
|
|
367
|
+
: right.quality - left.quality)
|
|
368
|
+
.map((entry) => entry.type);
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Reads the `q` parameter from an `Accept` entry's segments.
|
|
372
|
+
*
|
|
373
|
+
* @param segments - The `;`-separated segments of one entry.
|
|
374
|
+
* @returns The weight in `[0, 1]`; a malformed weight is `0`.
|
|
375
|
+
*/
|
|
376
|
+
function parseMIMEQuality(segments) {
|
|
377
|
+
for (const segment of segments.slice(1)) {
|
|
378
|
+
const separator = segment.indexOf("=");
|
|
379
|
+
if (separator === -1) {
|
|
380
|
+
continue;
|
|
381
|
+
}
|
|
382
|
+
if (segment.slice(0, separator).trim().toLowerCase() !== "q") {
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
385
|
+
const raw = segment.slice(separator + 1).trim();
|
|
386
|
+
return MIME_QVALUE.test(raw) ? Number(raw) : 0;
|
|
387
|
+
}
|
|
388
|
+
return 1;
|
|
389
|
+
}
|
|
390
|
+
export function negotiateMIMEType(accepted, available) {
|
|
391
|
+
const acceptedTypes = typeof accepted === "string"
|
|
392
|
+
? parseAcceptHeader(accepted)
|
|
393
|
+
: accepted.map(normalizeMIMEType);
|
|
394
|
+
for (const candidate of acceptedTypes) {
|
|
395
|
+
const match = available.find((availableType) => matchesMIMEType(availableType, candidate));
|
|
396
|
+
if (match) {
|
|
397
|
+
return match;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return undefined;
|
|
401
|
+
}
|
|
402
|
+
/* -------------------------------------------------------------------------- */
|
|
403
|
+
/* Charset Helpers */
|
|
404
|
+
/* -------------------------------------------------------------------------- */
|
|
405
|
+
export function withCharset(mimeType, charset) {
|
|
406
|
+
return `${normalizeMIMEType(mimeType)}; charset=${charset
|
|
407
|
+
.trim()
|
|
408
|
+
.toLowerCase()}`;
|
|
409
|
+
}
|
|
410
|
+
export function isUTF8MIME(mimeType) {
|
|
411
|
+
const match = /;\s*charset\s*=\s*"?([^";]+)"?/i.exec(mimeType);
|
|
412
|
+
return match?.[1]?.trim().toLowerCase() === "utf-8";
|
|
413
|
+
}
|
|
414
|
+
/* -------------------------------------------------------------------------- */
|
|
415
|
+
/* File Helpers */
|
|
416
|
+
/* -------------------------------------------------------------------------- */
|
|
417
|
+
/**
|
|
418
|
+
* Reports whether a media type must carry an explicit charset.
|
|
419
|
+
*
|
|
420
|
+
* A `text/html` response with no charset is subject to browser charset
|
|
421
|
+
* sniffing, which is an XSS vector when any part of the body is
|
|
422
|
+
* attacker-influenced.
|
|
423
|
+
*
|
|
424
|
+
* @param mimeType - The normalised media type.
|
|
425
|
+
* @returns `true` if a charset parameter should be attached.
|
|
426
|
+
*/
|
|
427
|
+
function needsCharset(mimeType) {
|
|
428
|
+
return (mimeType.startsWith("text/") ||
|
|
429
|
+
mimeType === MIME_TYPES.JSON ||
|
|
430
|
+
mimeType === MIME_TYPES.JS ||
|
|
431
|
+
mimeType === MIME_TYPES.SVG ||
|
|
432
|
+
mimeType.endsWith("+json") ||
|
|
433
|
+
mimeType.endsWith("+xml"));
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Resolves a filename to a `Content-Type` value.
|
|
437
|
+
*
|
|
438
|
+
* A `charset=utf-8` parameter is attached for text-bearing types so the
|
|
439
|
+
* response is never subject to browser charset sniffing.
|
|
440
|
+
*
|
|
441
|
+
* @param filename - The filename or path.
|
|
442
|
+
* @returns The `Content-Type` value.
|
|
443
|
+
*/
|
|
444
|
+
export function filenameToMIME(filename) {
|
|
445
|
+
const mimeType = getMIMEType(filename);
|
|
446
|
+
return needsCharset(mimeType) ? withCharset(mimeType, "utf-8") : mimeType;
|
|
447
|
+
}
|
|
448
|
+
export function mimeToFilename(mimeType, basename = "file") {
|
|
449
|
+
const extension = getPrimaryExtension(mimeType);
|
|
450
|
+
if (!extension) {
|
|
451
|
+
return basename;
|
|
452
|
+
}
|
|
453
|
+
return `${basename}.${extension}`;
|
|
454
|
+
}
|
|
455
|
+
/* -------------------------------------------------------------------------- */
|
|
456
|
+
/* Internal Helpers */
|
|
457
|
+
/* -------------------------------------------------------------------------- */
|
|
458
|
+
function splitMIMEType(mimeType) {
|
|
459
|
+
const separator = mimeType.indexOf("/");
|
|
460
|
+
if (separator <= 0 || separator === mimeType.length - 1) {
|
|
461
|
+
return [undefined, undefined];
|
|
462
|
+
}
|
|
463
|
+
return [mimeType.slice(0, separator), mimeType.slice(separator + 1)];
|
|
464
|
+
}
|
|
465
|
+
function isMIMEToken(value) {
|
|
466
|
+
return /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/.test(value);
|
|
467
|
+
}
|
|
468
|
+
function buildReverseMap(map) {
|
|
469
|
+
const result = Object.create(null);
|
|
470
|
+
for (const [extension, mimeType] of Object.entries(map)) {
|
|
471
|
+
const existing = result[mimeType];
|
|
472
|
+
if (existing) {
|
|
473
|
+
existing.push(extension);
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
result[mimeType] = [extension];
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
return result;
|
|
480
|
+
}
|
|
481
|
+
//# sourceMappingURL=http.mime.js.map
|
|
@@ -18,24 +18,79 @@ export interface MultipartForm {
|
|
|
18
18
|
export interface MultipartOptions {
|
|
19
19
|
readonly limit?: number;
|
|
20
20
|
readonly maxFileSize?: number;
|
|
21
|
+
readonly maxFieldSize?: number;
|
|
21
22
|
readonly maxFiles?: number;
|
|
22
23
|
readonly maxFields?: number;
|
|
24
|
+
readonly maxParts?: number;
|
|
23
25
|
readonly encoding?: BufferEncoding;
|
|
26
|
+
/**
|
|
27
|
+
* Skip a part that carries no `Content-Disposition` field name instead of
|
|
28
|
+
* rejecting the whole body. Defaults to `false` (reject).
|
|
29
|
+
*/
|
|
30
|
+
readonly allowUnnamedParts?: boolean;
|
|
24
31
|
}
|
|
25
32
|
export interface MultipartPartHeaders {
|
|
26
33
|
readonly contentDisposition?: string;
|
|
27
34
|
readonly contentType?: string;
|
|
28
35
|
readonly contentTransferEncoding?: string;
|
|
29
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* One decoded part of a multipart body.
|
|
39
|
+
*
|
|
40
|
+
* This is the single representation every multipart entry point in the
|
|
41
|
+
* package is built on, so the field names, file names and bytes a caller sees
|
|
42
|
+
* cannot depend on which entry point they happened to use.
|
|
43
|
+
*/
|
|
44
|
+
export interface MultipartPart {
|
|
45
|
+
readonly name: string;
|
|
46
|
+
readonly filename?: string;
|
|
47
|
+
readonly contentType?: string;
|
|
48
|
+
readonly transferEncoding?: string;
|
|
49
|
+
readonly data: Buffer;
|
|
50
|
+
}
|
|
30
51
|
export declare const DEFAULT_MULTIPART_LIMIT: number;
|
|
31
52
|
export declare const DEFAULT_MULTIPART_FILE_LIMIT: number;
|
|
53
|
+
export declare const DEFAULT_MULTIPART_FIELD_LIMIT: number;
|
|
32
54
|
export declare const DEFAULT_MULTIPART_MAX_FILES = 20;
|
|
33
55
|
export declare const DEFAULT_MULTIPART_MAX_FIELDS = 100;
|
|
56
|
+
/**
|
|
57
|
+
* Hard cap on the number of parts scanned out of one body, applied before any
|
|
58
|
+
* part is decoded so a body made entirely of empty delimiters cannot allocate
|
|
59
|
+
* without bound.
|
|
60
|
+
*/
|
|
61
|
+
export declare const DEFAULT_MULTIPART_MAX_PARTS = 1000;
|
|
62
|
+
/**
|
|
63
|
+
* Longest filename retained after sanitisation, in bytes.
|
|
64
|
+
*
|
|
65
|
+
* `NAME_MAX` is 255 on every mainstream filesystem; a longer name produces an
|
|
66
|
+
* `ENAMETOOLONG` that most upload handlers turn into a 500.
|
|
67
|
+
*/
|
|
68
|
+
export declare const MAX_FILENAME_BYTES = 255;
|
|
34
69
|
export declare function parseMultipart(request: IncomingMessage, options?: MultipartOptions): Promise<MultipartForm>;
|
|
70
|
+
/**
|
|
71
|
+
* Splits a multipart body into its parts.
|
|
72
|
+
*
|
|
73
|
+
* The delimiter is matched only where RFC 2046 §5.1.1 allows one — at the
|
|
74
|
+
* very start of the body, or immediately after a CRLF — so a `--boundary`
|
|
75
|
+
* sequence occurring inside a part's content cannot forge a new part or
|
|
76
|
+
* truncate the body. A body whose closing delimiter is missing is rejected
|
|
77
|
+
* rather than silently treated as complete.
|
|
78
|
+
*/
|
|
79
|
+
export declare function parseMultipartParts(body: Buffer, boundary: string, options?: MultipartOptions): MultipartPart[];
|
|
35
80
|
export declare function parseMultipartBuffer(body: Buffer, boundary: string, options?: MultipartOptions): MultipartForm;
|
|
36
81
|
export declare function getMultipartContentType(request: IncomingMessage): string | undefined;
|
|
37
82
|
export declare function isMultipartRequest(request: IncomingMessage): boolean;
|
|
38
83
|
export declare function extractBoundary(contentType: string | undefined): string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Reduces an uploaded filename to a safe basename.
|
|
86
|
+
*
|
|
87
|
+
* Neutralises every form of path escape the name can carry: POSIX and Windows
|
|
88
|
+
* separators, the `.` and `..` entries (which `path.join` resolves to the
|
|
89
|
+
* upload directory and its **parent**), a Windows drive-relative prefix such
|
|
90
|
+
* as `C:evil.txt`, control characters including NUL, and a name long enough
|
|
91
|
+
* to blow past `NAME_MAX`. A name that reduces to nothing usable is replaced
|
|
92
|
+
* with a generated one rather than returned empty.
|
|
93
|
+
*/
|
|
39
94
|
export declare function sanitizeFilename(filename: string): string;
|
|
40
95
|
import { MultipartError, MultipartParseError, MultipartLimitError } from "@zudojs/errors";
|
|
41
96
|
export { MultipartError, MultipartParseError, MultipartLimitError };
|