title: Using proxy like fiddler with fetch api
body: <p>How can I set a proxy using Fetch API.
  I'm developing a node.js application and I'd like to have a look at the response body of an HTTPS response. I'm using this npm package that uses node http inside:
  <a href="https://www.npmjs.com/package/isomorphic-fetch" rel="noreferrer">https://www.npmjs.com/package/isomorphic-fetch</a></p>
  
  <p>I tried to set the env variables like:</p>
  
  <pre><code>set https_proxy=http://127.0.0.1:8888
  set http_proxy=http://127.0.0.1:8888
  set NODE_TLS_REJECT_UNAUTHORIZED=0
  </code></pre>
  
  <p>but it seems to work only with request NPM node module.</p>
  
  <p>I always get the following message:</p>
  
  <pre><code>http://127.0.0.1:8888
  (node:30044) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): FetchError: request to https://www.index.hu failed, reason: read ECONNRESET
  </code></pre>