接口 AsyncClientHttpRequestFactory
- 所有已知实现类:
HttpComponentsAsyncClientHttpRequestFactory
,InterceptingAsyncClientHttpRequestFactory
,MockMvcClientHttpRequestFactory
,Netty4ClientHttpRequestFactory
,OkHttp3ClientHttpRequestFactory
,SimpleClientHttpRequestFactory
@Deprecated public interface AsyncClientHttpRequestFactory
已过时。as of Spring 5.0, in favor ofClientHttpConnector
Factory forAsyncClientHttpRequest
objects. Requests are created by thecreateAsyncRequest(URI, HttpMethod)
method.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 AsyncClientHttpRequest
createAsyncRequest(URI uri, HttpMethod httpMethod)
已过时。Create a new asynchronousAsyncClientHttpRequest
for the specified URI and HTTP method.
方法详细资料
createAsyncRequest
AsyncClientHttpRequest createAsyncRequest(URI uri, HttpMethod httpMethod) throws IOException
已过时。Create a new asynchronousAsyncClientHttpRequest
for 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