Class OkHttpAsyncHttpClientBuilder
- java.lang.Object
-
- com.azure.android.core.http.okhttp.OkHttpAsyncHttpClientBuilder
-
public class OkHttpAsyncHttpClientBuilder extends java.lang.Object
Builder class responsible for creating instances ofHttpClient
backed by OkHttp.
-
-
Constructor Summary
Constructors Constructor Description OkHttpAsyncHttpClientBuilder()
Creates OkHttpAsyncHttpClientBuilder.OkHttpAsyncHttpClientBuilder(okhttp3.OkHttpClient okHttpClient)
Creates OkHttpAsyncHttpClientBuilder from the builder of an existing OkHttpClient.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.android.core.http.HttpClient
build()
Creates a new OkHttp-backedHttpClient
instance on every call, using the configuration set in the builder at the time of the build method call.
-
-
-
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
-
-