NIM Tools API  5.5.0
Classes | Namespaces | Typedefs | Functions
nim_tools_http_cpp.h File Reference

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

#include <windows.h>
#include <string>
#include <functional>
#include <map>
#include "..\..\nim_tools_c_sdk\http\nim_tools_http_def.h"

Go to the source code of this file.

Classes

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

Namespaces

 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(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

void nim_http::Init (const std::wstring &dll_path=L"")
 
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