NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_tools_http_cpp.h 文件参考

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

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

浏览源代码.

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

命名空间

namespace  nim_http
 NIM提供的HTTP工具
 

类型定义

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
 

函数

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 (nim::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)
 

详细描述

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

作者
towik, Oleg
日期
2015/4/30