how to parse header in node js lambda

Solutions on MaxInterview for how to parse header in node js lambda by the best coders in the world

showing results for - "how to parse header in node js lambda"
Maximilian
17 Mar 2016
1{
2    "method": "$context.httpMethod",
3    "body" : $input.json('$'),
4    "headers": {
5        #foreach($param in $input.params().header.keySet())
6        "$param": "$util.escapeJavaScript($input.params().header.get($param))"
7        #if($foreach.hasNext),#end
8        #end
9    }
10}