code: 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);
  	}
docs: 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}.