public static interface RestClientBuilder.HttpClientConfigCallback
CloseableHttpClient
instance used by a RestClient
instance.
Allows to customize default RequestConfig
being set to the client and any parameter that
can be set through HttpClientBuilder
Modifier and Type | Method | Description |
---|---|---|
org.apache.http.impl.nio.client.HttpAsyncClientBuilder |
customizeHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder httpClientBuilder) |
Allows to customize the
CloseableHttpAsyncClient being created and used by the RestClient . |
org.apache.http.impl.nio.client.HttpAsyncClientBuilder customizeHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder httpClientBuilder)
CloseableHttpAsyncClient
being created and used by the RestClient
.
Commonly used to customize the default CredentialsProvider
for authentication
or the SchemeIOSessionStrategy
for communication through ssl without losing any other useful default
value that the RestClientBuilder
internally sets, like connection pooling.