cn.majingjing.http.client.handler.chain.HttpChain Maven / Gradle / Ivy
package cn.majingjing.http.client.handler.chain;
import cn.majingjing.http.client.exception.HttpClientException;
import cn.majingjing.http.client.request.HttpRequest;
import cn.majingjing.http.client.response.HttpResponse;
/**
* Http 调用链
*
* @author MaMarion
* @date 2020/5/1
*/
public interface HttpChain {
/**
* 执行http请求
* @param request 请求对象
* @return HttpResponse
* @throws HttpClientException 处理失败抛出
*/
HttpResponse proceed(HttpRequest request) throws HttpClientException;
/**
* 获取请求对象
* @return HttpRequest
*/
HttpRequest getHttpRequest();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy