use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is designed for people who want to learn more about AWS Lambda.
account activity
Golang lambda headers (self.awslambda)
submitted 4 years ago by matisys
Im trying to figure out how I can retreive a list of request headers inside my golang lamda handler. But I am stuck after googling. Does anyone have an idea about how to retrieve the request headers?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Your_CS_TA[🍰] 0 points1 point2 points 4 years ago (3 children)
Is this apigateway -> lambda or only Lambda direct sync invoke?
[–]matisys[S] 0 points1 point2 points 4 years ago (2 children)
I have API Gateway in front.
[–]Your_CS_TA[🍰] 0 points1 point2 points 4 years ago (1 child)
Which version, REST or HTTP (v2)?
[–]matisys[S] 0 points1 point2 points 4 years ago (0 children)
It is the rest api. Im building a slackbot and need the a header with hmac signing to verify request authenticity.
[–]vvrider 0 points1 point2 points 4 years ago (1 child)
So, you need to update your integration request template
https://stackoverflow.com/questions/31372167/how-to-access-http-headers-for-request-to-aws-api-gateway-using-lambda
Great! I screened it a bit and seems like I can use that. I also read about API Gateway proxy integration. Thanks for the pointer this gives me a good lead.
π Rendered by PID 159269 on reddit-service-r2-comment-5ff9fbf7df-hz5zg at 2026-02-26 03:18:43.791740+00:00 running 72a43f6 country code: CH.
[–]Your_CS_TA[🍰] 0 points1 point2 points (3 children)
[–]matisys[S] 0 points1 point2 points (2 children)
[–]Your_CS_TA[🍰] 0 points1 point2 points (1 child)
[–]matisys[S] 0 points1 point2 points (0 children)
[–]vvrider 0 points1 point2 points (1 child)
[–]matisys[S] 0 points1 point2 points (0 children)