NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_cpp_pass_through_proxy.h
浏览该文件的文档.
1
7#ifndef _NIM_SDK_CPP_PASS_THROUGH_PROXY_H_
8#define _NIM_SDK_CPP_PASS_THROUGH_PROXY_H_
9
10#include <functional>
11#include <map>
12#include <string>
14#include "nim_define_include.h"
20namespace nim {
21
24public:
25 typedef std::function<void(int res_code, const std::string& header, const std::string& body, const std::string& json_extension)>
27 typedef std::function<void(const std::string& from_accid, const std::string& body, uint64_t timestamp)> ReceivedHttpMsgCb;
28
29public:
35 static void RegReceivedHttpMsgCb(const ReceivedHttpMsgCb& cb, const std::string& json_extension);
36
53 static void SendHttpRequest(const std::string& host,
54 const std::string& path,
56 const std::string& headers,
57 const std::string& body,
58 const std::string& json_extension,
59 const SendHttpRequestCallback& callback);
60};
61
62} // namespace nim
63
64#endif //_NIM_SDK_CPP_PASS_THROUGH_PROXY_H_
Definition nim_cpp_pass_through_proxy.h:23
std::function< void(int res_code, const std::string &header, const std::string &body, const std::string &json_extension) SendHttpRequestCallback)
Definition nim_cpp_pass_through_proxy.h:26
std::function< void(const std::string &from_accid, const std::string &body, uint64_t timestamp) ReceivedHttpMsgCb)
Definition nim_cpp_pass_through_proxy.h:27
namespace nim
NIM 公共数据类型定义总的包含文件
透传服务代理相关的常量函数等定义头文件
NIMSendHttpRequestMethods
Definition nim_pass_through_proxy_def.h:19
定义导出宏
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition nim_sdk_cpp_wrapper.h:38