I am implementing a Lambda in Go that needs to be able to access the HttpMethod (type) (ie. GET, POST, etc.). This is due to the need to use a switch statement in the Handler to access the correct function.
I have tried using the api gateway with the template for passing the entire request and also tried it with no template. I also used the lambda URL (bypassing the API Gateway).
The attributes I used are event.HTTPMethod and event.RequestContext.HTTPMethod. I used to know a way to convert the events.APIGatewayProxyRequest to a standard HttpRequest but can’t seem to remember it. I am stuck at this moment.
Any Ideas? Thanks in advance for all help.