Skip to content

Commit

Permalink
Allow additional configuration of the HttpClientConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
Abram Thielke authored and renner committed Oct 21, 2016
1 parent 4d01662 commit 20107a2
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,18 @@ private HttpClientBuilder initializeHttpClient() {
HttpClientBuilder httpClientBuilder = HttpClients.custom();
configureTimeouts(httpClientBuilder);
configureProxyIfSpecified(httpClientBuilder);
customizeHttpClient(httpClientBuilder);
return httpClientBuilder;
}

/**
* Allow subclasses to customize the {@link HttpClientBuilder} as needed.
*
* @param httpClientBuilder the {@link HttpClientBuilder} to be customized
*/
protected void customizeHttpClient(HttpClientBuilder httpClientBuilder) {
}

/**
* Configure the supplied HttpClientBuilder with timeout settings from the current
* ClientConfig object.
Expand Down

0 comments on commit 20107a2

Please sign in to comment.