public interface AsyncClientHttpRequest extends HttpRequest, HttpOutputMessage
AsyncClientHttpRequestFactory
.
A AsyncHttpRequest
can be executed, getting a
future ClientHttpResponse
which can be read from.
AsyncClientHttpRequestFactory.createAsyncRequest(java.net.URI, org.springframework.http.HttpMethod)
Modifier and Type | Method and Description |
---|---|
ListenableFuture<ClientHttpResponse> |
executeAsync()
Execute this request asynchronously, resulting in a future
ClientHttpResponse that can be read. |
getMethod, getURI
getBody
getHeaders
ListenableFuture<ClientHttpResponse> executeAsync() throws IOException
ClientHttpResponse
that can be read.IOException
- in case of I/O errors