Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Configuring HttpClient using RequestConfig
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
You can’t perform that action at this time.