public class AsyncHttpRequest
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
AsyncHttpRequest(OkHttpClient client,
AsyncHttpResponse responseHandler,
RequestParams params,
com.github.leonardoxh.asyncokhttpclient.RequestModel request)
Constructs a new instance of AsyncHttpRequest
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
disconnect()
Disconnect the current request after send the end message
|
void |
run()
Run the current request yaaa!
|
public AsyncHttpRequest(OkHttpClient client,
AsyncHttpResponse responseHandler,
RequestParams params,
com.github.leonardoxh.asyncokhttpclient.RequestModel request)
client - the client to execute the given requestresponseHandler - the callback for fire responses like success and errorparams - the request parameters for GET, POST...request - the model that contains the request method and headers