|
| 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, users don't need to desturct HttpResponse object manully. More...
|
|
cocos2d::Ref * | autorelease (void) |
| Override autorelease method to prevent developers from calling it. More...
|
|
local | autorelease () |
| Override autorelease method to prevent developers from calling it. More...
|
|
HttpRequest * | getHttpRequest () |
| Get the corresponding HttpRequest object which leads to this response There's no paired setter for it, coz it's already setted in class constructor. More...
|
|
var | getHttpRequest () |
| Get the corresponding HttpRequest object which leads to this response There's no paired setter for it, coz it's already setted in class constructor. More...
|
|
local | getHttpRequest () |
| Get the corresponding HttpRequest object which leads to this response There's no paired setter for it, coz it's already setted in class constructor. More...
|
|
bool | isSucceed () |
| To see if the http reqeust is returned successfully, Althrough users can judge if (http return code = 200), we want an easier way If this getter returns false, you can call getResponseCode and getErrorBuffer to find more details. More...
|
|
var | isSucceed () |
| To see if the http reqeust is returned successfully, Althrough users can judge if (http return code = 200), we want an easier way If this getter returns false, you can call getResponseCode and getErrorBuffer to find more details. More...
|
|
local | isSucceed () |
| To see if the http reqeust is returned successfully, Althrough users can judge if (http return code = 200), we want an easier way If this getter returns false, you can call getResponseCode and getErrorBuffer to find more details. More...
|
|
std::vector< char > * | getResponseData () |
| Get the http response raw data. More...
|
|
std::vector< char > * | getResponseHeader () |
| get the Rawheader More...
|
|
var | getResponseHeader () |
| get the Rawheader More...
|
|
local | getResponseHeader () |
| get the Rawheader More...
|
|
long | getResponseCode () |
| Get the http response errorCode I know that you want to see http 200 :) More...
|
|
const char * | getErrorBuffer () |
| Get the rror buffer which will tell you more about the reason why http request failed. More...
|
|
void | setSucceed (bool value) |
| Set if the http request is returned successfully, Althrough users can judge if (http code == 200), we want a easier way This setter is mainly used in HttpClient, users mustn't set it directly. More...
|
|
var | setSucceed ( var value) |
| Set if the http request is returned successfully, Althrough users can judge if (http code == 200), we want a easier way This setter is mainly used in HttpClient, users mustn't set it directly. More...
|
|
local | setSucceed ( local value) |
| Set if the http request is returned successfully, Althrough users can judge if (http code == 200), we want a easier way This setter is mainly used in HttpClient, users mustn't set it directly. More...
|
|
void | setResponseData (std::vector< char > *data) |
| Set the http response raw buffer, is used by HttpClient. More...
|
|
var | setResponseData ( var data) |
| Set the http response raw buffer, is used by HttpClient. More...
|
|
local | setResponseData ( local data) |
| Set the http response raw buffer, is used by HttpClient. More...
|
|
void | setResponseHeader (std::vector< char > *data) |
| Set the http response Header raw buffer, is used by HttpClient. More...
|
|
void | setResponseCode (long value) |
| Set the http response errorCode. More...
|
|
void | setErrorBuffer (const char *value) |
| Set the error buffer which will tell you more the reason why http request failed. More...
|
|
void | retain () |
| Retains the ownership. More...
|
|
void | 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...
|
|
virtual | ~Ref () |