@inversifyjs/http-core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +6 -0
- package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts +11 -0
- package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts.map +1 -0
- package/lib/cjs/error/models/InversifyHttpAdapterError.js +24 -0
- package/lib/cjs/error/models/InversifyHttpAdapterError.js.map +1 -0
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts +5 -0
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts.map +1 -0
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js +9 -0
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js.map +1 -0
- package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts +20 -0
- package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts.map +1 -0
- package/lib/cjs/http/adapter/InversifyHttpAdapter.js +136 -0
- package/lib/cjs/http/adapter/InversifyHttpAdapter.js.map +1 -0
- package/lib/cjs/http/decorators/All.d.ts +2 -0
- package/lib/cjs/http/decorators/All.d.ts.map +1 -0
- package/lib/cjs/http/decorators/All.js +8 -0
- package/lib/cjs/http/decorators/All.js.map +1 -0
- package/lib/cjs/http/decorators/All.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/All.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.d.ts +2 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.d.ts.map +1 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.js +30 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.js.map +1 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Body.d.ts +2 -0
- package/lib/cjs/http/decorators/Body.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Body.js +9 -0
- package/lib/cjs/http/decorators/Body.js.map +1 -0
- package/lib/cjs/http/decorators/Body.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Body.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Controller.d.ts +3 -0
- package/lib/cjs/http/decorators/Controller.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Controller.js +31 -0
- package/lib/cjs/http/decorators/Controller.js.map +1 -0
- package/lib/cjs/http/decorators/Controller.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Controller.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Cookies.d.ts +2 -0
- package/lib/cjs/http/decorators/Cookies.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Cookies.js +9 -0
- package/lib/cjs/http/decorators/Cookies.js.map +1 -0
- package/lib/cjs/http/decorators/Cookies.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Cookies.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Delete.d.ts +2 -0
- package/lib/cjs/http/decorators/Delete.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Delete.js +8 -0
- package/lib/cjs/http/decorators/Delete.js.map +1 -0
- package/lib/cjs/http/decorators/Delete.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Delete.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Get.d.ts +2 -0
- package/lib/cjs/http/decorators/Get.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Get.js +8 -0
- package/lib/cjs/http/decorators/Get.js.map +1 -0
- package/lib/cjs/http/decorators/Get.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Get.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Head.d.ts +2 -0
- package/lib/cjs/http/decorators/Head.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Head.js +8 -0
- package/lib/cjs/http/decorators/Head.js.map +1 -0
- package/lib/cjs/http/decorators/Head.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Head.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Headers.d.ts +2 -0
- package/lib/cjs/http/decorators/Headers.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Headers.js +9 -0
- package/lib/cjs/http/decorators/Headers.js.map +1 -0
- package/lib/cjs/http/decorators/Headers.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Headers.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Next.d.ts +2 -0
- package/lib/cjs/http/decorators/Next.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Next.js +9 -0
- package/lib/cjs/http/decorators/Next.js.map +1 -0
- package/lib/cjs/http/decorators/Next.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Next.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Options.d.ts +2 -0
- package/lib/cjs/http/decorators/Options.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Options.js +8 -0
- package/lib/cjs/http/decorators/Options.js.map +1 -0
- package/lib/cjs/http/decorators/Options.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Options.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Params.d.ts +2 -0
- package/lib/cjs/http/decorators/Params.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Params.js +9 -0
- package/lib/cjs/http/decorators/Params.js.map +1 -0
- package/lib/cjs/http/decorators/Params.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Params.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Patch.d.ts +2 -0
- package/lib/cjs/http/decorators/Patch.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Patch.js +8 -0
- package/lib/cjs/http/decorators/Patch.js.map +1 -0
- package/lib/cjs/http/decorators/Patch.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Patch.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Post.d.ts +2 -0
- package/lib/cjs/http/decorators/Post.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Post.js +8 -0
- package/lib/cjs/http/decorators/Post.js.map +1 -0
- package/lib/cjs/http/decorators/Post.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Post.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Put.d.ts +2 -0
- package/lib/cjs/http/decorators/Put.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Put.js +8 -0
- package/lib/cjs/http/decorators/Put.js.map +1 -0
- package/lib/cjs/http/decorators/Put.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Put.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Query.d.ts +2 -0
- package/lib/cjs/http/decorators/Query.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Query.js +9 -0
- package/lib/cjs/http/decorators/Query.js.map +1 -0
- package/lib/cjs/http/decorators/Query.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Query.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Request.d.ts +2 -0
- package/lib/cjs/http/decorators/Request.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Request.js +9 -0
- package/lib/cjs/http/decorators/Request.js.map +1 -0
- package/lib/cjs/http/decorators/Request.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Request.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/RequestMethod.d.ts +3 -0
- package/lib/cjs/http/decorators/RequestMethod.d.ts.map +1 -0
- package/lib/cjs/http/decorators/RequestMethod.js +23 -0
- package/lib/cjs/http/decorators/RequestMethod.js.map +1 -0
- package/lib/cjs/http/decorators/RequestMethod.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/RequestMethod.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/RequestParam.d.ts +3 -0
- package/lib/cjs/http/decorators/RequestParam.d.ts.map +1 -0
- package/lib/cjs/http/decorators/RequestParam.js +41 -0
- package/lib/cjs/http/decorators/RequestParam.js.map +1 -0
- package/lib/cjs/http/decorators/RequestParam.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/RequestParam.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Response.d.ts +2 -0
- package/lib/cjs/http/decorators/Response.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Response.js +9 -0
- package/lib/cjs/http/decorators/Response.js.map +1 -0
- package/lib/cjs/http/decorators/Response.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Response.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/StatusCode.d.ts +3 -0
- package/lib/cjs/http/decorators/StatusCode.d.ts.map +1 -0
- package/lib/cjs/http/decorators/StatusCode.js +11 -0
- package/lib/cjs/http/decorators/StatusCode.js.map +1 -0
- package/lib/cjs/http/decorators/StatusCode.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/StatusCode.spec.d.ts.map +1 -0
- package/lib/cjs/http/models/Controller.d.ts +5 -0
- package/lib/cjs/http/models/Controller.d.ts.map +1 -0
- package/lib/cjs/http/models/Controller.js +3 -0
- package/lib/cjs/http/models/Controller.js.map +1 -0
- package/lib/cjs/http/models/ControllerFunction.d.ts +3 -0
- package/lib/cjs/http/models/ControllerFunction.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerFunction.js +3 -0
- package/lib/cjs/http/models/ControllerFunction.js.map +1 -0
- package/lib/cjs/http/models/ControllerMetadata.d.ts +6 -0
- package/lib/cjs/http/models/ControllerMetadata.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerMetadata.js +3 -0
- package/lib/cjs/http/models/ControllerMetadata.js.map +1 -0
- package/lib/cjs/http/models/ControllerMethodMetadata.d.ts +7 -0
- package/lib/cjs/http/models/ControllerMethodMetadata.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerMethodMetadata.js +3 -0
- package/lib/cjs/http/models/ControllerMethodMetadata.js.map +1 -0
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts +7 -0
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.js +3 -0
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.js.map +1 -0
- package/lib/cjs/http/models/ControllerOptions.d.ts +5 -0
- package/lib/cjs/http/models/ControllerOptions.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerOptions.js +3 -0
- package/lib/cjs/http/models/ControllerOptions.js.map +1 -0
- package/lib/cjs/http/models/ControllerResponse.d.ts +3 -0
- package/lib/cjs/http/models/ControllerResponse.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerResponse.js +3 -0
- package/lib/cjs/http/models/ControllerResponse.js.map +1 -0
- package/lib/cjs/http/models/Middleware.d.ts +4 -0
- package/lib/cjs/http/models/Middleware.d.ts.map +1 -0
- package/lib/cjs/http/models/Middleware.js +3 -0
- package/lib/cjs/http/models/Middleware.js.map +1 -0
- package/lib/cjs/http/models/RequestHandler.d.ts +2 -0
- package/lib/cjs/http/models/RequestHandler.d.ts.map +1 -0
- package/lib/cjs/http/models/RequestHandler.js +3 -0
- package/lib/cjs/http/models/RequestHandler.js.map +1 -0
- package/lib/cjs/http/models/RequestMethodParameterType.d.ts +11 -0
- package/lib/cjs/http/models/RequestMethodParameterType.d.ts.map +1 -0
- package/lib/cjs/http/models/RequestMethodParameterType.js +15 -0
- package/lib/cjs/http/models/RequestMethodParameterType.js.map +1 -0
- package/lib/cjs/http/models/RequestMethodType.d.ts +11 -0
- package/lib/cjs/http/models/RequestMethodType.d.ts.map +1 -0
- package/lib/cjs/http/models/RequestMethodType.js +15 -0
- package/lib/cjs/http/models/RequestMethodType.js.map +1 -0
- package/lib/cjs/http/models/RouterParams.d.ts +9 -0
- package/lib/cjs/http/models/RouterParams.d.ts.map +1 -0
- package/lib/cjs/http/models/RouterParams.js +3 -0
- package/lib/cjs/http/models/RouterParams.js.map +1 -0
- package/lib/cjs/http/responses/HttpResponse.d.ts +11 -0
- package/lib/cjs/http/responses/HttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/HttpResponse.js +21 -0
- package/lib/cjs/http/responses/HttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/HttpStatusCode.d.ts +58 -0
- package/lib/cjs/http/responses/HttpStatusCode.d.ts.map +1 -0
- package/lib/cjs/http/responses/HttpStatusCode.js +62 -0
- package/lib/cjs/http/responses/HttpStatusCode.js.map +1 -0
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/ConflictHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/ConflictHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts +6 -0
- package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/ErrorHttpResponse.js +11 -0
- package/lib/cjs/http/responses/error/ErrorHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/GoneHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/GoneHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/CreatedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/CreatedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/NoContentHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/NoContentHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/OkHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/OkHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/OkHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/OkHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.js.map +1 -0
- package/lib/cjs/index.d.ts +55 -0
- package/lib/cjs/index.d.ts.map +1 -0
- package/lib/cjs/index.js +102 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js.map +1 -0
- package/lib/esm/index.d.ts +265 -0
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/package.json +3 -0
- package/package.json +78 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestHandler.js","sourceRoot":"","sources":["../../../../src/http/models/RequestHandler.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum RequestMethodParameterType {
|
|
2
|
+
REQUEST = "request",
|
|
3
|
+
RESPONSE = "response",
|
|
4
|
+
PARAMS = "params",
|
|
5
|
+
QUERY = "query",
|
|
6
|
+
BODY = "body",
|
|
7
|
+
HEADERS = "headers",
|
|
8
|
+
COOKIES = "cookies",
|
|
9
|
+
NEXT = "next"
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=RequestMethodParameterType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestMethodParameterType.d.ts","sourceRoot":"","sources":["../../../../src/http/models/RequestMethodParameterType.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IACpC,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestMethodParameterType = void 0;
|
|
4
|
+
var RequestMethodParameterType;
|
|
5
|
+
(function (RequestMethodParameterType) {
|
|
6
|
+
RequestMethodParameterType["REQUEST"] = "request";
|
|
7
|
+
RequestMethodParameterType["RESPONSE"] = "response";
|
|
8
|
+
RequestMethodParameterType["PARAMS"] = "params";
|
|
9
|
+
RequestMethodParameterType["QUERY"] = "query";
|
|
10
|
+
RequestMethodParameterType["BODY"] = "body";
|
|
11
|
+
RequestMethodParameterType["HEADERS"] = "headers";
|
|
12
|
+
RequestMethodParameterType["COOKIES"] = "cookies";
|
|
13
|
+
RequestMethodParameterType["NEXT"] = "next";
|
|
14
|
+
})(RequestMethodParameterType || (exports.RequestMethodParameterType = RequestMethodParameterType = {}));
|
|
15
|
+
//# sourceMappingURL=RequestMethodParameterType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestMethodParameterType.js","sourceRoot":"","sources":["../../../../src/http/models/RequestMethodParameterType.ts"],"names":[],"mappings":";;;AAAA,IAAY,0BASX;AATD,WAAY,0BAA0B;IACpC,iDAAmB,CAAA;IACnB,mDAAqB,CAAA;IACrB,+CAAiB,CAAA;IACjB,6CAAe,CAAA;IACf,2CAAa,CAAA;IACb,iDAAmB,CAAA;IACnB,iDAAmB,CAAA;IACnB,2CAAa,CAAA;AACf,CAAC,EATW,0BAA0B,0CAA1B,0BAA0B,QASrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestMethodType.d.ts","sourceRoot":"","sources":["../../../../src/http/models/RequestMethodType.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestMethodType = void 0;
|
|
4
|
+
var RequestMethodType;
|
|
5
|
+
(function (RequestMethodType) {
|
|
6
|
+
RequestMethodType["GET"] = "get";
|
|
7
|
+
RequestMethodType["POST"] = "post";
|
|
8
|
+
RequestMethodType["PUT"] = "put";
|
|
9
|
+
RequestMethodType["DELETE"] = "delete";
|
|
10
|
+
RequestMethodType["PATCH"] = "patch";
|
|
11
|
+
RequestMethodType["OPTIONS"] = "options";
|
|
12
|
+
RequestMethodType["HEAD"] = "head";
|
|
13
|
+
RequestMethodType["ALL"] = "all";
|
|
14
|
+
})(RequestMethodType || (exports.RequestMethodType = RequestMethodType = {}));
|
|
15
|
+
//# sourceMappingURL=RequestMethodType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestMethodType.js","sourceRoot":"","sources":["../../../../src/http/models/RequestMethodType.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,gCAAW,CAAA;IACX,kCAAa,CAAA;IACb,gCAAW,CAAA;IACX,sCAAiB,CAAA;IACjB,oCAAe,CAAA;IACf,wCAAmB,CAAA;IACnB,kCAAa,CAAA;IACb,gCAAW,CAAA;AACb,CAAC,EATW,iBAAiB,iCAAjB,iBAAiB,QAS5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RequestHandler } from './RequestHandler';
|
|
2
|
+
import { RequestMethodType } from './RequestMethodType';
|
|
3
|
+
export interface RouterParams<TRequest, TResponse, TNextFunction> {
|
|
4
|
+
handler: RequestHandler<TRequest, TResponse, TNextFunction>;
|
|
5
|
+
middlewareList: RequestHandler<TRequest, TResponse, TNextFunction>[] | undefined;
|
|
6
|
+
path: string;
|
|
7
|
+
requestMethodType: RequestMethodType;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=RouterParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterParams.d.ts","sourceRoot":"","sources":["../../../../src/http/models/RouterParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,YAAY,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa;IAC9D,OAAO,EAAE,cAAc,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IAC5D,cAAc,EACV,cAAc,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa,CAAC,EAAE,GACpD,SAAS,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,iBAAiB,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterParams.js","sourceRoot":"","sources":["../../../../src/http/models/RouterParams.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpStatusCode } from './HttpStatusCode';
|
|
2
|
+
declare const isHttpResponseSymbol: unique symbol;
|
|
3
|
+
export declare class HttpResponse {
|
|
4
|
+
readonly statusCode: HttpStatusCode;
|
|
5
|
+
body?: object | string | number | boolean | undefined;
|
|
6
|
+
[isHttpResponseSymbol]: true;
|
|
7
|
+
constructor(statusCode: HttpStatusCode, body?: object | string | number | boolean | undefined);
|
|
8
|
+
static is(value: unknown): value is HttpResponse;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=HttpResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/http/responses/HttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,QAAA,MAAM,oBAAoB,EAAE,OAAO,MAElC,CAAC;AAEF,qBAAa,YAAY;aAIL,UAAU,EAAE,cAAc;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO;IAJ3C,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC;gBAGlB,UAAU,EAAE,cAAc,EACnC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,YAAA;WAKpC,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY;CAOxD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpResponse = void 0;
|
|
4
|
+
const isHttpResponseSymbol = Symbol.for('@inversifyjs/http-core/HttpResponse');
|
|
5
|
+
class HttpResponse {
|
|
6
|
+
statusCode;
|
|
7
|
+
body;
|
|
8
|
+
[isHttpResponseSymbol];
|
|
9
|
+
constructor(statusCode, body) {
|
|
10
|
+
this.statusCode = statusCode;
|
|
11
|
+
this.body = body;
|
|
12
|
+
this[isHttpResponseSymbol] = true;
|
|
13
|
+
}
|
|
14
|
+
static is(value) {
|
|
15
|
+
return (typeof value === 'object' &&
|
|
16
|
+
value !== null &&
|
|
17
|
+
value[isHttpResponseSymbol] === true);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.HttpResponse = HttpResponse;
|
|
21
|
+
//# sourceMappingURL=HttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpResponse.js","sourceRoot":"","sources":["../../../../src/http/responses/HttpResponse.ts"],"names":[],"mappings":";;;AAEA,MAAM,oBAAoB,GAAkB,MAAM,CAAC,GAAG,CACpD,qCAAqC,CACtC,CAAC;AAEF,MAAa,YAAY;IAIL;IACT;IAJF,CAAC,oBAAoB,CAAC,CAAO;IAEpC,YACkB,UAA0B,EACnC,IAAyC;QADhC,eAAU,GAAV,UAAU,CAAgB;QACnC,SAAI,GAAJ,IAAI,CAAqC;QAEhD,IAAI,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;IACpC,CAAC;IAEM,MAAM,CAAC,EAAE,CAAC,KAAc;QAC7B,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;YACzB,KAAK,KAAK,IAAI;YACb,KAA0C,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAC3E,CAAC;IACJ,CAAC;CACF;AAjBD,oCAiBC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare enum HttpStatusCode {
|
|
2
|
+
CONTINUE = 100,
|
|
3
|
+
SWITCHING_PROTOCOLS = 101,
|
|
4
|
+
PROCESSING = 102,
|
|
5
|
+
EARLYHINTS = 103,
|
|
6
|
+
OK = 200,
|
|
7
|
+
CREATED = 201,
|
|
8
|
+
ACCEPTED = 202,
|
|
9
|
+
NON_AUTHORITATIVE_INFORMATION = 203,
|
|
10
|
+
NO_CONTENT = 204,
|
|
11
|
+
RESET_CONTENT = 205,
|
|
12
|
+
PARTIAL_CONTENT = 206,
|
|
13
|
+
MULTI_STATUS = 207,
|
|
14
|
+
ALREADY_REPORTED = 208,
|
|
15
|
+
CONTENT_DIFFERENT = 210,
|
|
16
|
+
AMBIGUOUS = 300,
|
|
17
|
+
MOVED_PERMANENTLY = 301,
|
|
18
|
+
FOUND = 302,
|
|
19
|
+
SEE_OTHER = 303,
|
|
20
|
+
NOT_MODIFIED = 304,
|
|
21
|
+
TEMPORARY_REDIRECT = 307,
|
|
22
|
+
PERMANENT_REDIRECT = 308,
|
|
23
|
+
BAD_REQUEST = 400,
|
|
24
|
+
UNAUTHORIZED = 401,
|
|
25
|
+
PAYMENT_REQUIRED = 402,
|
|
26
|
+
FORBIDDEN = 403,
|
|
27
|
+
NOT_FOUND = 404,
|
|
28
|
+
METHOD_NOT_ALLOWED = 405,
|
|
29
|
+
NOT_ACCEPTABLE = 406,
|
|
30
|
+
PROXY_AUTHENTICATION_REQUIRED = 407,
|
|
31
|
+
REQUEST_TIMEOUT = 408,
|
|
32
|
+
CONFLICT = 409,
|
|
33
|
+
GONE = 410,
|
|
34
|
+
LENGTH_REQUIRED = 411,
|
|
35
|
+
PRECONDITION_FAILED = 412,
|
|
36
|
+
PAYLOAD_TOO_LARGE = 413,
|
|
37
|
+
URI_TOO_LONG = 414,
|
|
38
|
+
UNSUPPORTED_MEDIA_TYPE = 415,
|
|
39
|
+
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
|
|
40
|
+
EXPECTATION_FAILED = 417,
|
|
41
|
+
I_AM_A_TEAPOT = 418,
|
|
42
|
+
MISDIRECTED = 421,
|
|
43
|
+
UNPROCESSABLE_ENTITY = 422,
|
|
44
|
+
LOCKED = 423,
|
|
45
|
+
FAILED_DEPENDENCY = 424,
|
|
46
|
+
PRECONDITION_REQUIRED = 428,
|
|
47
|
+
TOO_MANY_REQUESTS = 429,
|
|
48
|
+
UNRECOVERABLE_ERROR = 456,
|
|
49
|
+
INTERNAL_SERVER_ERROR = 500,
|
|
50
|
+
NOT_IMPLEMENTED = 501,
|
|
51
|
+
BAD_GATEWAY = 502,
|
|
52
|
+
SERVICE_UNAVAILABLE = 503,
|
|
53
|
+
GATEWAY_TIMEOUT = 504,
|
|
54
|
+
HTTP_VERSION_NOT_SUPPORTED = 505,
|
|
55
|
+
INSUFFICIENT_STORAGE = 507,
|
|
56
|
+
LOOP_DETECTED = 508
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=HttpStatusCode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpStatusCode.d.ts","sourceRoot":"","sources":["../../../../src/http/responses/HttpStatusCode.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,QAAQ,MAAM;IACd,mBAAmB,MAAM;IACzB,UAAU,MAAM;IAChB,UAAU,MAAM;IAChB,EAAE,MAAM;IACR,OAAO,MAAM;IACb,QAAQ,MAAM;IACd,6BAA6B,MAAM;IACnC,UAAU,MAAM;IAChB,aAAa,MAAM;IACnB,eAAe,MAAM;IACrB,YAAY,MAAM;IAClB,gBAAgB,MAAM;IACtB,iBAAiB,MAAM;IACvB,SAAS,MAAM;IACf,iBAAiB,MAAM;IACvB,KAAK,MAAM;IACX,SAAS,MAAM;IACf,YAAY,MAAM;IAClB,kBAAkB,MAAM;IACxB,kBAAkB,MAAM;IACxB,WAAW,MAAM;IACjB,YAAY,MAAM;IAClB,gBAAgB,MAAM;IACtB,SAAS,MAAM;IACf,SAAS,MAAM;IACf,kBAAkB,MAAM;IACxB,cAAc,MAAM;IACpB,6BAA6B,MAAM;IACnC,eAAe,MAAM;IACrB,QAAQ,MAAM;IACd,IAAI,MAAM;IACV,eAAe,MAAM;IACrB,mBAAmB,MAAM;IACzB,iBAAiB,MAAM;IACvB,YAAY,MAAM;IAClB,sBAAsB,MAAM;IAC5B,+BAA+B,MAAM;IACrC,kBAAkB,MAAM;IACxB,aAAa,MAAM;IACnB,WAAW,MAAM;IACjB,oBAAoB,MAAM;IAC1B,MAAM,MAAM;IACZ,iBAAiB,MAAM;IACvB,qBAAqB,MAAM;IAC3B,iBAAiB,MAAM;IACvB,mBAAmB,MAAM;IACzB,qBAAqB,MAAM;IAC3B,eAAe,MAAM;IACrB,WAAW,MAAM;IACjB,mBAAmB,MAAM;IACzB,eAAe,MAAM;IACrB,0BAA0B,MAAM;IAChC,oBAAoB,MAAM;IAC1B,aAAa,MAAM;CACpB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpStatusCode = void 0;
|
|
4
|
+
var HttpStatusCode;
|
|
5
|
+
(function (HttpStatusCode) {
|
|
6
|
+
HttpStatusCode[HttpStatusCode["CONTINUE"] = 100] = "CONTINUE";
|
|
7
|
+
HttpStatusCode[HttpStatusCode["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
8
|
+
HttpStatusCode[HttpStatusCode["PROCESSING"] = 102] = "PROCESSING";
|
|
9
|
+
HttpStatusCode[HttpStatusCode["EARLYHINTS"] = 103] = "EARLYHINTS";
|
|
10
|
+
HttpStatusCode[HttpStatusCode["OK"] = 200] = "OK";
|
|
11
|
+
HttpStatusCode[HttpStatusCode["CREATED"] = 201] = "CREATED";
|
|
12
|
+
HttpStatusCode[HttpStatusCode["ACCEPTED"] = 202] = "ACCEPTED";
|
|
13
|
+
HttpStatusCode[HttpStatusCode["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
14
|
+
HttpStatusCode[HttpStatusCode["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
15
|
+
HttpStatusCode[HttpStatusCode["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
16
|
+
HttpStatusCode[HttpStatusCode["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
17
|
+
HttpStatusCode[HttpStatusCode["MULTI_STATUS"] = 207] = "MULTI_STATUS";
|
|
18
|
+
HttpStatusCode[HttpStatusCode["ALREADY_REPORTED"] = 208] = "ALREADY_REPORTED";
|
|
19
|
+
HttpStatusCode[HttpStatusCode["CONTENT_DIFFERENT"] = 210] = "CONTENT_DIFFERENT";
|
|
20
|
+
HttpStatusCode[HttpStatusCode["AMBIGUOUS"] = 300] = "AMBIGUOUS";
|
|
21
|
+
HttpStatusCode[HttpStatusCode["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
22
|
+
HttpStatusCode[HttpStatusCode["FOUND"] = 302] = "FOUND";
|
|
23
|
+
HttpStatusCode[HttpStatusCode["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
24
|
+
HttpStatusCode[HttpStatusCode["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
25
|
+
HttpStatusCode[HttpStatusCode["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
26
|
+
HttpStatusCode[HttpStatusCode["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
27
|
+
HttpStatusCode[HttpStatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
28
|
+
HttpStatusCode[HttpStatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
29
|
+
HttpStatusCode[HttpStatusCode["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
30
|
+
HttpStatusCode[HttpStatusCode["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
31
|
+
HttpStatusCode[HttpStatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
32
|
+
HttpStatusCode[HttpStatusCode["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
33
|
+
HttpStatusCode[HttpStatusCode["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
34
|
+
HttpStatusCode[HttpStatusCode["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
35
|
+
HttpStatusCode[HttpStatusCode["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
36
|
+
HttpStatusCode[HttpStatusCode["CONFLICT"] = 409] = "CONFLICT";
|
|
37
|
+
HttpStatusCode[HttpStatusCode["GONE"] = 410] = "GONE";
|
|
38
|
+
HttpStatusCode[HttpStatusCode["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
39
|
+
HttpStatusCode[HttpStatusCode["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
40
|
+
HttpStatusCode[HttpStatusCode["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
41
|
+
HttpStatusCode[HttpStatusCode["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
42
|
+
HttpStatusCode[HttpStatusCode["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
43
|
+
HttpStatusCode[HttpStatusCode["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
44
|
+
HttpStatusCode[HttpStatusCode["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
45
|
+
HttpStatusCode[HttpStatusCode["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
46
|
+
HttpStatusCode[HttpStatusCode["MISDIRECTED"] = 421] = "MISDIRECTED";
|
|
47
|
+
HttpStatusCode[HttpStatusCode["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
48
|
+
HttpStatusCode[HttpStatusCode["LOCKED"] = 423] = "LOCKED";
|
|
49
|
+
HttpStatusCode[HttpStatusCode["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
50
|
+
HttpStatusCode[HttpStatusCode["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
51
|
+
HttpStatusCode[HttpStatusCode["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
52
|
+
HttpStatusCode[HttpStatusCode["UNRECOVERABLE_ERROR"] = 456] = "UNRECOVERABLE_ERROR";
|
|
53
|
+
HttpStatusCode[HttpStatusCode["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
54
|
+
HttpStatusCode[HttpStatusCode["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
55
|
+
HttpStatusCode[HttpStatusCode["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
56
|
+
HttpStatusCode[HttpStatusCode["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
57
|
+
HttpStatusCode[HttpStatusCode["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
58
|
+
HttpStatusCode[HttpStatusCode["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
59
|
+
HttpStatusCode[HttpStatusCode["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
60
|
+
HttpStatusCode[HttpStatusCode["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
61
|
+
})(HttpStatusCode || (exports.HttpStatusCode = HttpStatusCode = {}));
|
|
62
|
+
//# sourceMappingURL=HttpStatusCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpStatusCode.js","sourceRoot":"","sources":["../../../../src/http/responses/HttpStatusCode.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAwDX;AAxDD,WAAY,cAAc;IACxB,6DAAc,CAAA;IACd,mFAAyB,CAAA;IACzB,iEAAgB,CAAA;IAChB,iEAAgB,CAAA;IAChB,iDAAQ,CAAA;IACR,2DAAa,CAAA;IACb,6DAAc,CAAA;IACd,uGAAmC,CAAA;IACnC,iEAAgB,CAAA;IAChB,uEAAmB,CAAA;IACnB,2EAAqB,CAAA;IACrB,qEAAkB,CAAA;IAClB,6EAAsB,CAAA;IACtB,+EAAuB,CAAA;IACvB,+DAAe,CAAA;IACf,+EAAuB,CAAA;IACvB,uDAAW,CAAA;IACX,+DAAe,CAAA;IACf,qEAAkB,CAAA;IAClB,iFAAwB,CAAA;IACxB,iFAAwB,CAAA;IACxB,mEAAiB,CAAA;IACjB,qEAAkB,CAAA;IAClB,6EAAsB,CAAA;IACtB,+DAAe,CAAA;IACf,+DAAe,CAAA;IACf,iFAAwB,CAAA;IACxB,yEAAoB,CAAA;IACpB,uGAAmC,CAAA;IACnC,2EAAqB,CAAA;IACrB,6DAAc,CAAA;IACd,qDAAU,CAAA;IACV,2EAAqB,CAAA;IACrB,mFAAyB,CAAA;IACzB,+EAAuB,CAAA;IACvB,qEAAkB,CAAA;IAClB,yFAA4B,CAAA;IAC5B,2GAAqC,CAAA;IACrC,iFAAwB,CAAA;IACxB,uEAAmB,CAAA;IACnB,mEAAiB,CAAA;IACjB,qFAA0B,CAAA;IAC1B,yDAAY,CAAA;IACZ,+EAAuB,CAAA;IACvB,uFAA2B,CAAA;IAC3B,+EAAuB,CAAA;IACvB,mFAAyB,CAAA;IACzB,uFAA2B,CAAA;IAC3B,2EAAqB,CAAA;IACrB,mEAAiB,CAAA;IACjB,mFAAyB,CAAA;IACzB,2EAAqB,CAAA;IACrB,iGAAgC,CAAA;IAChC,qFAA0B,CAAA;IAC1B,uEAAmB,CAAA;AACrB,CAAC,EAxDW,cAAc,8BAAd,cAAc,QAwDzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadGatewayHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/BadGatewayHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,sBAAuB,SAAQ,iBAAiB;gBAC/C,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAAsB;CAG5D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BadGatewayHttpResponse = void 0;
|
|
4
|
+
const HttpStatusCode_1 = require("../HttpStatusCode");
|
|
5
|
+
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
|
+
class BadGatewayHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
+
constructor(message, error = 'Bad Gateway') {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.BAD_GATEWAY, error, message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.BadGatewayHttpResponse = BadGatewayHttpResponse;
|
|
12
|
+
//# sourceMappingURL=BadGatewayHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadGatewayHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/BadGatewayHttpResponse.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,2DAAwD;AAExD,MAAa,sBAAuB,SAAQ,qCAAiB;IAC3D,YAAY,OAAgB,EAAE,QAAgB,aAAa;QACzD,KAAK,CAAC,+BAAc,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAJD,wDAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadRequestHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/BadRequestHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,sBAAuB,SAAQ,iBAAiB;gBAC/C,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAAsB;CAG5D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BadRequestHttpResponse = void 0;
|
|
4
|
+
const HttpStatusCode_1 = require("../HttpStatusCode");
|
|
5
|
+
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
|
+
class BadRequestHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
+
constructor(message, error = 'Bad Request') {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.BAD_REQUEST, error, message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.BadRequestHttpResponse = BadRequestHttpResponse;
|
|
12
|
+
//# sourceMappingURL=BadRequestHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadRequestHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/BadRequestHttpResponse.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,2DAAwD;AAExD,MAAa,sBAAuB,SAAQ,qCAAiB;IAC3D,YAAY,OAAgB,EAAE,QAAgB,aAAa;QACzD,KAAK,CAAC,+BAAc,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAJD,wDAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConflictHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/ConflictHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,oBAAqB,SAAQ,iBAAiB;gBAC7C,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAAmB;CAGzD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConflictHttpResponse = void 0;
|
|
4
|
+
const HttpStatusCode_1 = require("../HttpStatusCode");
|
|
5
|
+
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
|
+
class ConflictHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
+
constructor(message, error = 'Conflict') {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.CONFLICT, error, message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ConflictHttpResponse = ConflictHttpResponse;
|
|
12
|
+
//# sourceMappingURL=ConflictHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConflictHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/ConflictHttpResponse.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,2DAAwD;AAExD,MAAa,oBAAqB,SAAQ,qCAAiB;IACzD,YAAY,OAAgB,EAAE,QAAgB,UAAU;QACtD,KAAK,CAAC,+BAAc,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACF;AAJD,oDAIC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HttpResponse } from '../HttpResponse';
|
|
2
|
+
import { HttpStatusCode } from '../HttpStatusCode';
|
|
3
|
+
export declare class ErrorHttpResponse extends HttpResponse {
|
|
4
|
+
constructor(statusCode: HttpStatusCode, error: string, message?: string);
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=ErrorHttpResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/ErrorHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,iBAAkB,SAAQ,YAAY;gBACrC,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAGxE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorHttpResponse = void 0;
|
|
4
|
+
const HttpResponse_1 = require("../HttpResponse");
|
|
5
|
+
class ErrorHttpResponse extends HttpResponse_1.HttpResponse {
|
|
6
|
+
constructor(statusCode, error, message) {
|
|
7
|
+
super(statusCode, { error, message, statusCode });
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ErrorHttpResponse = ErrorHttpResponse;
|
|
11
|
+
//# sourceMappingURL=ErrorHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/ErrorHttpResponse.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAG/C,MAAa,iBAAkB,SAAQ,2BAAY;IACjD,YAAY,UAA0B,EAAE,KAAa,EAAE,OAAgB;QACrE,KAAK,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;IACpD,CAAC;CACF;AAJD,8CAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForbiddenHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/ForbiddenHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,qBAAsB,SAAQ,iBAAiB;gBAC9C,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAAoB;CAG1D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ForbiddenHttpResponse = void 0;
|
|
4
|
+
const HttpStatusCode_1 = require("../HttpStatusCode");
|
|
5
|
+
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
|
+
class ForbiddenHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
+
constructor(message, error = 'Forbidden') {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.FORBIDDEN, error, message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ForbiddenHttpResponse = ForbiddenHttpResponse;
|
|
12
|
+
//# sourceMappingURL=ForbiddenHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForbiddenHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/ForbiddenHttpResponse.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,2DAAwD;AAExD,MAAa,qBAAsB,SAAQ,qCAAiB;IAC1D,YAAY,OAAgB,EAAE,QAAgB,WAAW;QACvD,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF;AAJD,sDAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GatewayTimeoutHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/GatewayTimeoutHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,0BAA2B,SAAQ,iBAAiB;gBACnD,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAA0B;CAGhE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GatewayTimeoutHttpResponse = void 0;
|
|
4
|
+
const HttpStatusCode_1 = require("../HttpStatusCode");
|
|
5
|
+
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
|
+
class GatewayTimeoutHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
+
constructor(message, error = 'Gateway Timeout') {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.GATEWAY_TIMEOUT, error, message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.GatewayTimeoutHttpResponse = GatewayTimeoutHttpResponse;
|
|
12
|
+
//# sourceMappingURL=GatewayTimeoutHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GatewayTimeoutHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/GatewayTimeoutHttpResponse.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,2DAAwD;AAExD,MAAa,0BAA2B,SAAQ,qCAAiB;IAC/D,YAAY,OAAgB,EAAE,QAAgB,iBAAiB;QAC7D,KAAK,CAAC,+BAAc,CAAC,eAAe,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,gEAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoneHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/GoneHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,gBAAiB,SAAQ,iBAAiB;gBACzC,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAAe;CAGrD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GoneHttpResponse = void 0;
|
|
4
|
+
const HttpStatusCode_1 = require("../HttpStatusCode");
|
|
5
|
+
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
|
+
class GoneHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
+
constructor(message, error = 'Gone') {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.GONE, error, message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.GoneHttpResponse = GoneHttpResponse;
|
|
12
|
+
//# sourceMappingURL=GoneHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoneHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/GoneHttpResponse.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,2DAAwD;AAExD,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD,YAAY,OAAgB,EAAE,QAAgB,MAAM;QAClD,KAAK,CAAC,+BAAc,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CACF;AAJD,4CAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpVersionNotSupportedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/HttpVersionNotSupportedHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,mCAAoC,SAAQ,iBAAiB;gBAC5D,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAAqC;CAG3E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpVersionNotSupportedHttpResponse = void 0;
|
|
4
|
+
const HttpStatusCode_1 = require("../HttpStatusCode");
|
|
5
|
+
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
|
+
class HttpVersionNotSupportedHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
+
constructor(message, error = 'HTTP Version Not Supported') {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.HTTP_VERSION_NOT_SUPPORTED, error, message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.HttpVersionNotSupportedHttpResponse = HttpVersionNotSupportedHttpResponse;
|
|
12
|
+
//# sourceMappingURL=HttpVersionNotSupportedHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpVersionNotSupportedHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/HttpVersionNotSupportedHttpResponse.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,2DAAwD;AAExD,MAAa,mCAAoC,SAAQ,qCAAiB;IACxE,YAAY,OAAgB,EAAE,QAAgB,4BAA4B;QACxE,KAAK,CAAC,+BAAc,CAAC,0BAA0B,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AAJD,kFAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InsufficientStorageHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/InsufficientStorageHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,+BAAgC,SAAQ,iBAAiB;gBACxD,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAA+B;CAGrE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InsufficientStorageHttpResponse = void 0;
|
|
4
|
+
const HttpStatusCode_1 = require("../HttpStatusCode");
|
|
5
|
+
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
|
+
class InsufficientStorageHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
+
constructor(message, error = 'Insufficient Storage') {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.INSUFFICIENT_STORAGE, error, message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.InsufficientStorageHttpResponse = InsufficientStorageHttpResponse;
|
|
12
|
+
//# sourceMappingURL=InsufficientStorageHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InsufficientStorageHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/InsufficientStorageHttpResponse.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,2DAAwD;AAExD,MAAa,+BAAgC,SAAQ,qCAAiB;IACpE,YAAY,OAAgB,EAAE,QAAgB,sBAAsB;QAClE,KAAK,CAAC,+BAAc,CAAC,oBAAoB,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAJD,0EAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalServerErrorHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/InternalServerErrorHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,+BAAgC,SAAQ,iBAAiB;gBACxD,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAAgC;CAGtE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalServerErrorHttpResponse = void 0;
|
|
4
|
+
const HttpStatusCode_1 = require("../HttpStatusCode");
|
|
5
|
+
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
|
+
class InternalServerErrorHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
+
constructor(message, error = 'Internal Server Error') {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.INTERNAL_SERVER_ERROR, error, message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.InternalServerErrorHttpResponse = InternalServerErrorHttpResponse;
|
|
12
|
+
//# sourceMappingURL=InternalServerErrorHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalServerErrorHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/InternalServerErrorHttpResponse.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,2DAAwD;AAExD,MAAa,+BAAgC,SAAQ,qCAAiB;IACpE,YAAY,OAAgB,EAAE,QAAgB,uBAAuB;QACnE,KAAK,CAAC,+BAAc,CAAC,qBAAqB,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF;AAJD,0EAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoopDetectedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../../src/http/responses/error/LoopDetectedHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,wBAAyB,SAAQ,iBAAiB;gBACjD,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAAwB;CAG9D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoopDetectedHttpResponse = void 0;
|
|
4
|
+
const HttpStatusCode_1 = require("../HttpStatusCode");
|
|
5
|
+
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
|
+
class LoopDetectedHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
+
constructor(message, error = 'Loop Detected') {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.LOOP_DETECTED, error, message);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.LoopDetectedHttpResponse = LoopDetectedHttpResponse;
|
|
12
|
+
//# sourceMappingURL=LoopDetectedHttpResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoopDetectedHttpResponse.js","sourceRoot":"","sources":["../../../../../src/http/responses/error/LoopDetectedHttpResponse.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AACnD,2DAAwD;AAExD,MAAa,wBAAyB,SAAQ,qCAAiB;IAC7D,YAAY,OAAgB,EAAE,QAAgB,eAAe;QAC3D,KAAK,CAAC,+BAAc,CAAC,aAAa,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;CACF;AAJD,4DAIC"}
|