public class AsyncHttpClient extends Object
Example GET
new AsyncHttpClient("http://httpbin.org/")
.get("get", new JsonResponseHandler()
{| Modifier and Type | Class and Description |
|---|---|
protected static class |
AsyncHttpClient.AsyncClientExecutorTask
Delegate wrapper class for ClientExecutorTask inside an AsyncTask
|
| Modifier and Type | Field and Description |
|---|---|
static okhttp3.Cache |
cache
Instance for where to store cached requests.
|
static String |
userAgent
User agent to send with every request.
|
| Constructor and Description |
|---|
AsyncHttpClient(String baseUrl)
Creates a new client using a base Url without a timeout
|
AsyncHttpClient(String baseUrl,
long timeout)
Creates a new client using a base Url with a timeout in MS
|
AsyncHttpClient(Uri baseUri)
Creates a new client using a base Uri without a timeout
|
AsyncHttpClient(Uri baseUri,
long timeout)
Creates a new client using a base Uri with a timeout in MS
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels a request if it's running
|
void |
delete(okhttp3.Headers headers,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(List<NameValuePair> params,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(okhttp3.RequestBody postData,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(String path,
okhttp3.Headers headers,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(String path,
List<NameValuePair> params,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(String path,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(String path,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
delete(String path,
ResponseHandler response)
Performs a DELETE request on the baseUri
|
void |
get(okhttp3.Headers headers,
ResponseHandler response)
Performs a GET request on the baseUri
|
void |
get(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a GET request on the baseUri
|
void |
get(ResponseHandler response)
Performs a GET request on the baseUri
|
void |
get(String path,
okhttp3.Headers headers,
ResponseHandler response)
Performs a GET request on the baseUri
|
void |
get(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a GET request on the baseUri
|
void |
get(String path,
List<NameValuePair> params,
ResponseHandler response)
Performs a GET request on the baseUri
|
void |
get(String path,
ResponseHandler response)
Performs a GET request on the baseUri
|
void |
head(okhttp3.Headers headers,
ResponseHandler response)
Performs a HEAD request on the baseUri
|
void |
head(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a HEAD request on the baseUri
|
void |
head(List<NameValuePair> params,
ResponseHandler response)
Performs a HEAD request on the baseUri
|
void |
head(ResponseHandler response)
Performs a HEAD request on the baseUri
|
void |
head(String path,
okhttp3.Headers headers,
ResponseHandler response)
Performs a HEAD request on the baseUri
|
void |
head(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a HEAD request on the baseUri
|
void |
head(String path,
List<NameValuePair> params,
ResponseHandler response)
Performs a HEAD request on the baseUri
|
void |
head(String path,
ResponseHandler response)
Performs a HEAD request on the baseUri
|
void |
options(okhttp3.Headers headers,
ResponseHandler response)
Performs a OPTIONS request on the baseUri
|
void |
options(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a OPTIONS request on the baseUri
|
void |
options(List<NameValuePair> params,
ResponseHandler response)
Performs a OPTIONS request on the baseUri
|
void |
options(ResponseHandler response)
Performs a OPTIONS request on the baseUri
|
void |
options(String path,
okhttp3.Headers headers,
ResponseHandler response)
Performs a OPTIONS request on the baseUri
|
void |
options(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a OPTIONS request on the baseUri
|
void |
options(String path,
List<NameValuePair> params,
ResponseHandler response)
Performs a OPTIONS request on the baseUri
|
void |
options(String path,
ResponseHandler response)
Performs a OPTIONS request on the baseUri
|
void |
patch(okhttp3.Headers headers,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(List<NameValuePair> params,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(okhttp3.RequestBody postData,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(ResponseHandler response)
Performs a PATCH request on the baseUr
|
void |
patch(String path,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(String path,
List<NameValuePair> params,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(String path,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(String path,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a PATCH request on the baseUri
|
void |
patch(String path,
ResponseHandler response)
Performs a PATCH request on the baseUr
|
void |
post(okhttp3.Headers headers,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(List<NameValuePair> params,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(okhttp3.RequestBody postData,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(String path,
okhttp3.Headers headers,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(String path,
List<NameValuePair> params,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(String path,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(String path,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a POST request on the baseUri
|
void |
post(String path,
ResponseHandler response)
Performs a POST request on the baseUr
|
void |
put(okhttp3.Headers headers,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(List<NameValuePair> params,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(okhttp3.RequestBody postData,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(ResponseHandler response)
Performs a PUT request on the baseUr
|
void |
put(String path,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(String path,
List<NameValuePair> params,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(String path,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(String path,
okhttp3.RequestBody postData,
ResponseHandler response)
Performs a PUT request on the baseUri
|
void |
put(String path,
ResponseHandler response)
Performs a PUT request on the baseUr
|
void |
setAllowAllSsl(boolean allow)
Sets to allow all SSL.
|
void |
setAllowRedirect(boolean allow)
Sets to auto redirect on 302 responses
|
public static String userAgent
RequestUtil.getDefaultUserAgent()public static okhttp3.Cache cache
Context.getCacheDir()
if you want auto cache-control handlingpublic AsyncHttpClient(String baseUrl)
baseUrl - The base connection urlpublic AsyncHttpClient(Uri baseUri)
baseUri - The base connection uripublic AsyncHttpClient(String baseUrl, long timeout)
baseUrl - The base connection urltimeout - The timeout in MSpublic AsyncHttpClient(Uri baseUri, long timeout)
baseUri - The base connection uritimeout - The timeout in MSpublic void cancel()
public void get(@Nullable ResponseHandler response)
response - The response handler for the requestpublic void get(String path, @Nullable ResponseHandler response)
path - The path extended from the baseUriresponse - The response handler for the requestpublic void get(@Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
headers - The request headers for the connectionresponse - The response handler for the requestpublic void get(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void get(String path, @Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
path - The path extended from the baseUriresponse - The response handler for the requestpublic void get(String path, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void get(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void options(@Nullable ResponseHandler response)
response - The response handler for the requestpublic void options(String path, @Nullable ResponseHandler response)
path - The path extended from the baseUriresponse - The response handler for the requestpublic void options(@Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
headers - The request headers for the connectionresponse - The response handler for the requestpublic void options(@Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriresponse - The response handler for the requestpublic void options(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void options(String path, @Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
path - The path extended from the baseUriresponse - The response handler for the requestpublic void options(String path, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void options(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void head(@Nullable ResponseHandler response)
response - The response handler for the requestpublic void head(String path, @Nullable ResponseHandler response)
path - The path extended from the baseUriresponse - The response handler for the requestpublic void head(@Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
headers - The request headers for the connectionresponse - The response handler for the requestpublic void head(@Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriresponse - The response handler for the requestpublic void head(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void head(String path, @Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
path - The path extended from the baseUriresponse - The response handler for the requestpublic void head(String path, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void head(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void delete(@Nullable ResponseHandler response)
response - The response handler for the requestpublic void delete(String path, @Nullable ResponseHandler response)
path - The path extended from the baseUriresponse - The response handler for the requestpublic void delete(@Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
headers - The request headers for the connectionresponse - The response handler for the requestpublic void delete(@Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriresponse - The response handler for the requestpublic void delete(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void delete(@Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
postData - The post data entity to post to the serverresponse - The response handler for the requestpublic void delete(@Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
postData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void delete(@Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
params - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void delete(String path, @Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriresponse - The response handler for the requestpublic void delete(String path, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void delete(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void delete(String path, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
path - The path extended from the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void delete(String path, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void delete(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void delete(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void post(@Nullable ResponseHandler response)
response - The response handler for the requestpublic void post(String path, @Nullable ResponseHandler response)
path - The path extended from the baseUriresponse - The response handler for the requestpublic void post(@Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriresponse - The response handler for the requestpublic void post(@Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
headers - The request headers for the connectionresponse - The response handler for the requestpublic void post(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void post(@Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
postData - The post data entity to post to the serverresponse - The response handler for the requestpublic void post(@Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
postData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void post(@Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
params - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void post(String path, @Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriresponse - The response handler for the requestpublic void post(String path, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void post(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void post(String path, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
path - The path extended from the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void post(String path, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void post(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void post(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void put(@Nullable ResponseHandler response)
response - The response handler for the requestpublic void put(String path, @Nullable ResponseHandler response)
path - The path extended from the baseUriresponse - The response handler for the requestpublic void put(@Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriresponse - The response handler for the requestpublic void put(@Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
headers - The request headers for the connectionresponse - The response handler for the requestpublic void put(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void put(@Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
postData - The post data entity to post to the serverresponse - The response handler for the requestpublic void put(@Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
postData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void put(@Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
params - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void put(String path, @Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriresponse - The response handler for the requestpublic void put(String path, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void put(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void put(String path, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
path - The path extended from the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void put(String path, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void put(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void put(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void patch(@Nullable ResponseHandler response)
response - The response handler for the requestpublic void patch(String path, @Nullable ResponseHandler response)
path - The path extended from the baseUriresponse - The response handler for the requestpublic void patch(@Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriresponse - The response handler for the requestpublic void patch(@Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
headers - The request headers for the connectionresponse - The response handler for the requestpublic void patch(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void patch(@Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
postData - The post data entity to post to the serverresponse - The response handler for the requestpublic void patch(@Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
postData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void patch(@Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
params - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void patch(String path, @Nullable List<NameValuePair> params, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriresponse - The response handler for the requestpublic void patch(String path, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void patch(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the requestpublic void patch(String path, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
path - The path extended from the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void patch(String path, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void patch(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the requestpublic void patch(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @Nullable ResponseHandler response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void setAllowAllSsl(boolean allow)
allow - Allow all SSL true/falsepublic void setAllowRedirect(boolean allow)
allow - Allow redirect true/false