0

In an AWS Lambda java code, how can I get the HTTP method (e.g. GET, POST...) of an HTTP request coming from the AWS Gateway API?

1 Answer 1

1

It really depends on your request mapping, that you set within the api-gateway.

If you stick with the default mapping, the following site has a section on how the event structure is formulated: Set up API Gateway Proxy Integration

see section "Input Format of a Lambda Function for Proxy Integration".

so in short.

event.httpMethod
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.