Package com.luna.common.net
Interface HttpRequestInterface
public interface HttpRequestInterface
- Author:
- luna
- Description:
-
Method Summary
Modifier and TypeMethodDescription<T> T
doDelete
(String host, String path, Map<String, String> headers, Map<String, String> queries, String body, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) <T> T
doGet
(String host, String path, Map<String, String> headers, Map<String, String> queries, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) <T> T
doPost
(String host, String path, Map<String, String> headers, Map<String, String> queries, byte[] body, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) Post stream<T> T
doPost
(String host, String path, Map<String, String> headers, Map<String, String> queries, String body, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) <T> T
doPost
(String host, String path, Map<String, String> headers, Map<String, String> queries, Map<String, String> bodies, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) <T> T
doPut
(String host, String path, Map<String, String> headers, Map<String, String> queries, String body, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler)
-
Method Details
-
doGet
-
doDelete
-
doPut
-
doPost
-
doPost
-
doPost
<T> T doPost(String host, String path, Map<String, String> headers, Map<String, String> queries, byte[] body, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) Post stream- Parameters:
host
- 主机地址path
- 路径headers
- 请求头queries
- 请求参数body
- 请求体- Returns:
- HttpResponse
- Throws:
RuntimeException
-