Converts a handler response to a Web API Response object. Handles APIGatewayProxyResult, Response objects, and plain objects.
The handler response (APIGatewayProxyResult, Response, or plain object)
Optional
Optional headers to be included in the response
A Web API Response object
Converts a handler response to a Web API Response object. Handles APIGatewayProxyResult, Response objects, and plain objects.