(
event: APIGatewayProxyEventV2,
responseStream: ResponseStream,
...rest: MaybeOptionalOptions<FriendlyStandardHandleOptions<T>>
)
| 24 | } |
| 25 | |
| 26 | async handle( |
| 27 | event: APIGatewayProxyEventV2, |
| 28 | responseStream: ResponseStream, |
| 29 | ...rest: MaybeOptionalOptions<FriendlyStandardHandleOptions<T>> |
| 30 | ): Promise<AwsLambdaHandleResult> { |
| 31 | const standardRequest = toStandardLazyRequest(event, responseStream) |
| 32 | |
| 33 | const options = resolveFriendlyStandardHandleOptions(resolveMaybeOptionalOptions(rest)) |
| 34 | const result = await this.standardHandler.handle(standardRequest, options) |
| 35 | |
| 36 | if (!result.matched) { |
| 37 | return { matched: false } |
| 38 | } |
| 39 | |
| 40 | await sendStandardResponse(responseStream, result.response, this.sendStandardResponseOptions) |
| 41 | |
| 42 | return { matched: true } |
| 43 | } |
| 44 | } |
no test coverage detected