Singleton that handles asynchrounous http requests Once the request completed, a callback will issued in main thread when it provided during make request. More...
#include <HttpClient.h>
Public Member Functions | |
| void | enableCookies (const char *cookieFile) |
| Enable cookie support. More... | |
| var | enableCookies ( var cookieFile) |
| Enable cookie support. More... | |
| local | enableCookies ( local cookieFile) |
| Enable cookie support. More... | |
| void | send (HttpRequest *request) |
| Add a get request to task queue. More... | |
| var | send ( var request) |
| Add a get request to task queue. More... | |
| local | send ( local request) |
| Add a get request to task queue. More... | |
| void | sendImmediate (HttpRequest *request) |
| Immediate send a request. More... | |
| void | setTimeoutForConnect (int value) |
| Change the connect timeout. More... | |
| var | setTimeoutForConnect ( var value) |
| Change the connect timeout. More... | |
| local | setTimeoutForConnect ( local value) |
| Change the connect timeout. More... | |
| int | getTimeoutForConnect () |
| Get connect timeout. More... | |
| var | getTimeoutForConnect () |
| Get connect timeout. More... | |
| local | getTimeoutForConnect () |
| Get connect timeout. More... | |
| void | setTimeoutForRead (int value) |
| Change the download timeout. More... | |
| var | setTimeoutForRead ( var value) |
| Change the download timeout. More... | |
| local | setTimeoutForRead ( local value) |
| Change the download timeout. More... | |
| int | getTimeoutForRead () |
| Get download timeout. More... | |
| var | getTimeoutForRead () |
| Get download timeout. More... | |
| local | getTimeoutForRead () |
| Get download timeout. More... | |
Static Public Member Functions | |
| static HttpClient * | getInstance () |
| Return the shared instance. More... | |
| static void | destroyInstance () |
| Relase the shared instance. More... | |
| local | destroyInstance () |
| Relase the shared instance. More... | |
Singleton that handles asynchrounous http requests Once the request completed, a callback will issued in main thread when it provided during make request.
|
static |
Relase the shared instance.
|
static |
Relase the shared instance.
|
static |
Relase the shared instance.
| void enableCookies | ( | const char * | cookieFile | ) |
Enable cookie support.
| var enableCookies | ( | var | cookieFile | ) |
Enable cookie support.
| local enableCookies | ( | local | cookieFile | ) |
Enable cookie support.
|
static |
Return the shared instance.
|
static |
Return the shared instance.
|
static |
Return the shared instance.
|
inline |
Get connect timeout.
|
inline |
Get connect timeout.
|
inline |
Get connect timeout.
|
inline |
Get download timeout.
|
inline |
Get download timeout.
|
inline |
Get download timeout.
| void send | ( | HttpRequest * | request | ) |
Add a get request to task queue.
| request | a HttpRequest object, which includes url, response callback etc. please make sure request->_requestData is clear before calling "send" here. |
| var send | ( | var | request | ) |
Add a get request to task queue.
| request | a HttpRequest object, which includes url, response callback etc. please make sure request->_requestData is clear before calling "send" here. |
| local send | ( | local | request | ) |
Add a get request to task queue.
| request | a HttpRequest object, which includes url, response callback etc. please make sure request->_requestData is clear before calling "send" here. |
| void sendImmediate | ( | HttpRequest * | request | ) |
Immediate send a request.
| request | a HttpRequest object, which includes url, response callback etc. please make sure request->_requestData is clear before calling "sendImmediate" here. |
| var sendImmediate | ( | var | request | ) |
Immediate send a request.
| request | a HttpRequest object, which includes url, response callback etc. please make sure request->_requestData is clear before calling "sendImmediate" here. |
| local sendImmediate | ( | local | request | ) |
Immediate send a request.
| request | a HttpRequest object, which includes url, response callback etc. please make sure request->_requestData is clear before calling "sendImmediate" here. |
|
inline |
Change the connect timeout.
| value | The desired timeout. |
|
inline |
Change the connect timeout.
| value | The desired timeout. |
|
inline |
Change the connect timeout.
| value | The desired timeout. |
|
inline |
Change the download timeout.
| value |
|
inline |
Change the download timeout.
| value |
|
inline |
Change the download timeout.
| value |