cn.majingjing.http.client.interceptor.HttpInterceptor Maven / Gradle / Ivy
The newest version!
package cn.majingjing.http.client.interceptor;
import cn.majingjing.http.client.exception.HttpClientException;
import cn.majingjing.http.client.handler.chain.HttpChain;
import cn.majingjing.http.client.response.HttpResponse;
/**
* http 拦截器
*
* @author MaMarion
* @date 2020/5/1
*/
public interface HttpInterceptor {
/**
* 执行过滤器
*
* @param chain http调用链
* @return HttpResponse 响应对象
* @throws HttpClientException 请求失败将抛出Http异常
*/
HttpResponse intercept(HttpChain chain) throws HttpClientException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy