接口 AsyncClientHttpRequestFactory
- 所有已知实现类:
HttpComponentsAsyncClientHttpRequestFactory,InterceptingAsyncClientHttpRequestFactory,Netty4ClientHttpRequestFactory,OkHttp3ClientHttpRequestFactory,OkHttpClientHttpRequestFactory,SimpleClientHttpRequestFactory
public interface AsyncClientHttpRequestFactory
Factory forAsyncClientHttpRequestobjects. Requests are created by thecreateAsyncRequest(URI, HttpMethod)method.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 AsyncClientHttpRequestcreateAsyncRequest(URI uri, HttpMethod httpMethod)Create a new asynchronousAsyncClientHttpRequestfor the specified URI and HTTP method.
方法详细资料
createAsyncRequest
AsyncClientHttpRequest createAsyncRequest(URI uri, HttpMethod httpMethod) throws IOException
Create a new asynchronousAsyncClientHttpRequestfor the specified URI and HTTP method.The returned request can be written to, and then executed by calling
AsyncClientHttpRequest.executeAsync().- 参数:
uri- the URI to create a request forhttpMethod- the HTTP method to execute- 返回:
- the created request
- 抛出:
IOException- in case of I/O errors