#include <lua_xml_http_request.h>
Public Types | |
| enum | ResponseType { STRING, ARRAY_BUFFER, BLOB, DOCUMENT, JSON } |
Public Member Functions | |
| LuaMinXmlHttpRequest () | |
| ~LuaMinXmlHttpRequest () | |
| void | handle_requestResponse (cocos2d::network::HttpClient *sender, cocos2d::network::HttpResponse *response) |
| void | setResponseType (ResponseType type) |
| ResponseType | getResponseType () |
| void | setWithCredentialsValue (bool value) |
| local | setWithCredentialsValue ( local value) |
| bool | getWithCredentialsValue () |
| void | setTimeout (unsigned timeOut) |
| unsigned | getTimeout () |
| void | setReadyState (int readyState) |
| int | getReadyState () |
| cocos2d::network::HttpRequest * | getHttpRequest () |
| local | getHttpRequest () |
| int | getStatus () |
| std::string | getStatusText () |
| local | getStatusText () |
| std::string | getUrl () |
| void | setUrl (std::string url) |
| std::string | getMethod () |
| void | setMethod (std::string meth) |
| void | setAsync (bool isAsync) |
| void | setIsNetWork (bool isNetWork) |
| void | _setHttpRequestHeader () |
| void | _sendRequest () |
| void | setRequestHeader (const char *field, const char *value) |
| var | setRequestHeader ( var field, var value) |
| local | setRequestHeader ( local field, local value) |
| std::map< std::string, std::string > | getHttpHeader () |
| void | getByteData (unsigned char *byteData) |
| std::string | getDataStr () |
| var | getDataStr () |
| local | getDataStr () |
| size_t | getDataSize () |
Public Member Functions inherited from Object | |
| Object () | |
| Constructor. More... | |
| Object () | |
| Constructor. More... | |
| virtual | ~Object () |
| void | release () |
| Release the ownership immediately. More... | |
| void | retain () |
| Retains the ownership. More... | |
| Object * | autorelease () |
| Release the ownership sometime soon automatically. More... | |
| bool | isSingleReference () const |
| Returns a boolean value that indicates whether there is only one reference to the object. More... | |
| unsigned int | retainCount () const |
| Returns the object's current reference count. More... | |
| local | retainCount () |
| Returns the object's current reference count. More... | |
| virtual bool | isEqual (const Object *object) |
| Returns a boolean value that indicates whether this object and a given object are equal. More... | |
| virtual void | acceptVisitor (DataVisitor &visitor) |
| virtual void | update (float dt) |
Static Public Attributes | |
| static const unsigned short | UNSENT = 0 |
| var | UNSENT = 0 |
| local | UNSENT = 0 |
| static const unsigned short | OPENED = 1 |
| var | OPENED = 1 |
| local | OPENED = 1 |
| static const unsigned short | HEADERS_RECEIVED = 2 |
| var | HEADERS_RECEIVED = 2 |
| local | HEADERS_RECEIVED = 2 |
| static const unsigned short | LOADING = 3 |
| var | LOADING = 3 |
| local | LOADING = 3 |
| static const unsigned short | DONE = 4 |
| var | DONE = 4 |
| local | DONE = 4 |
Additional Inherited Members | |
Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID More... | |
| int | _luaID |
| Lua reference id. More... | |
| var | _luaID |
| Lua reference id. More... | |
| local | _luaID |
| Lua reference id. More... | |
Protected Attributes inherited from Object | |
| unsigned int | _reference |
| count of references More... | |
| var | _reference |
| count of references More... | |
| local | _reference |
| count of references More... | |
| unsigned int | _autoReleaseCount |
| count of autorelease More... | |
| var | _autoReleaseCount |
| count of autorelease More... | |
| local | _autoReleaseCount |
| count of autorelease More... | |
|
strong |
|
strong |
|
strong |
| var LuaMinXmlHttpRequest | ( | ) |
| local LuaMinXmlHttpRequest | ( | ) |
| ~LuaMinXmlHttpRequest | ( | ) |
| var ~LuaMinXmlHttpRequest | ( | ) |
| local ~LuaMinXmlHttpRequest | ( | ) |
| void _sendRequest | ( | ) |
| var _sendRequest | ( | ) |
| local _sendRequest | ( | ) |
| void _setHttpRequestHeader | ( | ) |
| var _setHttpRequestHeader | ( | ) |
| local _setHttpRequestHeader | ( | ) |
| void getByteData | ( | unsigned char * | byteData) |
| var getByteData | ( | var | byteData) |
| local getByteData | ( | local | byteData) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void handle_requestResponse | ( | cocos2d::network::HttpClient * | sender, |
| cocos2d::network::HttpResponse * | response | ||
| ) |
| var handle_requestResponse | ( | var | sender, |
| var | response | ||
| ) |
| local handle_requestResponse | ( | local | sender, |
| local | response | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void setRequestHeader | ( | const char * | field, |
| const char * | value | ||
| ) |
| var setRequestHeader | ( | var | field, |
| var | value | ||
| ) |
| local setRequestHeader | ( | local | field, |
| local | value | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |