Package org.miaixz.bus.http.metric
Interface Interceptor
- All Known Implementing Classes:
BridgeInterceptor,CacheInterceptor,CallServerInterceptor,ConnectInterceptor,FileInterceptor,RetryAndFollowUp
public interface Interceptor
观察、修改和潜在的短路请求,并返回相应的响应
通常,拦截器在请求或响应上添加、删除或转换标头
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptiondefault void说明该拦截器实现的作用 方便其他业务场景或者服务使用,例如链路追踪等网络请求拦截
-
Method Details
-
intercept
网络请求拦截- Parameters:
chain- 网络调用链- Returns:
Response- Throws:
IOException- 异常
-
instructions
default void instructions()说明该拦截器实现的作用 方便其他业务场景或者服务使用,例如链路追踪等
-