Interface RequestCallback

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 RequestCallback
Callback interface for code that operates on a ClientHttpRequest. Allows manipulating the request headers, and write to the request body.

Used internally by the RestTemplate, but also useful for application code. There several available factory methods:

Arjen Poutsma
See Also: