caw icon indicating copy to clipboard operation
caw copied to clipboard

Drop get-proxy

Open stevenvachon opened this issue 8 years ago • 1 comments

It doesn't support NO_PROXY and does not take an input URL (or protocol) to discern which env var to use, as there can be multiple. Meanwhile, proxy-from-env does all of this and more.

stevenvachon avatar Jun 01 '17 13:06 stevenvachon

I can write a PR for this, if you'd like; taking my tests from https://github.com/stevenvachon/auto-tunnel

The API would need to be changed to:

got('todomvc.com', {
	agent: caw('http://todomvc.com')
}, () => {});

…where the current first index (being a proxy URL override) would need to be changed to the request URL. This ties into #16

stevenvachon avatar Jun 07 '17 15:06 stevenvachon