接口 ClientHttpRequestInitializer
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Callback interface for initializing a
ClientHttpRequest prior to it
being used.
Typically used with HttpAccessor and subclasses such as
RestTemplate to apply
consistent settings or headers to each request.
Unlike ClientHttpRequestInterceptor, this interface can apply
customizations without needing to read the entire request body into memory.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb
- 另请参阅:
-
方法概要
-
方法详细资料
-
initialize
Initialize the given client HTTP request.- 参数:
request- the request to configure
-