Package org.springframework.http.client
Interface 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.
- Since:
- 4.3
- Author:
- Jakub Narloch, Rossen Stoyanchev
- See Also:
AsyncClientHttpRequestInterceptor
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
Method Detail
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.- Parameters:
request
- the HTTP request, containing the HTTP method and headersbody
- the body of the request- Returns:
- a corresponding future handle
- Throws:
IOException
- in case of I/O errors