接口 RequestCallback

所有已知实现类:
RestTemplate.AcceptHeaderRequestCallback, RestTemplate.HttpEntityRequestCallback
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@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:

从以下版本开始:
4.0
作者:
Arjen Poutsma
另请参阅: