iFun Engine API  1.0.0-b6053
Great Technology for Great Games
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
fun::HttpClientPool Class Reference

Public Types

typedef HttpClient::Handler Handler
 
typedef std::map< string, stringHeaderMap
 

Static Public Member Functions

static CURLcode Delete (const string &url, const Json &data, http::Response *response)
 
static CURLcode Delete (const string &url, const Ptr< const string > &data, http::Response *response)
 
static CURLcode Delete (const string &url, const HeaderMap &headers, const Json &data, http::Response *response)
 
static CURLcode Delete (const string &url, const HeaderMap &headers, const Ptr< const string > &data, http::Response *response)
 
static void DeleteAsync (const string &url, const Ptr< const string > &data, const Handler &handler, size_t timeout_in_ms=0)
 
static void DeleteAsync (const string &url, const Json &data, const Handler &handler, size_t timeout_in_ms=0)
 
static void DeleteAsync (const string &url, const HeaderMap &headers, const Ptr< const string > &data, const Handler &handler, size_t timeout_in_ms=0)
 
static void DeleteAsync (const string &url, const HeaderMap &headers, const Json &data, const Handler &handler, size_t timeout_in_ms=0)
 
static CURLcode Get (const string &url, http::Response *response)
 
static CURLcode Get (const string &url, const HeaderMap &headers, http::Response *response)
 
static void GetAsync (const string &url, const Handler &handler, size_t timeout_in_ms=0)
 
static void GetAsync (const string &url, const HeaderMap &headers, const Handler &handler, size_t timeout_in_ms=0)
 
static size_t GetSize (const string &host)
 
static void GetSizeAll (std::vector< std::pair< string, size_t > > *out)
 
static CURLcode Post (const string &url, const Ptr< const string > &data, http::Response *response)
 
static CURLcode Post (const string &url, const Json &data, http::Response *response)
 
static CURLcode Post (const string &url, const curl_httppost *data, http::Response *response)
 
static CURLcode Post (const string &url, const HeaderMap &headers, const Ptr< const string > &data, http::Response *response)
 
static CURLcode Post (const string &url, const HeaderMap &headers, const Json &data, http::Response *response)
 
static CURLcode Post (const string &url, const HeaderMap &headers, const curl_httppost *data, http::Response *response)
 
static void PostAsync (const string &url, const Ptr< const string > &data, const Handler &handler, size_t timeout_in_ms=0)
 
static void PostAsync (const string &url, const Json &data, const Handler &handler, size_t timeout_in_ms=0)
 
static void PostAsync (const string &url, const curl_httppost *data, const Handler &handler, size_t timeout_in_ms=0)
 
static void PostAsync (const string &url, const HeaderMap &headers, const Ptr< const string > &data, const Handler &handler, size_t timeout_in_ms=0)
 
static void PostAsync (const string &url, const HeaderMap &headers, const Json &data, const Handler &handler, size_t timeout_in_ms=0)
 
static void PostAsync (const string &url, const HeaderMap &headers, const curl_httppost *data, const Handler &handler, size_t timeout_in_ms=0)
 
static CURLcode Put (const string &url, const Ptr< const string > &data, http::Response *response)
 
static CURLcode Put (const string &url, const Json &data, http::Response *response)
 
static CURLcode Put (const string &url, const HeaderMap &headers, const Ptr< const string > &data, http::Response *response)
 
static CURLcode Put (const string &url, const HeaderMap &headers, const Json &data, http::Response *response)
 
static void PutAsync (const string &url, const Ptr< const string > &data, const Handler &handler, size_t timeout_in_ms=0)
 
static void PutAsync (const string &url, const Json &data, const Handler &handler, size_t timeout_in_ms=0)
 
static void PutAsync (const string &url, const HeaderMap &headers, const Ptr< const string > &data, const Handler &handler, size_t timeout_in_ms=0)
 
static void PutAsync (const string &url, const HeaderMap &headers, const Json &data, const Handler &handler, size_t timeout_in_ms=0)
 

Static Public Attributes

static const HeaderMap kNullHeader