org.springframework.http.client
Interface ClientHttpRequest
- All Superinterfaces:
- HttpMessage, HttpOutputMessage, HttpRequest
- All Known Implementing Classes:
- AbstractBufferingClientHttpRequest, AbstractClientHttpRequest, BufferingClientHttpRequestWrapper, CommonsClientHttpRequest, HttpComponentsClientHttpRequest, InterceptingClientHttpRequest, SimpleBufferingClientHttpRequest, SimpleStreamingClientHttpRequest
public interface ClientHttpRequest
- extends HttpRequest, HttpOutputMessage
Represents a client-side HTTP request. Created via an implementation of the ClientHttpRequestFactory
.
A HttpRequest
can be executed, getting a ClientHttpResponse
which can be read from.
- Since:
- 3.0
- Author:
- Arjen Poutsma
- See Also:
ClientHttpRequestFactory.createRequest(java.net.URI, HttpMethod)
execute
ClientHttpResponse execute()
throws java.io.IOException
- Execute this request, resulting in a
ClientHttpResponse
that can be read.
- Returns:
- the response result of the execution
- Throws:
java.io.IOException
- in case of I/O errors