Package io.jenkins.plugins.hiddenlayer
Class JenkinsHttpClient
java.lang.Object
io.jenkins.plugins.hiddenlayer.JenkinsHttpClient
- All Implemented Interfaces:
com.hiddenlayer.api.core.http.HttpClient,AutoCloseable
Custom HttpClient implementation based on the SDK's OkHttpClient.
Adds support for proxy authentication via OkHttp's proxyAuthenticator.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic JenkinsHttpClient.Builderbuilder()voidclose()com.hiddenlayer.api.core.http.HttpResponseexecute(com.hiddenlayer.api.core.http.HttpRequest request, com.hiddenlayer.api.core.RequestOptions requestOptions) CompletableFuture<com.hiddenlayer.api.core.http.HttpResponse> executeAsync(com.hiddenlayer.api.core.http.HttpRequest request, com.hiddenlayer.api.core.RequestOptions requestOptions) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hiddenlayer.api.core.http.HttpClient
execute, executeAsync
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacecom.hiddenlayer.api.core.http.HttpClient
-
builder