tomas / needle

Nimble, streamable HTTP client for Node.js. With proxy, iconv, cookie, deflate & multipart support.
https://www.npmjs.com/package/needle
MIT License
1.63k stars 236 forks source link

Support env HTTP_PROXY, HTTPS_PROXY #336

Closed cgcnrdpd closed 2 years ago

cgcnrdpd commented 4 years ago

Hello, I'm using https://github.com/Viber/viber-bot-node and the lib is using this lib, but your lib doesn't support proxy in env. Could you update your lib to support HTTP_PROXY and/or HTTPS_PROXY. Thank you so much!

TimothyJones commented 3 years ago

I would also like this!

tomas commented 3 years ago

Sure, no problem. Anyone would like to submit a PR for this?

robotoer commented 3 years ago

Would love to also have support for the NO_PROXY env var as well!