Package io.jenkins.plugins.okhttp.api
Class JenkinsOkHttpClient
- java.lang.Object
-
- io.jenkins.plugins.okhttp.api.JenkinsOkHttpClient
-
public class JenkinsOkHttpClient extends Object
This class allows to take into consideration if Jenkins is running behind a proxy or not and return a properOkHttpClient
client.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static okhttp3.OkHttpClient.Builder
newClientBuilder(okhttp3.OkHttpClient httpClient)
Generates a new builder for the given base client.
-
-
-
Method Detail
-
newClientBuilder
public static okhttp3.OkHttpClient.Builder newClientBuilder(okhttp3.OkHttpClient httpClient)
Generates a new builder for the given base client. It applies the currentJenkins.proxy
configuration.- Returns:
- a builder to configure the client
-
-