Uses of Interface
org.miaixz.bus.http.metric.Interceptor
Packages that use Interceptor
Package
Description
Java应用的HTTP客户端
-
Uses of Interceptor in org.miaixz.bus.http
Methods in org.miaixz.bus.http that return types with arguments of type InterceptorModifier and TypeMethodDescriptionHttpd.Builder.interceptors()返回一个可修改的拦截器列表,该列表观察每个调用的完整跨度: 从建立连接之前(如果有的话)到选择响应源之后(源服务器、缓存或两者都有).Httpd.interceptors()Httpd.Builder.networkInterceptors()返回观察单个网络请求和响应的可修改的拦截器列表。 这些拦截器必须调用NewChain.proceed(org.miaixz.bus.http.Request)只执行一次:网络拦截器短路或重复网络请求是错误的Httpd.networkInterceptors()Methods in org.miaixz.bus.http with parameters of type InterceptorModifier and TypeMethodDescriptionHttpd.Builder.addInterceptor(Interceptor interceptor) Httpd.Builder.addNetworkInterceptor(Interceptor interceptor) -
Uses of Interceptor in org.miaixz.bus.http.accord
Classes in org.miaixz.bus.http.accord that implement Interceptor -
Uses of Interceptor in org.miaixz.bus.http.cache
Classes in org.miaixz.bus.http.cache that implement Interceptor -
Uses of Interceptor in org.miaixz.bus.http.metric.http
Classes in org.miaixz.bus.http.metric.http that implement InterceptorModifier and TypeClassDescriptionclass从应用程序代码连接到网络代码。首先,它从用户请求构建网络请求。 然后它继续调用网络。最后,它从网络响应构建用户响应class这是链中的最后一个拦截器 它对服务器进行网络调用class该拦截器从失败中恢复,并根据需要进行重定向 如果调用被取消,它可能会抛出IOExceptionConstructor parameters in org.miaixz.bus.http.metric.http with type arguments of type InterceptorModifierConstructorDescriptionRealInterceptorChain(List<Interceptor> interceptors, Transmitter transmitter, Exchange exchange, int index, Request request, NewCall call, int connectTimeout, int readTimeout, int writeTimeout) -
Uses of Interceptor in org.miaixz.bus.http.plugin.httpz
Classes in org.miaixz.bus.http.plugin.httpz that implement InterceptorMethods in org.miaixz.bus.http.plugin.httpz with parameters of type InterceptorModifier and TypeMethodDescriptionHttpBuilder.addInterceptor(Interceptor interceptor) HttpBuilder.addNetworkInterceptor(Interceptor interceptor)