public static ApacheHttpClient newApacheHttpClient(HttpClientConfiguration configuration, EmbeddedServer<?> server) {
		HttpClientBuilder httpClientBuilder = HttpClientBuilder.create();
		if (!configuration.isFollowRedirect()) {
			httpClientBuilder.disableRedirectHandling();
		}

		CloseableHttpClient client = httpClientBuilder.build();
		return new ApacheHttpClient(configuration, server, client);
	}
public static ApacheHttpClient newApacheHttpClient(HttpClientConfiguration configuration, EmbeddedServer<?> server) {
		HttpClientBuilder httpClientBuilder = HttpClientBuilder.create();
		if (!configuration.isFollowRedirect()) {
			httpClientBuilder.disableRedirectHandling();
		}

		CloseableHttpClient client = httpClientBuilder.build();
		return new ApacheHttpClient(configuration, server, client);
	}
public static ApacheHttpClient newApacheHttpClient ( HttpClientConfiguration configuration , EmbeddedServer < ? > server ) { HttpClientBuilder httpClientBuilder = HttpClientBuilder . create ( ) ; if ( ! configuration . isFollowRedirect ( ) ) { httpClientBuilder . disableRedirectHandling ( ) ; } CloseableHttpClient client = httpClientBuilder . build ( ) ; return new ApacheHttpClient ( configuration , server , client ) ; }
Create new http client using custom configuration.

@param configuration Client configuration.
@param server Embedded server.
@return Http client.
@throws NullPointerException If {@code server} or {@code configuration} are {@code null}.
Create new http client using custom configuration .