Last active
May 18, 2020 14:57
-
-
Save dhaval201279/409eedc7edb5e1a770e30aedc85c67fa to your computer and use it in GitHub Desktop.
Configuring HttpClient using RequestConfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private RequestConfig prepareHttpClientRequestConfig() { | |
RequestConfig requestConfig = RequestConfig | |
.custom() | |
.setConnectTimeout(CONNECT_TIMEOUT) | |
.setConnectionRequestTimeout(CONNECTION_REQUEST_TIMEOUT) | |
.setSocketTimeout(SOCKET_TIMEOUT) | |
.build(); | |
return requestConfig; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment