TooTallNate / node-proxy-agent

Maps proxy protocols to `http.Agent` implementations
285 stars 69 forks source link

add support for getProxyForUrl option #69

Closed mceIdo closed 1 year ago

mceIdo commented 2 years ago

This PR adds the option to provide a getProxyForUrl(url: string) => string function as an option to the ProxyAgent constructor. We found it useful in places where proxy address is different for different hosts (and pac is not an option). In the mean time, just because production schedule, we published it under @mcesystems/proxy-agent, but we'd be happy to see this in the main package and use it again if merged

TooTallNate commented 1 year ago

This code in this repository has been moved to the proxy-agents monorepo, so I am closing this pull request. If you feel that this change is still necessary as of the latest release, feel free to open a new pull request over there.