public interface IHttpClient
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
IHttpClient.RequestMethod |
| 限定符和类型 | 字段和说明 |
|---|---|
static com.google.gson.Gson |
_gson |
static String |
CHARSET |
static String |
CONNECT_TIMED_OUT_MESSAGE |
static String |
CONTENT_TYPE_FORM |
static String |
CONTENT_TYPE_JSON |
static int |
DEFAULT_CONNECTION_TIMEOUT |
static int |
DEFAULT_MAX_RETRY_TIMES |
static int |
DEFAULT_READ_TIMEOUT |
static String |
IO_ERROR_MESSAGE |
static String |
JPUSH_USER_AGENT |
static String |
RATE_LIMIT_QUOTA |
static String |
RATE_LIMIT_Remaining |
static String |
RATE_LIMIT_Reset |
static String |
READ_TIMED_OUT_MESSAGE |
static int |
RESPONSE_OK |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseWrapper |
sendDelete(String url) |
ResponseWrapper |
sendGet(String url) |
ResponseWrapper |
sendPost(String url,
String content) |
ResponseWrapper |
sendPut(String url,
String content) |
static final int RESPONSE_OK
static final com.google.gson.Gson _gson
static final int DEFAULT_CONNECTION_TIMEOUT
static final int DEFAULT_READ_TIMEOUT
static final int DEFAULT_MAX_RETRY_TIMES
ResponseWrapper sendGet(String url) throws APIConnectionException, APIRequestException
ResponseWrapper sendDelete(String url) throws APIConnectionException, APIRequestException
ResponseWrapper sendPost(String url, String content) throws APIConnectionException, APIRequestException
ResponseWrapper sendPut(String url, String content) throws APIConnectionException, APIRequestException
Copyright © 2017. All Rights Reserved.