类 HttpUtils
java.lang.Object
top.yqingyu.common.utils.HttpUtils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static org.apache.hc.core5.http.HttpResponsedoDelete(String host, String path, String method, Map<String, String> headers, Map<String, String> querys) Deletestatic org.apache.hc.core5.http.HttpResponsedoGet(String host, String path, String method, Map<String, String> headers, Map<String, String> querys) getstatic org.apache.hc.core5.http.HttpResponsedoPost(String host, String path, String method, Map<String, String> headers, Map<String, String> querys, byte[] body) Post streamstatic org.apache.hc.core5.http.HttpResponsedoPost(String host, String path, String method, Map<String, String> headers, Map<String, String> querys, String body) Post Stringstatic org.apache.hc.core5.http.HttpResponsedoPost(String host, String path, String method, Map<String, String> headers, Map<String, String> querys, Map<String, String> bodys) post formstatic org.apache.hc.core5.http.HttpResponsedoPut(String host, String path, String method, Map<String, String> headers, Map<String, String> querys, byte[] body) Put streamstatic org.apache.hc.core5.http.HttpResponsedoPut(String host, String path, String method, Map<String, String> headers, Map<String, String> querys, String body) Put String
-
构造器详细资料
-
HttpUtils
public HttpUtils()
-
-
方法详细资料
-
doGet
public static org.apache.hc.core5.http.HttpResponse doGet(String host, String path, String method, Map<String, String> headers, Map<String, throws ExceptionString> querys) get- 参数:
host-path-method-headers-querys-- 返回:
- 抛出:
Exception
-
doPost
public static org.apache.hc.core5.http.HttpResponse doPost(String host, String path, String method, Map<String, String> headers, Map<String, throws ExceptionString> querys, Map<String, String> bodys) post form- 参数:
host-path-method-headers-querys-bodys-- 返回:
- 抛出:
Exception
-
doPost
public static org.apache.hc.core5.http.HttpResponse doPost(String host, String path, String method, Map<String, String> headers, Map<String, throws ExceptionString> querys, String body) Post String- 参数:
host-path-method-headers-querys-body-- 返回:
- 抛出:
Exception
-
doPost
public static org.apache.hc.core5.http.HttpResponse doPost(String host, String path, String method, Map<String, String> headers, Map<String, throws ExceptionString> querys, byte[] body) Post stream- 参数:
host-path-method-headers-querys-body-- 返回:
- 抛出:
Exception
-
doPut
public static org.apache.hc.core5.http.HttpResponse doPut(String host, String path, String method, Map<String, String> headers, Map<String, throws ExceptionString> querys, String body) Put String- 参数:
host-path-method-headers-querys-body-- 返回:
- 抛出:
Exception
-
doPut
public static org.apache.hc.core5.http.HttpResponse doPut(String host, String path, String method, Map<String, String> headers, Map<String, throws ExceptionString> querys, byte[] body) Put stream- 参数:
host-path-method-headers-querys-body-- 返回:
- 抛出:
Exception
-
doDelete
public static org.apache.hc.core5.http.HttpResponse doDelete(String host, String path, String method, Map<String, String> headers, Map<String, throws ExceptionString> querys) Delete- 参数:
host-path-method-headers-querys-- 返回:
- 抛出:
Exception
-