Interface ProxySpec


  • public interface ProxySpec
    Class for specifying configuration for an HTTP proxy to utilize for outgoing requests using HttpClient.
    Since:
    1.8.0
    • Method Detail

      • host

        ProxySpec host​(String host)
        Configure the host that will proxy outbound HTTP requests.
        Parameters:
        host - the host name for the HTTP proxy
        Returns:
        this
      • port

        ProxySpec port​(int port)
        Configure the port on the proxy to will outbound HTTP requests will be sent.
        Parameters:
        port - the port for the HTTP proxy
        Returns:
        this
      • nonProxyHosts

        ProxySpec nonProxyHosts​(Collection<String> nonProxyHosts)
        Configure a collection of patterns for which if any are matched, the outbound request will bypass the HTTP proxy.

        The format of the values in this list follow the standard Java Networking and Proxies standards

        Parameters:
        nonProxyHosts - a list of patterns to match the destination host
        Returns:
        this