NettyAsyncHttpClientProvider Class

  • java.lang.Object
    • com.azure.core.http.netty.NettyAsyncHttpClientProvider

Implements

public final class NettyAsyncHttpClientProvider
implements 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.

Constructor Summary

Constructor Description
NettyAsyncHttpClientProvider()

For testing purpose only, assigning 'AZURE_ENABLE_HTTP_CLIENT_SHARING' to 'enableHttpClientSharing' for 'final' modifier.

Method Summary

Modifier and Type Method and Description
HttpClient createInstance()
HttpClient createInstance(HttpClientOptions clientOptions)

Methods inherited from java.lang.Object

Constructor Details

NettyAsyncHttpClientProvider

public NettyAsyncHttpClientProvider()

For testing purpose only, assigning 'AZURE_ENABLE_HTTP_CLIENT_SHARING' to 'enableHttpClientSharing' for 'final' modifier.

Method Details

createInstance

public HttpClient createInstance()

createInstance

public HttpClient createInstance(HttpClientOptions clientOptions)

Parameters:

clientOptions

Applies to