proxySelector

Set the proxy selection policy to be used.

The default behavior is to respect common proxy system properties and environment variables.

JVM System Properties:

  • http.proxyHost

  • http.proxyPort

  • https.proxyHost

  • https.proxyPort

  • http.nonProxyHosts

  • http.noProxyHosts

Environment variables in the given order:

  • http_proxy, HTTP_PROXY

  • https_proxy, HTTPS_PROXY

  • no_proxy, NO_PROXY

Disabling proxy selection explicitly by using ProxySelector.NoProxy

proxySelector = ProxySelector.NoProxy