cocos2d-x  3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LuaMinXmlHttpRequest Class Reference

#include <lua_xml_http_request.h>

Inheritance diagram for LuaMinXmlHttpRequest:
Ref

Public Types

enum  ResponseType {
  STRING, ARRAY_BUFFER, BLOB, DOCUMENT,
  JSON
}
 

Public Member Functions

 LuaMinXmlHttpRequest ()
 ~LuaMinXmlHttpRequest ()
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::HttpRequestgetHttpRequest ()
local getHttpRequest ()
int getStatus ()
var getStatus ()
local getStatus ()
std::string getStatusText ()
std::string getUrl ()
local getUrl ()
void setUrl (std::string url)
std::string getMethod ()
void setMethod (std::string meth)
void setAsync (bool isAsync)
void setIsNetWork (bool isNetWork)
var setIsNetWork ( var isNetWork)
local setIsNetWork ( local isNetWork)
void _setHttpRequestHeader ()
void _sendRequest ()
local _sendRequest ()
void setRequestHeader (const char *field, const char *value)
std::map< std::string,
std::string > 
getHttpHeader ()
local getHttpHeader ()
void getByteData (unsigned char *byteData)
std::string getDataStr ()
size_t getDataSize ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

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
static const unsigned short DONE = 4

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Member Enumeration Documentation

enum ResponseType
strong
Enumerator
STRING 
ARRAY_BUFFER 
BLOB 
DOCUMENT 
JSON 
var ResponseType
strong
Enumerator
STRING 
ARRAY_BUFFER 
BLOB 
DOCUMENT 
JSON 
local ResponseType
strong
Enumerator
STRING 
ARRAY_BUFFER 
BLOB 
DOCUMENT 
JSON 

Constructor & Destructor Documentation

Member Function Documentation

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)
size_t getDataSize ( )
inline
var getDataSize ( )
inline
local getDataSize ( )
inline
std::string getDataStr ( )
inline
var getDataStr ( )
inline
local getDataStr ( )
inline
std::map<std::string,
std::string> getHttpHeader
( )
inline
var getHttpHeader ( )
inline
local getHttpHeader ( )
inline
cocos2d::network::HttpRequest*
getHttpRequest
( )
inline
var getHttpRequest ( )
inline
local getHttpRequest ( )
inline
std::string getMethod ( )
inline
var getMethod ( )
inline
local getMethod ( )
inline
int getReadyState ( )
inline
var getReadyState ( )
inline
local getReadyState ( )
inline
ResponseType getResponseType ( )
inline
var getResponseType ( )
inline
local getResponseType ( )
inline
int getStatus ( )
inline
var getStatus ( )
inline
local getStatus ( )
inline
std::string getStatusText ( )
inline
var getStatusText ( )
inline
local getStatusText ( )
inline
unsigned getTimeout ( )
inline
var getTimeout ( )
inline
local getTimeout ( )
inline
std::string getUrl ( )
inline
var getUrl ( )
inline
local getUrl ( )
inline
bool getWithCredentialsValue ( )
inline
var getWithCredentialsValue ( )
inline
local getWithCredentialsValue ( )
inline
void setAsync ( bool  isAsync)
inline
var setAsync ( var  isAsync)
inline
local setAsync ( local  isAsync)
inline
void setIsNetWork ( bool  isNetWork)
inline
var setIsNetWork ( var  isNetWork)
inline
local setIsNetWork ( local  isNetWork)
inline
void setMethod ( std::string  meth)
inline
var setMethod ( var  meth)
inline
local setMethod ( local  meth)
inline
void setReadyState ( int  readyState)
inline
var setReadyState ( var  readyState)
inline
local setReadyState ( local  readyState)
inline
void setRequestHeader ( const char *  field,
const char *  value 
)
var setRequestHeader ( var  field,
var  value 
)
local setRequestHeader ( local  field,
local  value 
)
void setResponseType ( ResponseType  type)
inline
var setResponseType ( var  type)
inline
local setResponseType ( local  type)
inline
void setTimeout ( unsigned  timeOut)
inline
var setTimeout ( var  timeOut)
inline
local setTimeout ( local  timeOut)
inline
void setUrl ( std::string  url)
inline
var setUrl ( var  url)
inline
local setUrl ( local  url)
inline
void setWithCredentialsValue ( bool  value)
inline
var setWithCredentialsValue ( var  value)
inline
local setWithCredentialsValue ( local  value)
inline

Member Data Documentation

const unsigned short DONE = 4
static
var DONE = 4
static
local DONE = 4
static
const unsigned short
HEADERS_RECEIVED = 2
static
var HEADERS_RECEIVED = 2
static
local HEADERS_RECEIVED = 2
static
const unsigned short LOADING = 3
static
var LOADING = 3
static
local LOADING = 3
static
const unsigned short OPENED = 1
static
var OPENED = 1
static
local OPENED = 1
static
const unsigned short UNSENT = 0
static
var UNSENT = 0
static
local UNSENT = 0
static

The documentation for this class was generated from the following file: