title: Google Cloud Functions Headers response
body: <p>I am executing a GCF triggered by an Http Request, and I only need to receive a custom message, however, I receive all of this headers:</p>
  
  <pre><code>HTTP/1.1 200 OK
  Server: nginx
  Content-Type: application/json; charset=utf-8
  x-powered-by: Express
  cache-control: private
  Strict-Transport-Security: max-age=31556926; includeSubDomains; preload
  etag: W/"19-7046833f"
  function-execution-id: nx88bs3fra23
  x-cloud-trace-context: 302401ba6a3c3d461c32dc7e4825c54d;o=1, 302401ba6a3c3d461c32dc7e4825c54d
  Content-Length: 25
  Accept-Ranges: bytes
  Date: Wed, 05 Jul 2017 01:48:23 GMT
  Via: 1.1 varnish
  Connection: keep-alive
  X-Served-By: cache-lax8651-LAX
  X-Cache: MISS
  X-Cache-Hits: 0
  X-Timer: S1499219281.929840,VS0,VE22189
  </code></pre>
  
  <p>I don't need to use any of the headers because I am doing a request from a 3G module, not a web browser. The code used to receive this is the following:</p>
  
  <pre><code>'use strict';
  exports.myfunction = functions.https.onRequest((req, res) =&gt; {
    admin.database().ref('/root').once('child_changed', (snapshot) =&gt;{
      res.send(snapshot.val());
    });
  });
  </code></pre>
  
  <p>Is there any way to remove these headers from the response?
  I have been reading the <a href="http://expressjs.com/en/4x/api.html#res.set" rel="nofollow noreferrer">response documentation</a>, and I found the res.set(field [, value]) method.</p>
  
  <p>Do you know if it is possible to remove the automatic headers sent by the server?</p>