类 HttpHeaderInterceptor
java.lang.Object
org.springframework.boot.devtools.remote.client.HttpHeaderInterceptor
- 所有已实现的接口:
ClientHttpRequestInterceptor
ClientHttpRequestInterceptor
to populate arbitrary HTTP headers with a value.
For example, it might be used to provide an X-AUTH-TOKEN and value for security
purposes.- 从以下版本开始:
- 1.3.0
- 作者:
- Rob Winch
-
构造器概要
构造器构造器说明HttpHeaderInterceptor
(String name, String value) Creates a newHttpHeaderInterceptor
instance. -
方法概要
-
构造器详细资料
-
HttpHeaderInterceptor
Creates a newHttpHeaderInterceptor
instance.- 参数:
name
- the header name to populate. Cannot be null or empty.value
- the header value to populate. Cannot be null or empty.
-
-
方法详细资料
-
intercept
public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOException - 指定者:
intercept
在接口中ClientHttpRequestInterceptor
- 抛出:
IOException
-