public static interface RestClientBuilder.RequestConfigCallback
RequestConfig
being set to the CloseableHttpClient
HttpClientBuilder.setDefaultRequestConfig(org.apache.http.client.config.RequestConfig)
Modifier and Type | Method | Description |
---|---|---|
org.apache.http.client.config.RequestConfig.Builder |
customizeRequestConfig(org.apache.http.client.config.RequestConfig.Builder requestConfigBuilder) |
Allows to customize the
RequestConfig that will be used with each request. |
org.apache.http.client.config.RequestConfig.Builder customizeRequestConfig(org.apache.http.client.config.RequestConfig.Builder requestConfigBuilder)
RequestConfig
that will be used with each request.
It is common to customize the different timeout values through this method without losing any other useful default
value that the RestClientBuilder
internally sets.