HttpClient.getProxyFor

Checks if the given uri should be proxied according to the httpProxy, httpsProxy, proxyIgnore variables and returns either httpProxy, httpsProxy or null.

If neither httpProxy or httpsProxy are set this always returns null. Same if proxyIgnore contains *.

DNS is not resolved for proxyIgnore IPs, only IPs match IPs and hosts match hosts.

class HttpClient
string
getProxyFor

Meta