All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.common.http.converter.bean.BeanSmartHttpClient Maven / Gradle / Ivy

Go to download

http客户端请求工具类,有多种实现:OKHttp3、ApacheHttpClient、HttpURLConnection,可以随意切换http实现

There is a newer version: 1.8.2.0
Show newest version
package top.jfunc.common.http.converter.bean;

import top.jfunc.common.converter.Converter;
import top.jfunc.common.http.smart.Request;
import top.jfunc.common.http.smart.SmartHttpClient;

import java.io.IOException;

/**
 * @author xiongshiyan at 2017/12/9
 * 对结果集进行转换
 */
public interface BeanSmartHttpClient extends SmartHttpClient{

    BeanSmartHttpClient setConverter(Converter converter);

    /**
     * get请求并对结果生成一个结果转换器
     */
     T get(Request request, Class clazz) throws IOException;
    /**
     * post请求并对结果生成一个结果转换器
     */
     T post(Request request, Class clazz) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy