org.springframework.web.client.RequestCallback |
Callback interface for code that operates on a ClientHttpRequest
. Allows to manipulate the request
headers, and write to the request body.
Used internally by the RestTemplate
, but also useful for application code.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets called by
execute(String, HttpMethod, RequestCallback, ResponseExtractor with an opened ClientHttpRequest . |
Gets called by execute(String, HttpMethod, RequestCallback, ResponseExtractor
with an opened ClientHttpRequest
.
Does not need to care about closing the request or about handling errors:
this will all be handled by the RestTemplate
.
request | the active HTTP request |
---|
IOException | in case of I/O errors |
---|