Package com.azure.core.http.okhttp
Class OkHttpAsyncClientProvider
java.lang.Object
com.azure.core.http.okhttp.OkHttpAsyncClientProvider
- All Implemented Interfaces:
HttpClientProvider
This class provides an OkHttp-based implementation for the HttpClientProvider interface.
It is designed to create instances of HttpClient using OkHttp as the underlying client.
-
Constructor Summary
ConstructorsConstructorDescriptionFor testing purpose only, assigning 'AZURE_ENABLE_HTTP_CLIENT_SHARING' to 'enableHttpClientSharing' for 'final' modifier. -
Method Summary
-
Constructor Details
-
OkHttpAsyncClientProvider
public OkHttpAsyncClientProvider()For testing purpose only, assigning 'AZURE_ENABLE_HTTP_CLIENT_SHARING' to 'enableHttpClientSharing' for 'final' modifier.
-
-
Method Details
-
createInstance
- Specified by:
createInstancein interfaceHttpClientProvider
-
createInstance
- Specified by:
createInstancein interfaceHttpClientProvider
-