Interface RestTemplateRequestCustomizer<T extends org.springframework.http.client.ClientHttpRequest>
- Type Parameters:
T
- theClientHttpRequest
type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface RestTemplateRequestCustomizer<T extends org.springframework.http.client.ClientHttpRequest>
Callback interface that can be used to customize the
ClientHttpRequest
sent
from a RestTemplate
.- Since:
- 2.2.0
- See Also:
-
RestTemplateBuilder
ClientHttpRequestInitializer
-
Method Summary
-
Method Details
-
customize
Customize the specifiedClientHttpRequest
.- Parameters:
request
- the request to customize
-