接口 AsyncClientHttpRequestExecution
public interface AsyncClientHttpRequestExecution
Represents the context of a client-side HTTP request execution.Used to invoke the next interceptor in the interceptor chain, or - if the calling interceptor is last - execute the request itself.
- 从以下版本开始:
- 4.3
- 作者:
- Jakub Narloch, Rossen Stoyanchev
- 另请参阅:
AsyncClientHttpRequestInterceptor
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ListenableFuture<ClientHttpResponse>
executeAsync(HttpRequest request, byte[] body)
Resume the request execution by invoking the next interceptor in the chain or executing the request to the remote service.
方法详细资料
executeAsync
ListenableFuture<ClientHttpResponse> executeAsync(HttpRequest request, byte[] body) throws IOException
Resume the request execution by invoking the next interceptor in the chain or executing the request to the remote service.- 参数:
request
- the HTTP request, containing the HTTP method and headersbody
- the body of the request- 返回:
- a corresponding future handle
- 抛出:
IOException
- in case of I/O errors