title: Add headers in all outgoing http requests using request module of ExpressJS, is it possible?
body: <p>I'm using the <code>request</code> module for NodeJS.</p>
  
  <p>I was wondering,
  Instead of adding the headers in every request by hand like the docs.</p>
  
  <p>ex.</p>
  
  <pre><code>var options = {
    url: myuRL,
    headers: {
      'myHeader': 'headerVal'
    }
  }
  
  request(options ,callback);
  </code></pre>
  
  <p><strong>Is it possible with a middleware or something to inject the headers in ALL requests?</strong></p>
  
  <p>I tried by creating this middleware:</p>
  
  <pre><code>const addHeaders = function (req, res, next) {
    req.header('myHeader', 'MyVal');
    next();
  };
  module.exports = addHeaders;
  </code></pre>
  
  <p>It works on all http requests except those created with the <code>request</code> module.</p>
  
  <p>NOTE: I mean to all me <strong>outgoing</strong> request not to the incoming.</p>