Package | Description |
---|---|
cn.trinea.android.common.service | |
cn.trinea.android.common.util |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
HttpCache.httpGet(HttpRequest request)
http get
Attentions:
Don't call this on the ui thread, it may costs some times.
|
void |
HttpCache.httpGet(HttpRequest request,
HttpCache.HttpCacheListener listener)
http get
It gets data from cache or network asynchronous.
|
HttpResponse |
HttpCache.httpGetString(HttpRequest httpRequest)
http get
Attentions:
Don't call this on the ui thread, it may costs some times.
|
Modifier and Type | Method and Description |
---|---|
static HttpResponse |
HttpUtils.httpGet(HttpRequest request)
http get synchronous
use gzip compression default
use bufferedReader to improve the reading speed
|
static void |
HttpUtils.httpGet(HttpRequest request,
HttpUtils.HttpListener listener)
http get asynchronous
It gets data or network asynchronous.
|
static java.lang.String |
HttpUtils.httpGetString(HttpRequest request)
http get synchronous
|
static HttpResponse |
HttpUtils.httpPost(HttpRequest request)
http post
use gzip compression default
use bufferedReader to improve the reading speed
|