Skip to content

Proxy

Base class for proxy implementations, providing common proxy configuration and behavior.

Remarks:

The Proxy class serves as the base class for various proxy client implementations, such as HTTPProxy and SOCKSProxy. It provides a foundation for configuring proxy settings and handling proxy-related functionality common to all proxy types, like connecting to a proxy, setting up a request to go through the proxy and deciding whether an address is usable with the proxy or the plugin must connect directly.

Fields:

Uri Address

Address of the proxy server. It has to be in the http://proxyaddress:port form.

Credentials Credentials

Credentials for authenticating with the proxy server.

List<String> Exceptions

List of exceptions for which the proxy should not be used. Elements of this list are compared to the Host (DNS or IP address) part of the uri.

Methods:

Boolean UseProxyForAddress(Uri)

Determines whether the proxy should be used for a specific address based on the configured exceptions.

Comments