title: Why event object is different from making requests with Postman and API Gateway Test?
body: <p>I created super-simple AWS Lambda Function with NodeJS:</p>
  <pre><code>exports.handler = async (event,context) =&gt; {
    return event
  }
  </code></pre>
  <p>I created API Gateway integration with a standard template to get the body as a JSON object and to get headers.</p>
  <p>When I make a request via Gateway Test I get the headers in <code>event</code> object.</p>
  <p>I exported gateway as Postman collection, and when I make a request via Postman I get only body object, no headers here.</p>
  <p>The result is different while making requests from different clients, I want to learn why.</p>
  <p>Gateway Mapping:</p>
  <pre><code>##  See http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-
  mapping-template-reference.html
  ##  This template will pass through all parameters including path, querystring, header, stage variables, and context through to the integration endpoint via the body/payload
  #set($allParams = $input.params())
  {
  &quot;body&quot; : $input.json('$'),
  &quot;params&quot; : {
  #foreach($type in $allParams.keySet())
      #set($params = $allParams.get($type))
  &quot;$type&quot; : {
      #foreach($paramName in $params.keySet())
      &quot;$paramName&quot; : &quot;$util.escapeJavaScript($params.get($paramName))&quot;
          #if($foreach.hasNext),#end
      #end
  }
      #if($foreach.hasNext),#end
  #end
  }
  }
  </code></pre>