#include <lua_xml_http_request.h>
Public Types | |
enum | ResponseType { STRING, ARRAY_BUFFER, BLOB, DOCUMENT, JSON } |
Public Member Functions | |
LuaMinXmlHttpRequest () | |
~LuaMinXmlHttpRequest () | |
void | handle_requestResponse (network::HttpClient *sender, network::HttpResponse *response) |
var | handle_requestResponse ( var sender, var response) |
local | handle_requestResponse ( local sender, local 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 () |
network::HttpRequest * | 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... | |
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... | |
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... | |
Protected Attributes inherited from Object | |
unsigned int | _reference |
count of references More... | |
unsigned int | _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 | ( | network::HttpClient * | sender, |
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 |