public static OkHttpClient newOkHttpClient(HttpClientConfiguration configuration, EmbeddedServer<?> server) {
    """
	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}.
    """
		okhttp3.OkHttpClient client = new okhttp3.OkHttpClient.Builder()
			.followRedirects(configuration.isFollowRedirect())
			.build();

		return new OkHttpClient(configuration, server, client);
	}
public static OkHttpClient newOkHttpClient(HttpClientConfiguration configuration, EmbeddedServer<?> server) {
		okhttp3.OkHttpClient client = new okhttp3.OkHttpClient.Builder()
			.followRedirects(configuration.isFollowRedirect())
			.build();

		return new OkHttpClient(configuration, server, client);
	}
public static OkHttpClient newOkHttpClient ( HttpClientConfiguration configuration , EmbeddedServer < ? > server ) { okhttp3 . OkHttpClient client = new okhttp3 . OkHttpClient . Builder ( ) . followRedirects ( configuration . isFollowRedirect ( ) ) . build ( ) ; return new OkHttpClient ( 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 .