ProxySupport
A module defining functionality related to proxy support for actors sending HTTP(S) requests.
Proxies are enabled by passing a special ''ProxySelectorFunc'' to the ''apply()'' function of HttpRequestSender. The function then installs a proxy based on the URL to be used by the actor. This module defines a couple of default proxy selector functions.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ProxySupport.type
Members list
Type members
Classlikes
A class describing a proxy connection to be used when sending HTTP(S) requests.
A class describing a proxy connection to be used when sending HTTP(S) requests.
Value parameters
- address
-
the address of the proxy server
- credentials
-
optional credentials to authenticate against the proxy
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Types
A function to select a specific proxy server based on a request URI. The function is passed the URI and returns an ''Option'' with the ProxySpec to use for this URI. A return value of ''None'' indicates a direct internet connection.
A function to select a specific proxy server based on a request URI. The function is passed the URI and returns an ''Option'' with the ProxySpec to use for this URI. A return value of ''None'' indicates a direct internet connection.
Attributes
Value members
Concrete methods
Returns a ''ProxySelectorFunc'' that always returns the provided ''ProxySpec'', independent on the request URI. This selector function therefore routes all requests over this proxy.
Returns a ''ProxySelectorFunc'' that always returns the provided ''ProxySpec'', independent on the request URI. This selector function therefore routes all requests over this proxy.
Value parameters
- spec
-
the ''ProxySpec'' defining the proxy connection
Attributes
- Returns
-
a selector function using this proxy
Concrete fields
Constant for a ''ProxySelectorFunc'' that adheres to the proxy settings defined for the current JVM. This function queries the default ''ProxySelector'' for the passed in URI and constructs a ''ProxySpec'' based on the result.
Constant for a ''ProxySelectorFunc'' that adheres to the proxy settings defined for the current JVM. This function queries the default ''ProxySelector'' for the passed in URI and constructs a ''ProxySpec'' based on the result.