awslabs / aws-lambda-go-api-proxy

lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin (https://gin-gonic.github.io/gin/ ) to AWS Lambda and Amazon API Gateway.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support of LambdaFuctionURLRequest/Response

mkorolyov opened this issue · comments

Hi!

At the moment that is no support for LambdaFunctionURLRequest/Response. I Can contribute and add support. Which approach is more suitable for such changes? add v3 for core/request.go/response.go ? Thanks

I found there's a newer solution provided by awslabs which does more or less the same as this, using a different approach:
https://github.com/awslabs/aws-lambda-web-adapter

The core difference to this library is that the above builds the adapter as a lambda layer and forwards the request to http server (your application) running on the same instance.

It supports LambdaFunctionURL by design and works with any http server (regardless of the programming language used).

You might also use my own library, which uses the same approach as this one: https://github.com/its-felix/aws-lambda-go-http-adapter/tree/main
(though I myself only use it for hobby projects, for any work related things I recommend staying with the aws provided solutions)