Class HttpSimpleClient
- java.lang.Object
-
- com.alibaba.nacos.client.config.impl.HttpSimpleClient
-
public class HttpSimpleClient extends Object
Http tool- Author:
- Nacos
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpSimpleClient.HttpResult
-
Constructor Summary
Constructors Constructor Description HttpSimpleClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpSimpleClient.HttpResulthttpDelete(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs)static HttpSimpleClient.HttpResulthttpDelete(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSSL)static HttpSimpleClient.HttpResulthttpGet(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs)发送GET请求。static HttpSimpleClient.HttpResulthttpGet(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSSL)static HttpSimpleClient.HttpResulthttpPost(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs)发送POST请求。static HttpSimpleClient.HttpResulthttpPost(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSSL)发送POST请求。
-
-
-
Method Detail
-
httpGet
public static HttpSimpleClient.HttpResult httpGet(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSSL) throws IOException
- Throws:
IOException
-
httpGet
public static HttpSimpleClient.HttpResult httpGet(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
发送GET请求。- Throws:
IOException
-
httpPost
public static HttpSimpleClient.HttpResult httpPost(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSSL) throws IOException
发送POST请求。- Parameters:
url-headers- 请求Header,可以为nullparamValues- 参数,可以为nullencoding- URL编码使用的字符集readTimeoutMs- 响应超时isSSL- 是否https- Returns:
- Throws:
IOException
-
httpPost
public static HttpSimpleClient.HttpResult httpPost(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
发送POST请求。- Parameters:
url-headers- 请求Header,可以为nullparamValues- 参数,可以为nullencoding- URL编码使用的字符集readTimeoutMs- 响应超时- Returns:
- Throws:
IOException
-
httpDelete
public static HttpSimpleClient.HttpResult httpDelete(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSSL) throws IOException
- Throws:
IOException
-
httpDelete
public static HttpSimpleClient.HttpResult httpDelete(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
- Throws:
IOException
-
-