UNPKG

@studyportals/sp-r2d2

Version:

A framework that contains various components used when developing projects that will be deployed via AWS λ.

17 lines (16 loc) 1.2 kB
import { IResult, RawHttpResult } from '@studyportals/sp-r2d2-interface'; import { AuthorizationError, ValidationError, ExecutionError } from '../../../../application'; import { IResponseSender } from '../../../core/response-sending-interfaces/i-response-sender.interface'; import { BaseResponseSender } from '../../../core/response-sending/base-response-sender.class'; import { HttpResponse } from '../http-responses/http-response.class'; export declare class HttpResponseSender extends BaseResponseSender implements IResponseSender { sendUncaughtError(error: Error): Promise<unknown>; sendRequestAuthorizationError(error: AuthorizationError): Promise<unknown>; sendRequestValidationError(error: ValidationError): Promise<unknown>; sendRequestExecutionError(error: ExecutionError): Promise<unknown>; sendExecutionOutcome(outcome: IResult): Promise<unknown>; protected sendNotFoundResponse(error: ExecutionError): Promise<unknown>; protected sendInternalServerErrorResponse(error: ExecutionError): Promise<unknown>; protected sendHttpResponse(response: HttpResponse): Promise<unknown>; protected sendRawHttpResponse(result: RawHttpResult): Promise<unknown>; }