iFun Engine API  1.0.0-b6053
Great Technology for Great Games
Public Types | Public Member Functions | List of all members
fun::CurlHttp Class Reference
Inheritance diagram for fun::CurlHttp:

Public Types

typedef function< void(CURLcode, const string &error_desc)> CompleteCallback
 
typedef function< void(void *, size_t)> HeaderReceiveCallback
 
typedef function< void(void *, size_t)> PayloadReceiveCallback
 

Public Member Functions

CURL * easy_handle () const
 
const char * GetErrorBuffer () const
 
const stringGetResult () const
 
CURLcode GetResultCode () const
 
const stringGetUrl () const
 
bool GetVerbose () const
 
CURLcode Request ()
 
void RequestAsync ()
 
void set_complete_callback (const CompleteCallback &cb)
 
void set_header_receive_callback (const HeaderReceiveCallback &cb)
 
void set_payload_receive_callback (const PayloadReceiveCallback &cb)
 
void SetDelete (const Ptr< const string > &data)
 
void SetDelete (const Json &data)
 
void SetGet ()
 
void SetHeader (const http::Header &header)
 
void SetPost (const Ptr< const string > &data)
 
void SetPost (const curl_httppost *data)
 
void SetPost (const Json &data)
 
void SetPut (const Ptr< const string > &data)
 
void SetPut (const Json &data)
 
void SetTimeout (size_t timeout_in_ms)
 
void SetUrl (const string &url)
 
void SetUserAgent (const string &user_agent)
 
void SetVerbose (bool on)