junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/okhttp3/OkHttpClient.java
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}.