接口 AsyncClientHttpRequest
- 所有超级接口:
HttpMessage,HttpOutputMessage,HttpRequest
- 所有已知实现类:
MockAsyncClientHttpRequest
@Deprecated public interface AsyncClientHttpRequest extends HttpRequest, HttpOutputMessage
已过时。as of Spring 5.0, in favor ofClientRequestRepresents a client-side asynchronous HTTP request. Created via an implementation of theAsyncClientHttpRequestFactory.A
AsyncHttpRequestcan be executed, getting a futureClientHttpResponsewhich can be read from.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
- 另请参阅:
AsyncClientHttpRequestFactory.createAsyncRequest(java.net.URI, org.springframework.http.HttpMethod)
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 ListenableFuture<ClientHttpResponse>executeAsync()已过时。Execute this request asynchronously, resulting in a Future handle.从接口继承的方法 org.springframework.http.HttpMessage
getHeaders
从接口继承的方法 org.springframework.http.HttpOutputMessage
getBody
从接口继承的方法 org.springframework.http.HttpRequest
getMethod, getMethodValue, getURI
方法详细资料
executeAsync
ListenableFuture<ClientHttpResponse> executeAsync() throws IOException
已过时。Execute this request asynchronously, resulting in a Future handle.ClientHttpResponsethat can be read.- 返回:
- the future response result of the execution
- 抛出:
IOException- in case of I/O errors