Class OkHttpAsyncClientProvider

java.lang.Object
com.azure.core.http.okhttp.OkHttpAsyncClientProvider
All Implemented Interfaces:
com.azure.core.http.HttpClientProvider

public final class OkHttpAsyncClientProvider extends Object implements com.azure.core.http.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.

See Also:
  • Constructor Details

    • OkHttpAsyncClientProvider

      public OkHttpAsyncClientProvider()
      For testing purpose only, assigning 'AZURE_ENABLE_HTTP_CLIENT_SHARING' to 'enableHttpClientSharing' for 'final' modifier.
  • Method Details

    • createInstance

      public com.azure.core.http.HttpClient createInstance()
      Specified by:
      createInstance in interface com.azure.core.http.HttpClientProvider
    • createInstance

      public com.azure.core.http.HttpClient createInstance(com.azure.core.util.HttpClientOptions clientOptions)
      Specified by:
      createInstance in interface com.azure.core.http.HttpClientProvider