Class NettyAsyncHttpClientProvider

java.lang.Object
com.azure.core.http.netty.NettyAsyncHttpClientProvider
All Implemented Interfaces:
com.azure.core.http.HttpClientProvider

public final class NettyAsyncHttpClientProvider extends Object implements com.azure.core.http.HttpClientProvider

The NettyAsyncHttpClientProvider class is an implementation of the HttpClientProvider interface that provides an instance of HttpClient based on Netty. Instances are either shared or a newly created based on the configuration.

See Also:
  • Constructor Details

    • NettyAsyncHttpClientProvider

      public NettyAsyncHttpClientProvider()
      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