We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e8766f commit d3c5487Copy full SHA for d3c5487
README.md
@@ -21,6 +21,7 @@ package main
21
22
import (
23
"log"
24
+ "context"
25
26
"github.com/aws/aws-lambda-go/events"
27
"github.com/aws/aws-lambda-go/lambda"
@@ -43,9 +44,9 @@ func init() {
43
44
ginLambda = ginadapter.New(r)
45
}
46
-func Handler(req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
47
+func Handler(ctx context.Context, req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
48
// If no name is provided in the HTTP request body, throw an error
- return ginLambda.Proxy(req)
49
+ return ginLambda.ProxyWithContext(ctx, req)
50
51
52
func main() {
0 commit comments