Search in sources :

Example 1 with HttpClientBuilder

use of org.projectnessie.client.http.HttpClientBuilder in project nessie by projectnessie.

the class BaseClientAuthTest method api.

protected NessieApiV1 api() {
    if (api != null) {
        return api;
    }
    HttpClientBuilder builder = HttpClientBuilder.builder().withUri("http://localhost:19121/api/v1");
    if (customizer != null) {
        customizer.accept(builder);
    }
    api = builder.build(NessieApiV1.class);
    return api;
}
Also used : HttpClientBuilder(org.projectnessie.client.http.HttpClientBuilder) NessieApiV1(org.projectnessie.client.api.NessieApiV1)

Aggregations

NessieApiV1 (org.projectnessie.client.api.NessieApiV1)1 HttpClientBuilder (org.projectnessie.client.http.HttpClientBuilder)1