NIM PC Cross Platform SDK
nim_tools_http_cpp.h File Reference

NIM HTTP提供的传输工具接口(CPP接口) More...

#include <functional>
#include <map>
#include <string>
#include "nim_define_include.h"
#include "nim_tools_http_def.h"

Go to the source code of this file.

Classes

class  nim_http::HttpRequest
 NIM HTTP提供的http传输相关接口 More...
 

Namespaces

namespace  nim_http
 NIM提供的HTTP工具
 

Typedefs

typedef std::function< void(bool, int)> nim_http::CompletedCallback
 
typedef std::function< void(bool, int, const std::string &)> nim_http::ResponseCallback
 
typedef std::function< void(bool, int, const std::string &, const std::string &)> nim_http::ResponseCallbackEx
 
typedef std::function< void(double, double, double, double)> nim_http::ProgressCallback
 
typedef std::function< void(double, double)> nim_http::SpeedCallback
 
typedef std::function< void(double, double, double, double)> nim_http::TransferCallback
 

Functions

bool nim_http::Init (const std::string &library_path)
 
void nim_http::Uninit ()
 
void nim_http::InitLog (const std::string &log_file_path)
 
bool nim_http::IsInitLog ()
 
void nim_http::SetGlobalProxy (NIMProxyType type, const std::string &host, short port, const std::string &user, const std::string &pass)
 
HttpRequestID nim_http::PostRequest (const HttpRequest &http_request)
 
void nim_http::RemoveRequest (HttpRequestID http_request_id)
 
std::string nim_http::GetResponseHead (HttpRequestID http_request_id)
 

Detailed Description

NIM HTTP提供的传输工具接口(CPP接口)

Author
towik, Oleg
Date
2015/4/30