public static AsyncHttpClient newAsyncHttpClient(HttpClientConfiguration configuration, EmbeddedServer<?> server) {
		AsyncHttpClientConfig config = new DefaultAsyncHttpClientConfig.Builder()
			.setFollowRedirect(configuration.isFollowRedirect())
			.build();

		DefaultAsyncHttpClient client = new DefaultAsyncHttpClient(config);
		return new AsyncHttpClient(configuration, server, client);
	}
public static AsyncHttpClient newAsyncHttpClient(HttpClientConfiguration configuration, EmbeddedServer<?> server) {
		AsyncHttpClientConfig config = new DefaultAsyncHttpClientConfig.Builder()
			.setFollowRedirect(configuration.isFollowRedirect())
			.build();

		DefaultAsyncHttpClient client = new DefaultAsyncHttpClient(config);
		return new AsyncHttpClient(configuration, server, client);
	}
public static AsyncHttpClient newAsyncHttpClient ( HttpClientConfiguration configuration , EmbeddedServer < ? > server ) { AsyncHttpClientConfig config = new DefaultAsyncHttpClientConfig . Builder ( ) . setFollowRedirect ( configuration . isFollowRedirect ( ) ) . build ( ) ; DefaultAsyncHttpClient client = new DefaultAsyncHttpClient ( config ) ; return new AsyncHttpClient ( 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 .