title: Request HTTP libraries are slow
body: <p>I'm making a project using Node.js (8.9.4) and Express (4.16.2). Basically, with Node.js i'm consulting an external API and then with Express make a route to consume this result. My surprise was that when I used Axios library, it make my response to delay up to ~30s. I wanted to check if it was my problem or was from the API... I've checked it with PostMan and it returns in less than 300ms. Then I've thought it was any problem related with Axios, so I've decided to use request-promise but...again 30s. The last test I've made is using Node.js native 'https' util and...yes, less than 300ms again.</p>
  
  <p>Anyone knows whats the problem with those packages? Am I condemned to use callbacks instead of promises?</p>
  
  <p>Here's my base code... (AXIOS, Request-Promise... 30s delay in response)</p>
  
  <pre><code>const rp = require('request-promise);
  
  const BASE_URL = 'my https url';
  const AUTH_TOKEN = 'my auth token';
  
  const options = {
      uri: BASE_URL + '/my-route',
      qs: { myQS: true },
      headers: { authorization: AUTH_TOKEN }
      method: 'GET'
  };
  
  rp(options)
      .then(response =&gt; response)
      .catch(error =&gt; error);
  </code></pre>
  
  <p>Here's my base code with HTTPS.... 300ms delay in response</p>
  
  <pre><code>const https = require('https');
  
  const AUTH_TOKEN = 'my auth token';
  
  const options = {
      hostname: 'my hostname',
      port: 443,
      path: 'my path',
      headers: { authorization: AUTH_TOKEN },
      method: 'GET'
  };
  
  https.get(options, (res) =&gt; {
      res.on('data', d =&gt; d);
  };
  </code></pre>