A - the type of addresspublic interface ProxyConfig<A>
ProxyConfigBuilder| Modifier and Type | Method and Description |
|---|---|
A |
address()
Address of the proxy.
|
Consumer<HttpHeaders> |
connectRequestHeadersInitializer()
An initializer for
HttpHeaders related to
HTTP/1.1 CONNECT request. |
static <A> ProxyConfig<A> |
forAddress(A address)
Returns a
ProxyConfig for the specified address. |
A address()
Usually, this is an unresolved proxy address and its type must match the type of address before resolution used
by SingleAddressHttpClientBuilder. However, if the client builder was created for a resolved address,
this address must also be already resolved. Otherwise, a runtime exception will occur.
Consumer<HttpHeaders> connectRequestHeadersInitializer()
HttpHeaders related to
HTTP/1.1 CONNECT request.
When this ProxyConfig is used for secure proxy tunnels (when
ClientSslConfig is configured) the tunnel is
always initialized using HTTP/1.1 CONNECT request. This Consumer can be used to set custom
HttpHeaders for that request, like proxy-authorization,
tracing, or any other header.
HttpHeaders related to
HTTP/1.1 CONNECT requeststatic <A> ProxyConfig<A> forAddress(A address)
ProxyConfig for the specified address.
All other ProxyConfig options will use their default values applied by ProxyConfigBuilder.
A - the type of addressaddress - Address of the proxyProxyConfig for the specified addressProxyConfigBuilder