spring-framework / org.springframework.http.client / HttpComponentsAsyncClientHttpRequestFactory / <init>

<init>

HttpComponentsAsyncClientHttpRequestFactory()

Create a new instance of the HttpComponentsAsyncClientHttpRequestFactory with a default HttpAsyncClient and HttpClient.

HttpComponentsAsyncClientHttpRequestFactory(asyncClient: HttpAsyncClient)

Create a new instance of the HttpComponentsAsyncClientHttpRequestFactory with the given HttpAsyncClient instance and a default HttpClient.

Parameters

asyncClient - the HttpAsyncClient instance to use for this request factory

Since
4.3.10

HttpComponentsAsyncClientHttpRequestFactory(asyncClient: CloseableHttpAsyncClient)

Create a new instance of the HttpComponentsAsyncClientHttpRequestFactory with the given CloseableHttpAsyncClient instance and a default HttpClient.

Parameters

asyncClient - the CloseableHttpAsyncClient instance to use for this request factory

HttpComponentsAsyncClientHttpRequestFactory(httpClient: HttpClient, asyncClient: HttpAsyncClient)

Create a new instance of the HttpComponentsAsyncClientHttpRequestFactory with the given HttpClient and HttpAsyncClient instances.

Parameters

httpClient - the HttpClient instance to use for this request factory

asyncClient - the HttpAsyncClient instance to use for this request factory

Since
4.3.10

HttpComponentsAsyncClientHttpRequestFactory(httpClient: CloseableHttpClient, asyncClient: CloseableHttpAsyncClient)

Create a new instance of the HttpComponentsAsyncClientHttpRequestFactory with the given CloseableHttpClient and CloseableHttpAsyncClient instances.

Parameters

httpClient - the CloseableHttpClient instance to use for this request factory

asyncClient - the CloseableHttpAsyncClient instance to use for this request factory