me.chanjar.weixin.util.http.RequestExecutor Maven / Gradle / Ivy
The newest version!
package me.chanjar.weixin.util.http;
import java.io.IOException;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import me.chanjar.weixin.exception.WxErrorException;
/**
* http请求执行器
* @author chanjarster
*
* @param 返回值类型
* @param 请求参数类型
*/
public interface RequestExecutor {
public static final CloseableHttpClient httpclient = HttpClients.createDefault();
public T execute(String uri, E data) throws WxErrorException, ClientProtocolException, IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy