Package org.springframework.http.client
Interface ClientHttpRequest
- All Superinterfaces:
HttpMessage
,HttpOutputMessage
,HttpRequest
- All Known Implementing Classes:
AbstractClientHttpRequest
,MockAsyncClientHttpRequest
,MockClientHttpRequest
public interface ClientHttpRequest extends HttpRequest, HttpOutputMessage
Represents a client-side HTTP request. Created via an implementation of theClientHttpRequestFactory
.A
ClientHttpRequest
can be executed, receiving aClientHttpResponse
which can be read from.- Since:
- 3.0
- Author:
- Arjen Poutsma
- See Also:
ClientHttpRequestFactory.createRequest(java.net.URI, HttpMethod)
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClientHttpResponse
execute()
Execute this request, resulting in aClientHttpResponse
that can be read.Methods inherited from interface org.springframework.http.HttpMessage
getHeaders
Methods inherited from interface org.springframework.http.HttpOutputMessage
getBody
Methods inherited from interface org.springframework.http.HttpRequest
getMethod, getMethodValue, getURI
Method Detail
execute
ClientHttpResponse execute() throws IOException
Execute this request, resulting in aClientHttpResponse
that can be read.- Returns:
- the response result of the execution
- Throws:
IOException
- in case of I/O errors