Class 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 proper OkHttpClient 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 current Jenkins.proxy configuration.
        Returns:
        a builder to configure the client