public class HttpTinyClient extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
HttpTinyClient.HttpResult |
| 构造器和说明 |
|---|
HttpTinyClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
static HttpTinyClient.HttpResult |
httpGet(String url,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs)
发送GET请求。
|
static HttpTinyClient.HttpResult |
httpPost(String url,
List<String> headers,
List<String> paramValues,
String encoding,
long readTimeoutMs)
发送POST请求。
|
public static HttpTinyClient.HttpResult httpGet(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
IOExceptionpublic static HttpTinyClient.HttpResult httpPost(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs) throws IOException
url - headers - 请求Header,可以为nullparamValues - 参数,可以为nullencoding - URL编码使用的字符集readTimeoutMs - 响应超时IOExceptionCopyright © 2012–2016. All rights reserved.