Interface ApacheHttpClient5TransportBuilder.RequestConfigCallback
- Enclosing class:
ApacheHttpClient5TransportBuilder
public static interface ApacheHttpClient5TransportBuilder.RequestConfigCallback
Callback used the default
RequestConfig being set to the CloseableHttpClient- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.client5.http.config.RequestConfig.BuildercustomizeRequestConfig(org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder) Allows to customize theRequestConfigthat will be used with each request.
-
Method Details
-
customizeRequestConfig
org.apache.hc.client5.http.config.RequestConfig.Builder customizeRequestConfig(org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder) Allows to customize theRequestConfigthat 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 theRestClientBuilderinternally sets.- Parameters:
requestConfigBuilder- theRestClientBuilderfor customizing the request configuration.
-