-
-
Notifications
You must be signed in to change notification settings - Fork 22
Description
I'm curious to hear your take on this.
So far we love your library, and our primary use case is using it with API Gateway and SAM to deploy serverless Scala based API's. Our problem is that we are wanting to use the Lambda Proxy invocation as it is the easiest to use from an API Gateway perspective. This works great with your library on the happy path for the Lambda.Proxy impl - but on the failure path, I need to be able to grab a hold of that failure and have full control of the ProxyResponse that is returned. When using the Proxy return style, I do not want Throwables as the Lambda payload that is returned would end up going all the way as-is through the API gateway and back to the caller. This would end up being a different type than ProxyResponse[O] as the happy path return type can't be generated in the error scenario. I think what I would want for the the output on error is a type of a ProxyResponse[E] (e for error type), or something similar. Thoughts?