@inversifyjs/http-core 1.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +95 -0
- package/README.md +1 -1
- package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts +7 -1
- package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts.map +1 -1
- package/lib/cjs/error/models/InversifyHttpAdapterError.js +3 -1
- package/lib/cjs/error/models/InversifyHttpAdapterError.js.map +1 -1
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts +3 -2
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts.map +1 -1
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js +3 -2
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js.map +1 -1
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.d.ts +4 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.d.ts.map +1 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.js +14 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.js.map +1 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.spec.d.ts +2 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.spec.d.ts.map +1 -0
- package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts +30 -15
- package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts.map +1 -1
- package/lib/cjs/http/adapter/InversifyHttpAdapter.js +273 -84
- package/lib/cjs/http/adapter/InversifyHttpAdapter.js.map +1 -1
- package/lib/cjs/http/calculations/buildInterceptedHandler.d.ts +7 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.js +57 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.js.map +1 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.d.ts +2 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.js +10 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.js.map +1 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.d.ts +7 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.js +29 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.js.map +1 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.d.ts +2 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.js +17 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.js.map +1 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.d.ts +5 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.d.ts.map +1 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.js +9 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.js.map +1 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.spec.d.ts.map +1 -0
- package/lib/cjs/http/{decorators/RequestMethod.d.ts → calculations/requestMethod.d.ts} +1 -1
- package/lib/cjs/http/calculations/requestMethod.d.ts.map +1 -0
- package/lib/cjs/http/calculations/requestMethod.js +17 -0
- package/lib/cjs/http/calculations/requestMethod.js.map +1 -0
- package/lib/cjs/http/calculations/requestMethod.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/requestMethod.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/requestParam.d.ts +3 -0
- package/lib/cjs/http/calculations/requestParam.d.ts.map +1 -0
- package/lib/cjs/http/calculations/requestParam.js +24 -0
- package/lib/cjs/http/calculations/requestParam.js.map +1 -0
- package/lib/cjs/http/calculations/requestParam.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/requestParam.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/All.d.ts +1 -1
- package/lib/cjs/http/decorators/All.d.ts.map +1 -1
- package/lib/cjs/http/decorators/All.js +5 -4
- package/lib/cjs/http/decorators/All.js.map +1 -1
- package/lib/cjs/http/decorators/Body.d.ts +4 -1
- package/lib/cjs/http/decorators/Body.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Body.js +5 -4
- package/lib/cjs/http/decorators/Body.js.map +1 -1
- package/lib/cjs/http/decorators/Controller.d.ts +1 -1
- package/lib/cjs/http/decorators/Controller.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Controller.js +16 -13
- package/lib/cjs/http/decorators/Controller.js.map +1 -1
- package/lib/cjs/http/decorators/Cookies.d.ts +4 -1
- package/lib/cjs/http/decorators/Cookies.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Cookies.js +5 -4
- package/lib/cjs/http/decorators/Cookies.js.map +1 -1
- package/lib/cjs/http/decorators/Delete.d.ts +1 -1
- package/lib/cjs/http/decorators/Delete.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Delete.js +5 -4
- package/lib/cjs/http/decorators/Delete.js.map +1 -1
- package/lib/cjs/http/decorators/Get.d.ts +1 -1
- package/lib/cjs/http/decorators/Get.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Get.js +5 -4
- package/lib/cjs/http/decorators/Get.js.map +1 -1
- package/lib/cjs/http/decorators/Head.d.ts +1 -1
- package/lib/cjs/http/decorators/Head.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Head.js +5 -4
- package/lib/cjs/http/decorators/Head.js.map +1 -1
- package/lib/cjs/http/decorators/Headers.d.ts +4 -1
- package/lib/cjs/http/decorators/Headers.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Headers.js +5 -4
- package/lib/cjs/http/decorators/Headers.js.map +1 -1
- package/lib/cjs/http/decorators/Next.d.ts +1 -1
- package/lib/cjs/http/decorators/Next.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Next.js +5 -4
- package/lib/cjs/http/decorators/Next.js.map +1 -1
- package/lib/cjs/http/decorators/Options.d.ts +1 -1
- package/lib/cjs/http/decorators/Options.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Options.js +5 -4
- package/lib/cjs/http/decorators/Options.js.map +1 -1
- package/lib/cjs/http/decorators/Params.d.ts +4 -1
- package/lib/cjs/http/decorators/Params.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Params.js +5 -4
- package/lib/cjs/http/decorators/Params.js.map +1 -1
- package/lib/cjs/http/decorators/Patch.d.ts +1 -1
- package/lib/cjs/http/decorators/Patch.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Patch.js +5 -4
- package/lib/cjs/http/decorators/Patch.js.map +1 -1
- package/lib/cjs/http/decorators/Post.d.ts +1 -1
- package/lib/cjs/http/decorators/Post.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Post.js +5 -4
- package/lib/cjs/http/decorators/Post.js.map +1 -1
- package/lib/cjs/http/decorators/Put.d.ts +1 -1
- package/lib/cjs/http/decorators/Put.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Put.js +5 -4
- package/lib/cjs/http/decorators/Put.js.map +1 -1
- package/lib/cjs/http/decorators/Query.d.ts +4 -1
- package/lib/cjs/http/decorators/Query.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Query.js +5 -4
- package/lib/cjs/http/decorators/Query.js.map +1 -1
- package/lib/cjs/http/decorators/Request.d.ts +3 -1
- package/lib/cjs/http/decorators/Request.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Request.js +5 -4
- package/lib/cjs/http/decorators/Request.js.map +1 -1
- package/lib/cjs/http/decorators/Response.d.ts +3 -1
- package/lib/cjs/http/decorators/Response.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Response.js +5 -4
- package/lib/cjs/http/decorators/Response.js.map +1 -1
- package/lib/cjs/http/decorators/SetHeader.d.ts +2 -0
- package/lib/cjs/http/decorators/SetHeader.d.ts.map +1 -0
- package/lib/cjs/http/decorators/SetHeader.js +13 -0
- package/lib/cjs/http/decorators/SetHeader.js.map +1 -0
- package/lib/cjs/http/decorators/SetHeader.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/SetHeader.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/StatusCode.d.ts +2 -2
- package/lib/cjs/http/decorators/StatusCode.d.ts.map +1 -1
- package/lib/cjs/http/decorators/StatusCode.js +5 -4
- package/lib/cjs/http/decorators/StatusCode.js.map +1 -1
- package/lib/cjs/http/models/ControllerOptions.d.ts +3 -1
- package/lib/cjs/http/models/ControllerOptions.d.ts.map +1 -1
- package/lib/cjs/http/models/ControllerResponse.d.ts +3 -2
- package/lib/cjs/http/models/ControllerResponse.d.ts.map +1 -1
- package/lib/cjs/http/models/CustomParameterDecoratorHandler.d.ts +2 -0
- package/lib/cjs/http/models/CustomParameterDecoratorHandler.d.ts.map +1 -0
- package/lib/cjs/http/models/CustomParameterDecoratorHandler.js +3 -0
- package/lib/cjs/http/models/CustomParameterDecoratorHandler.js.map +1 -0
- package/lib/cjs/http/models/HttpAdapterOptions.d.ts +5 -0
- package/lib/cjs/http/models/HttpAdapterOptions.d.ts.map +1 -0
- package/lib/cjs/http/models/HttpAdapterOptions.js +3 -0
- package/lib/cjs/http/models/HttpAdapterOptions.js.map +1 -0
- package/lib/cjs/http/models/HttpStatusCode.d.ts.map +1 -0
- package/lib/cjs/http/models/HttpStatusCode.js.map +1 -0
- package/lib/cjs/http/models/MiddlewareHandler.d.ts +2 -0
- package/lib/cjs/http/models/MiddlewareHandler.d.ts.map +1 -0
- package/lib/cjs/http/models/MiddlewareHandler.js +3 -0
- package/lib/cjs/http/models/MiddlewareHandler.js.map +1 -0
- package/lib/cjs/http/models/RequestHandler.d.ts +1 -1
- package/lib/cjs/http/models/RequestHandler.d.ts.map +1 -1
- package/lib/cjs/http/models/RequestMethodParameterType.d.ts +9 -8
- package/lib/cjs/http/models/RequestMethodParameterType.d.ts.map +1 -1
- package/lib/cjs/http/models/RequestMethodParameterType.js +9 -8
- package/lib/cjs/http/models/RequestMethodParameterType.js.map +1 -1
- package/lib/cjs/http/models/RequestMethodType.d.ts +8 -8
- package/lib/cjs/http/models/RequestMethodType.d.ts.map +1 -1
- package/lib/cjs/http/models/RequestMethodType.js +8 -8
- package/lib/cjs/http/models/RequestMethodType.js.map +1 -1
- package/lib/cjs/http/models/RequiredOptions.d.ts +4 -0
- package/lib/cjs/http/models/RequiredOptions.d.ts.map +1 -0
- package/lib/cjs/http/models/RequiredOptions.js +3 -0
- package/lib/cjs/http/models/RequiredOptions.js.map +1 -0
- package/lib/cjs/http/models/RouteParamOptions.d.ts +4 -0
- package/lib/cjs/http/models/RouteParamOptions.d.ts.map +1 -0
- package/lib/cjs/http/models/RouteParamOptions.js +3 -0
- package/lib/cjs/http/models/RouteParamOptions.js.map +1 -0
- package/lib/cjs/http/models/RouteParams.d.ts +12 -0
- package/lib/cjs/http/models/RouteParams.d.ts.map +1 -0
- package/lib/cjs/http/models/{Middleware.js → RouteParams.js} +1 -1
- package/lib/cjs/http/models/RouteParams.js.map +1 -0
- package/lib/cjs/http/models/RouterParams.d.ts +3 -6
- package/lib/cjs/http/models/RouterParams.d.ts.map +1 -1
- package/lib/cjs/httpResponse/calculations/isHttpResponse.d.ts +3 -0
- package/lib/cjs/httpResponse/calculations/isHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/calculations/isHttpResponse.js +10 -0
- package/lib/cjs/httpResponse/calculations/isHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/calculations/isHttpResponse.spec.d.ts +2 -0
- package/lib/cjs/httpResponse/calculations/isHttpResponse.spec.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/AcceptedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/AcceptedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/AcceptedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/AcceptedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/AlreadyReportedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/AlreadyReportedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/AlreadyReportedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/AlreadyReportedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/BadGatewayHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/BadRequestHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/BadRequestHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/ConflictHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/ConflictHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ContentDifferentHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/ContentDifferentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/ContentDifferentHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/ContentDifferentHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/CreatedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/CreatedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/CreatedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/CreatedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts +14 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.js +25 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.spec.d.ts +2 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.spec.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/ForbiddenHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/GatewayTimeoutHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/GoneHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/GoneHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/HttpResponse.d.ts +9 -0
- package/lib/cjs/httpResponse/models/HttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/HttpResponse.js +5 -0
- package/lib/cjs/httpResponse/models/HttpResponse.js.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/HttpVersionNotSupportedHttpResponse.d.ts +1 -1
- package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/HttpVersionNotSupportedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/InsufficientStorageHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/InternalServerErrorHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/LoopDetectedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/MethodNotAllowedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/MultiStatusHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/MultiStatusHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/MultiStatusHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/MultiStatusHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/NoContentHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/NoContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/NoContentHttpResponse.js +12 -0
- package/lib/cjs/httpResponse/models/NoContentHttpResponse.js.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/NonAuthoritativeInformationHttpResponse.d.ts +2 -2
- package/lib/cjs/httpResponse/models/NonAuthoritativeInformationHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/NonAuthoritativeInformationHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/NonAuthoritativeInformationHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/NotAcceptableHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/NotFoundHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/NotFoundHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/NotImplementedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/OkHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/OkHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/OkHttpResponse.js +12 -0
- package/lib/cjs/httpResponse/models/OkHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/PartialContentHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/PartialContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/PartialContentHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/PartialContentHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/PaymentRequiredHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ResetContentHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/ResetContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/ResetContentHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/ResetContentHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/ServiceUnavailableHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts +14 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.js +24 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.spec.d.ts +2 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.spec.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/UnauthorizedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js +12 -0
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js.map +1 -0
- package/lib/cjs/index.d.ts +67 -51
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +86 -62
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts +4 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js +16 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts +4 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js +15 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts +4 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js +21 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts +5 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js +49 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts +5 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js +8 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.d.ts +3 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.js +9 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.js +14 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.d.ts +3 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.js +9 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.d.ts +3 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.js +9 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.d.ts +3 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.js +9 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.js +9 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/ControllerMetadata.d.ts +7 -0
- package/lib/cjs/routerExplorer/model/ControllerMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/ControllerMetadata.js.map +1 -0
- package/lib/cjs/{http/models → routerExplorer/model}/ControllerMethodMetadata.d.ts +1 -1
- package/lib/cjs/routerExplorer/model/ControllerMethodMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/ControllerMethodMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/model/ControllerMethodParameterMetadata.d.ts +11 -0
- package/lib/cjs/routerExplorer/model/ControllerMethodParameterMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/ControllerMethodParameterMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.d.ts +9 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.js +4 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.d.ts +20 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.js +3 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.js.map +1 -0
- package/lib/esm/index.d.ts +191 -103
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/package.json +24 -23
- package/lib/cjs/http/decorators/ApplyMiddleware.d.ts +0 -2
- package/lib/cjs/http/decorators/ApplyMiddleware.d.ts.map +0 -1
- package/lib/cjs/http/decorators/ApplyMiddleware.js +0 -30
- package/lib/cjs/http/decorators/ApplyMiddleware.js.map +0 -1
- package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts +0 -2
- package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts.map +0 -1
- package/lib/cjs/http/decorators/RequestMethod.d.ts.map +0 -1
- package/lib/cjs/http/decorators/RequestMethod.js +0 -23
- package/lib/cjs/http/decorators/RequestMethod.js.map +0 -1
- package/lib/cjs/http/decorators/RequestMethod.spec.d.ts +0 -2
- package/lib/cjs/http/decorators/RequestMethod.spec.d.ts.map +0 -1
- package/lib/cjs/http/decorators/RequestParam.d.ts +0 -3
- package/lib/cjs/http/decorators/RequestParam.d.ts.map +0 -1
- package/lib/cjs/http/decorators/RequestParam.js +0 -41
- package/lib/cjs/http/decorators/RequestParam.js.map +0 -1
- package/lib/cjs/http/decorators/RequestParam.spec.d.ts +0 -2
- package/lib/cjs/http/decorators/RequestParam.spec.d.ts.map +0 -1
- package/lib/cjs/http/models/ControllerMetadata.d.ts +0 -6
- package/lib/cjs/http/models/ControllerMetadata.d.ts.map +0 -1
- package/lib/cjs/http/models/ControllerMetadata.js.map +0 -1
- package/lib/cjs/http/models/ControllerMethodMetadata.d.ts.map +0 -1
- package/lib/cjs/http/models/ControllerMethodMetadata.js.map +0 -1
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts +0 -7
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts.map +0 -1
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.js.map +0 -1
- package/lib/cjs/http/models/Middleware.d.ts +0 -4
- package/lib/cjs/http/models/Middleware.d.ts.map +0 -1
- package/lib/cjs/http/models/Middleware.js.map +0 -1
- package/lib/cjs/http/responses/HttpResponse.d.ts +0 -11
- package/lib/cjs/http/responses/HttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/HttpResponse.js +0 -21
- package/lib/cjs/http/responses/HttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/HttpStatusCode.d.ts.map +0 -1
- package/lib/cjs/http/responses/HttpStatusCode.js.map +0 -1
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/ConflictHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts +0 -6
- package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/ErrorHttpResponse.js +0 -11
- package/lib/cjs/http/responses/error/ErrorHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/GoneHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/CreatedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/NoContentHttpResponse.js +0 -12
- package/lib/cjs/http/responses/success/NoContentHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/OkHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/OkHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/OkHttpResponse.js +0 -12
- package/lib/cjs/http/responses/success/OkHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.js.map +0 -1
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts +0 -2
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts.map +0 -1
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js +0 -5
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js.map +0 -1
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts +0 -2
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts.map +0 -1
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js +0 -5
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js.map +0 -1
- /package/lib/cjs/http/{responses → models}/HttpStatusCode.d.ts +0 -0
- /package/lib/cjs/http/{responses → models}/HttpStatusCode.js +0 -0
- /package/lib/cjs/{http/models → routerExplorer/model}/ControllerMetadata.js +0 -0
- /package/lib/cjs/{http/models → routerExplorer/model}/ControllerMethodMetadata.js +0 -0
- /package/lib/cjs/{http/models → routerExplorer/model}/ControllerMethodParameterMetadata.js +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# @inversifyjs/http-core
|
|
2
|
+
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
## 2.0.0
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- Added `ApplyMiddleware` decorator
|
|
10
|
+
- Added `AlreadyReportedHttpResponse`
|
|
11
|
+
- Added `ContentDifferentHttpResponse`
|
|
12
|
+
- Added `ConflictHttpResponse`
|
|
13
|
+
- Added `BadRequestHttpResponse`
|
|
14
|
+
- Added `BadGatewayHttpResponse`
|
|
15
|
+
- Added `Controller` decorator
|
|
16
|
+
- Added `All` decorator
|
|
17
|
+
- Added `AcceptedHttpResponse`
|
|
18
|
+
- Added `Body` decorator
|
|
19
|
+
- Added `CreatedHttpResponse`
|
|
20
|
+
- Added `CatchError` decorator
|
|
21
|
+
- Added `Delete` decorator
|
|
22
|
+
- Added `buildNormalizedPath`
|
|
23
|
+
- Added `createCustomParameterDecorator`
|
|
24
|
+
- Added `Cookies` decorator
|
|
25
|
+
- Added `ErrorHttpResponse`
|
|
26
|
+
- Added `ForbiddenHttpResponse`
|
|
27
|
+
- Added `GatewayTimeoutHttpResponse`
|
|
28
|
+
- Added `Get` decorator
|
|
29
|
+
- Added `getControllerMetadataList`
|
|
30
|
+
- Added `getControllerMethodMetadataList`
|
|
31
|
+
- Added `GoneHttpResponse`
|
|
32
|
+
- Added `Head` decorator
|
|
33
|
+
- Added `Headers` decorator
|
|
34
|
+
- Added `HttpResponse` decorator
|
|
35
|
+
- Added `HttpStatusCode` decorator
|
|
36
|
+
- Added `HttpVersionNotSupportedHttpResponse`
|
|
37
|
+
- Added `InsufficientStorageHttpResponse`
|
|
38
|
+
- Added `InternalServerErrorHttpResponse`
|
|
39
|
+
- Added `InversifyHttpAdapter`
|
|
40
|
+
- Added `isHttpResponse`
|
|
41
|
+
- Added `LoopDetectedHttpResponse`
|
|
42
|
+
- Added `MethodNotAllowedHttpResponse`
|
|
43
|
+
- Added `MiddlewarePhase`
|
|
44
|
+
- Added `MultiStatusHttpResponse`
|
|
45
|
+
- Added `Next` decorator
|
|
46
|
+
- Added `NoContentHttpResponse`
|
|
47
|
+
- Added `NonAuthoritativeInformationHttpResponse`
|
|
48
|
+
- Added `NotAcceptableHttpResponse`
|
|
49
|
+
- Added `NotFoundHttpResponse`
|
|
50
|
+
- Added `NotImplementedHttpResponse`
|
|
51
|
+
- Added `OkHttpResponse`
|
|
52
|
+
- Added `Options` decorator
|
|
53
|
+
- Added `Params` decorator
|
|
54
|
+
- Added `PartialContentHttpResponse`
|
|
55
|
+
- Added `Patch` decorator
|
|
56
|
+
- Added `PaymentRequiredHttpResponse`
|
|
57
|
+
- Added `Post` decorator
|
|
58
|
+
- Added `Put` decorator
|
|
59
|
+
- Added `Query` decorator
|
|
60
|
+
- Added `Request` decorator
|
|
61
|
+
- Added `RequestMethodParameterType`
|
|
62
|
+
- Added `RequestMethodType`
|
|
63
|
+
- Added `ResetContentHttpResponse`
|
|
64
|
+
- Added `Response` decorator
|
|
65
|
+
- Added `ServiceUnavailableHttpResponse`
|
|
66
|
+
- Added `SetHeader` decorator
|
|
67
|
+
- Added `StatusCode` decorator
|
|
68
|
+
- Added `UnauthorizedHttpResponse`
|
|
69
|
+
- Added `UnprocessableEntityHttpResponse`
|
|
70
|
+
- Added `UseErrorFilter` decorator
|
|
71
|
+
- Added `UseGuard` decorator
|
|
72
|
+
- Added `UseInterceptor` decorator
|
|
73
|
+
- Added `CatchErrorOptions` type
|
|
74
|
+
- Added `ControllerMetadata` type
|
|
75
|
+
- Added `ControllerMethodMetadata` type
|
|
76
|
+
- Added `ErrorFilter` type
|
|
77
|
+
- Added `Guard` type
|
|
78
|
+
- Added `HttpAdapterOptions` type
|
|
79
|
+
- Added `Interceptor` type
|
|
80
|
+
- Added `InterceptorTransformObject` type
|
|
81
|
+
- Added `Middleware` type
|
|
82
|
+
- Added `MiddlewareHandler` type
|
|
83
|
+
- Added `Pipe` type
|
|
84
|
+
- Added `PipeMetadata` type
|
|
85
|
+
- Added `RequestHandler` type
|
|
86
|
+
- Added `RequiredOptions` type
|
|
87
|
+
- Added `RouteParamOptions` type
|
|
88
|
+
- Added `RouteParams` type
|
|
89
|
+
- Added `RouterParams` type
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- Updated dependencies
|
|
94
|
+
- @inversifyjs/framework-core@1.0.0
|
|
95
|
+
- @inversifyjs/logger@1.1.0
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[](https://codecov.io/gh/inversify/monorepo/branch/main/graph/badge.svg?flag=%40inversifyjs%2Fhttp-core)
|
|
2
|
-
[](https://www.npmjs.com/package/@inversifyjs/http-core)
|
|
3
3
|
|
|
4
4
|
# @inversifyjs/http-core
|
|
5
5
|
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { HttpResponse } from '../../httpResponse/models/HttpResponse';
|
|
1
2
|
import { InversifyHttpAdapterErrorKind } from './InversifyHttpAdapterErrorKind';
|
|
2
3
|
declare const isHttpAdapterErrorSymbol: unique symbol;
|
|
3
4
|
export declare class InversifyHttpAdapterError extends Error {
|
|
4
5
|
readonly kind: InversifyHttpAdapterErrorKind;
|
|
6
|
+
readonly extraData?: {
|
|
7
|
+
response: HttpResponse | undefined;
|
|
8
|
+
} | undefined;
|
|
5
9
|
[isHttpAdapterErrorSymbol]: true;
|
|
6
|
-
constructor(kind: InversifyHttpAdapterErrorKind, message?: string, options?: ErrorOptions
|
|
10
|
+
constructor(kind: InversifyHttpAdapterErrorKind, message?: string, options?: ErrorOptions, extraData?: {
|
|
11
|
+
response: HttpResponse | undefined;
|
|
12
|
+
} | undefined);
|
|
7
13
|
static is(value: unknown): value is InversifyHttpAdapterError;
|
|
8
14
|
static isErrorOfKind(value: unknown, kind: InversifyHttpAdapterErrorKind): value is InversifyHttpAdapterError;
|
|
9
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InversifyHttpAdapterError.d.ts","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,QAAA,MAAM,wBAAwB,EAAE,OAAO,MAEtC,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,KAAK;aAIhC,IAAI,EAAE,6BAA6B;
|
|
1
|
+
{"version":3,"file":"InversifyHttpAdapterError.d.ts","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,QAAA,MAAM,wBAAwB,EAAE,OAAO,MAEtC,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,KAAK;aAIhC,IAAI,EAAE,6BAA6B;aAGnC,SAAS,CAAC,EAAE;QAAE,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;KAAE;IAN7D,CAAC,wBAAwB,CAAC,EAAE,IAAI,CAAC;gBAGtB,IAAI,EAAE,6BAA6B,EACnD,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,YAAY,EACN,SAAS,CAAC,EAAE;QAAE,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;KAAE,YAAA;WAMtD,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,yBAAyB;WAStD,aAAa,CACzB,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,6BAA6B,GAClC,KAAK,IAAI,yBAAyB;CAGtC"}
|
|
@@ -4,10 +4,12 @@ exports.InversifyHttpAdapterError = void 0;
|
|
|
4
4
|
const isHttpAdapterErrorSymbol = Symbol.for('@inversifyjs/http-core/InversifyHttpAdapterError');
|
|
5
5
|
class InversifyHttpAdapterError extends Error {
|
|
6
6
|
kind;
|
|
7
|
+
extraData;
|
|
7
8
|
[isHttpAdapterErrorSymbol];
|
|
8
|
-
constructor(kind, message, options) {
|
|
9
|
+
constructor(kind, message, options, extraData) {
|
|
9
10
|
super(message, options);
|
|
10
11
|
this.kind = kind;
|
|
12
|
+
this.extraData = extraData;
|
|
11
13
|
this[isHttpAdapterErrorSymbol] = true;
|
|
12
14
|
}
|
|
13
15
|
static is(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InversifyHttpAdapterError.js","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterError.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"InversifyHttpAdapterError.js","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterError.ts"],"names":[],"mappings":";;;AAGA,MAAM,wBAAwB,GAAkB,MAAM,CAAC,GAAG,CACxD,kDAAkD,CACnD,CAAC;AAEF,MAAa,yBAA0B,SAAQ,KAAK;IAIhC;IAGA;IANX,CAAC,wBAAwB,CAAC,CAAO;IAExC,YACkB,IAAmC,EACnD,OAAgB,EAChB,OAAsB,EACN,SAAkD;QAElE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QALR,SAAI,GAAJ,IAAI,CAA+B;QAGnC,cAAS,GAAT,SAAS,CAAyC;QAGlE,IAAI,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;IACxC,CAAC;IAEM,MAAM,CAAC,EAAE,CAAC,KAAc;QAC7B,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;YACzB,KAAK,KAAK,IAAI;YACb,KAA0C,CAAC,wBAAwB,CAAC;gBACnE,IAAI,CACP,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,aAAa,CACzB,KAAc,EACd,IAAmC;QAEnC,OAAO,yBAAyB,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;IACpE,CAAC;CACF;AA5BD,8DA4BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InversifyHttpAdapterErrorKind.d.ts","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterErrorKind.ts"],"names":[],"mappings":"AAAA,oBAAY,6BAA6B;IACvC,iBAAiB,IAAA;IACjB,wBAAwB,IAAA;CACzB"}
|
|
1
|
+
{"version":3,"file":"InversifyHttpAdapterErrorKind.d.ts","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterErrorKind.ts"],"names":[],"mappings":"AAAA,oBAAY,6BAA6B;IACvC,0BAA0B,IAAA;IAC1B,iBAAiB,IAAA;IACjB,wBAAwB,IAAA;CACzB"}
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.InversifyHttpAdapterErrorKind = void 0;
|
|
4
4
|
var InversifyHttpAdapterErrorKind;
|
|
5
5
|
(function (InversifyHttpAdapterErrorKind) {
|
|
6
|
-
InversifyHttpAdapterErrorKind[InversifyHttpAdapterErrorKind["
|
|
7
|
-
InversifyHttpAdapterErrorKind[InversifyHttpAdapterErrorKind["
|
|
6
|
+
InversifyHttpAdapterErrorKind[InversifyHttpAdapterErrorKind["invalidOperationAfterBuild"] = 0] = "invalidOperationAfterBuild";
|
|
7
|
+
InversifyHttpAdapterErrorKind[InversifyHttpAdapterErrorKind["noControllerFound"] = 1] = "noControllerFound";
|
|
8
|
+
InversifyHttpAdapterErrorKind[InversifyHttpAdapterErrorKind["requestParamIncorrectUse"] = 2] = "requestParamIncorrectUse";
|
|
8
9
|
})(InversifyHttpAdapterErrorKind || (exports.InversifyHttpAdapterErrorKind = InversifyHttpAdapterErrorKind = {}));
|
|
9
10
|
//# sourceMappingURL=InversifyHttpAdapterErrorKind.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InversifyHttpAdapterErrorKind.js","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterErrorKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"InversifyHttpAdapterErrorKind.js","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterErrorKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,6HAA0B,CAAA;IAC1B,2GAAiB,CAAA;IACjB,yHAAwB,CAAA;AAC1B,CAAC,EAJW,6BAA6B,6CAA7B,6BAA6B,QAIxC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ErrorFilter } from '@inversifyjs/framework-core';
|
|
2
|
+
import { Newable } from 'inversify';
|
|
3
|
+
export declare function setErrorFilterToErrorFilterMap(errorTypeToErrorFilterMap: Map<Newable<Error> | null, Newable<ErrorFilter>>, errorFilter: Newable<ErrorFilter>): void;
|
|
4
|
+
//# sourceMappingURL=setErrorFilterToErrorFilterMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setErrorFilterToErrorFilterMap.d.ts","sourceRoot":"","sources":["../../../../src/http/actions/setErrorFilterToErrorFilterMap.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,wBAAgB,8BAA8B,CAC5C,yBAAyB,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,EAC3E,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,GAChC,IAAI,CAYN"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setErrorFilterToErrorFilterMap = setErrorFilterToErrorFilterMap;
|
|
4
|
+
const framework_core_1 = require("@inversifyjs/framework-core");
|
|
5
|
+
function setErrorFilterToErrorFilterMap(errorTypeToErrorFilterMap, errorFilter) {
|
|
6
|
+
const errorTypes = (0, framework_core_1.getCatchErrorMetadata)(errorFilter);
|
|
7
|
+
for (const errorType of errorTypes) {
|
|
8
|
+
const existingErrorFilter = errorTypeToErrorFilterMap.get(errorType);
|
|
9
|
+
if (existingErrorFilter === undefined) {
|
|
10
|
+
errorTypeToErrorFilterMap.set(errorType, errorFilter);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=setErrorFilterToErrorFilterMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setErrorFilterToErrorFilterMap.js","sourceRoot":"","sources":["../../../../src/http/actions/setErrorFilterToErrorFilterMap.ts"],"names":[],"mappings":";;AAMA,wEAeC;AArBD,gEAGqC;AAGrC,SAAgB,8BAA8B,CAC5C,yBAA2E,EAC3E,WAAiC;IAEjC,MAAM,UAAU,GACd,IAAA,sCAAqB,EAAC,WAAW,CAAC,CAAC;IAErC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,mBAAmB,GACvB,yBAAyB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAE3C,IAAI,mBAAmB,KAAK,SAAS,EAAE,CAAC;YACtC,yBAAyB,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setErrorFilterToErrorFilterMap.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/actions/setErrorFilterToErrorFilterMap.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Readable } from 'node:stream';
|
|
2
|
+
import { ApplyMiddlewareOptions, ErrorFilter, Guard, Interceptor, Middleware, Pipe } from '@inversifyjs/framework-core';
|
|
3
|
+
import { Container, Newable, ServiceIdentifier } from 'inversify';
|
|
4
|
+
import { HttpAdapterOptions } from '../models/HttpAdapterOptions';
|
|
5
|
+
import { HttpStatusCode } from '../models/HttpStatusCode';
|
|
6
|
+
import { RequestMethodParameterType } from '../models/RequestMethodParameterType';
|
|
7
|
+
import { RequiredOptions } from '../models/RequiredOptions';
|
|
3
8
|
import { RouterParams } from '../models/RouterParams';
|
|
4
|
-
|
|
5
|
-
export declare abstract class InversifyHttpAdapter<TRequest, TResponse, TNextFunction extends (err?: unknown) => void> {
|
|
9
|
+
export declare abstract class InversifyHttpAdapter<TRequest, TResponse, TNextFunction extends (err?: any) => Promise<void> | void, TResult, TOptions extends HttpAdapterOptions = HttpAdapterOptions> {
|
|
6
10
|
#private;
|
|
7
|
-
|
|
8
|
-
protected
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
protected readonly httpAdapterOptions: RequiredOptions<TOptions>;
|
|
12
|
+
protected readonly globalHandlers: {
|
|
13
|
+
interceptorList: Interceptor<TRequest, TResponse>[];
|
|
14
|
+
};
|
|
15
|
+
constructor(container: Container, defaultHttpAdapterOptions: RequiredOptions<TOptions>, httpAdapterOptions: TOptions | undefined, awaitableRequestMethodParamTypes?: Iterable<RequestMethodParameterType> | undefined);
|
|
16
|
+
applyGlobalMiddleware(...middlewareList: (Newable<Middleware> | ApplyMiddlewareOptions)[]): void;
|
|
17
|
+
useGlobalFilters(...errorFilterList: Newable<ErrorFilter>[]): void;
|
|
18
|
+
applyGlobalGuards(...guardList: ServiceIdentifier<Guard<TRequest>>[]): void;
|
|
19
|
+
useGlobalInterceptors(...interceptorList: ServiceIdentifier<Interceptor<TRequest, TResponse>>[]): void;
|
|
20
|
+
useGlobalPipe(...pipeList: (ServiceIdentifier<Pipe> | Pipe)[]): void;
|
|
21
|
+
protected _buildServer(): Promise<void>;
|
|
22
|
+
abstract build(): Promise<unknown>;
|
|
23
|
+
protected abstract _getBody(request: TRequest, parameterName?: string): unknown;
|
|
24
|
+
protected abstract _getParams(request: TRequest, parameterName?: string): unknown;
|
|
25
|
+
protected abstract _getQuery(request: TRequest, parameterName?: string): unknown;
|
|
26
|
+
protected abstract _getHeaders(request: TRequest, parameterName?: string): unknown;
|
|
27
|
+
protected abstract _getCookies(request: TRequest, response: TResponse, parameterName?: string): unknown;
|
|
28
|
+
protected abstract _replyText(request: TRequest, response: TResponse, value: string): TResult;
|
|
29
|
+
protected abstract _replyJson(request: TRequest, response: TResponse, value?: object): TResult;
|
|
30
|
+
protected abstract _replyStream(request: TRequest, response: TResponse, value: Readable): TResult;
|
|
17
31
|
protected abstract _setStatus(request: TRequest, response: TResponse, statusCode: HttpStatusCode): void;
|
|
18
|
-
protected abstract
|
|
32
|
+
protected abstract _setHeader(request: TRequest, response: TResponse, key: string, value: string): void;
|
|
33
|
+
protected abstract _buildRouter(routerParams: RouterParams<TRequest, TResponse, TNextFunction, TResult>): void | Promise<void>;
|
|
19
34
|
}
|
|
20
35
|
//# sourceMappingURL=InversifyHttpAdapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InversifyHttpAdapter.d.ts","sourceRoot":"","sources":["../../../../src/http/adapter/InversifyHttpAdapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InversifyHttpAdapter.d.ts","sourceRoot":"","sources":["../../../../src/http/adapter/InversifyHttpAdapter.ts"],"names":[],"mappings":"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"}
|