java.lang.Object
org.miaixz.bus.http.metric.http.RetryAndFollowUp
- All Implemented Interfaces:
Interceptor
This interceptor recovers from failures and follows redirects as necessary. It may throw an
IOException if
the call is canceled.- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Details
-
RetryAndFollowUp
-
-
Method Details
-
intercept
Description copied from interface:InterceptorIntercepts the givenchainto process a network request.- Specified by:
interceptin interfaceInterceptor- Parameters:
chain- The network call chain.- Returns:
- The
Responsefrom the network request. - Throws:
IOException- if an I/O error occurs during interception.
-