{8.2.0-new} Customizing HttpClient

Several methods are provided for customizing the underlying HTTP client and client builder classes:

- {@link oajr.client2.RestClientBuilder}
  - {@link oajr.client2.RestClientBuilder#httpClientBuilder(HttpClientBuilder) httpClientBuilder(HttpClientBuilder)} - Set the client builder yourself.
  - {@link oajr.client2.RestClientBuilder#createHttpClientBuilder() createHttpClientBuilder()} - Override to create the client builder.
  - {@link oajr.client2.RestClientBuilder#createHttpClient() createHttpClient()} - Override to create the client.
  - {@link oajr.client2.RestClientBuilder#createConnectionManager() createConnectionManager()} - Override to create the connection management.

Additionally, all methods on the HttpClientBuilder class have been extended with fluent setters.

##### Example:

// Create a client with customized HttpClient settings. MyBean bean = RestClient .create() .disableRedirectHandling() .connectionManager(myConnectionManager) .addInterceptorFirst(myHttpRequestInterceptor) .build();

Refer to the {@link org.apache.http.client.impl.HttpClientBuilder HttpClientBuilder} docs for more information.