|
| HttpResponse (HttpRequest *request) |
| Constructor, it's used by HttpClient internal, users don't need to create HttpResponse manually. More...
|
|
virtual | ~HttpResponse () |
| Destructor, it will be called in HttpClient internal. More...
|
|
cocos2d::Ref * | autorelease () |
| Override autorelease method to prevent developers from calling it. More...
|
|
HttpRequest * | getHttpRequest () const |
| Get the corresponding HttpRequest object which leads to this response. More...
|
|
var | getHttpRequest () |
| Get the corresponding HttpRequest object which leads to this response. More...
|
|
bool | isSucceed () const |
| To see if the http request is returned successfully. More...
|
|
std::vector< char > * | getResponseData () |
| Get the http response data. More...
|
|
std::vector< char > * | getResponseHeader () |
| Get the response headers. More...
|
|
var | getResponseHeader () |
| Get the response headers. More...
|
|
long | getResponseCode () const |
| Get the http response code to judge whether response is successful or not. More...
|
|
var | getResponseCode () |
| Get the http response code to judge whether response is successful or not. More...
|
|
const char * | getErrorBuffer () const |
| Get the error buffer which will tell you more about the reason why http request failed. More...
|
|
void | setSucceed (bool value) |
| Set whether the http request is returned successfully or not, This setter is mainly used in HttpClient, users mustn't set it directly. More...
|
|
var | setSucceed ( var value) |
| Set whether the http request is returned successfully or not, This setter is mainly used in HttpClient, users mustn't set it directly. More...
|
|
void | setResponseData (std::vector< char > *data) |
| Set the http response data buffer, it is used by HttpClient. More...
|
|
void | setResponseHeader (std::vector< char > *data) |
| Set the http response headers buffer, it is used by HttpClient. More...
|
|
var | setResponseHeader ( var data) |
| Set the http response headers buffer, it is used by HttpClient. More...
|
|
void | setResponseCode (long value) |
| Set the http response code. More...
|
|
void | setErrorBuffer (const char *value) |
| Set the error buffer which will tell you more the reason why http request failed. More...
|
|
void | setResponseDataString (const char *value, size_t n) |
| Set the response data by the string pointer and the defined size. More...
|
|
var | setResponseDataString ( var value, var n) |
| Set the response data by the string pointer and the defined size. More...
|
|
const char * | getResponseDataString () const |
| Get the string pointer that point to the response data. More...
|
|
void | retain () |
| Retains the ownership. More...
|
|
void | release () |
| Releases the ownership immediately. More...
|
|
local | release () |
| Releases the ownership immediately. More...
|
|
Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More...
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More...
|
|
local | getReferenceCount () |
| Returns the Ref's current reference count. More...
|
|
virtual | ~Ref () |
| Destructor. More...
|
|