Class OkHttpAsyncHttpClientBuilder


  • public class OkHttpAsyncHttpClientBuilder
    extends java.lang.Object
    Builder class responsible for creating instances of HttpClient backed by OkHttp.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.azure.android.core.http.HttpClient build()
      Creates a new OkHttp-backed HttpClient instance on every call, using the configuration set in the builder at the time of the build method call.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OkHttpAsyncHttpClientBuilder

        public OkHttpAsyncHttpClientBuilder()
        Creates OkHttpAsyncHttpClientBuilder.
      • OkHttpAsyncHttpClientBuilder

        public OkHttpAsyncHttpClientBuilder​(okhttp3.OkHttpClient okHttpClient)
        Creates OkHttpAsyncHttpClientBuilder from the builder of an existing OkHttpClient.
        Parameters:
        okHttpClient - the httpclient
    • Method Detail

      • build

        public com.azure.android.core.http.HttpClient build()
        Creates a new OkHttp-backed HttpClient instance on every call, using the configuration set in the builder at the time of the build method call.
        Returns:
        A new OkHttp-backed HttpClient instance.