GetResponseAdapterProps
@h4ad/serverless-adapter > GetResponseAdapterProps
(interface) GetResponseAdapterProps
The props of the method that get the response from the framework and transform it into a format that the event source can handle
Signature:
export interface GetResponseAdapterProps<TEvent>
(property) body
The framework response body
Signature:
body: string;
(property) event
The event sent by the serverless
Signature:
event: TEvent;
(property) headers
The framework response headers
Signature:
headers: BothValueHeaders;
(property) isBase64Encoded
Indicates whether the response is base64 encoded or not
Signature:
isBase64Encoded: boolean;
(property) log
The instance of the logger
Signature:
log: ILogger;
(property) response
The framework response .
Signature:
response?: ServerlessResponse;
Remarks
It can be optional, as this method can be used when an error occurs during the handling of the request by the framework.
(property) statusCode
The framework response status code
Signature:
statusCode: number;