title: Add custom http headers to chai requests
body: <p>I am building an app using node.js and testing with mocha + chai. Is there a way I can add custom headers to my GET and POST chai requests?</p>
  
  <p>For example, I want something like (semi-pseudocode):</p>
  
  <pre><code>chai.request(server)
    .get('/api/car/' + data.car_id)
    .headers({'some_custom_attribute':'some_value'})
    .end(function(err, res) {
      //do something
    });
  </code></pre>
  
  <p>And likewise with post:</p>
  
  <pre><code>chai.request(server)
    .post('/api/car/')
    .headers({'some_custom_attribute':'some_value'})
    .send({car_id: 'some_car_id'})
    .end(function(err, res) {
      //do something
    });
  </code></pre>
  
  <p>Can someone help?</p>
  
  <p>Thanks in advance!</p>