7#ifndef _NIM_SDK_CPP_PASS_THROUGH_PROXY_H_
8#define _NIM_SDK_CPP_PASS_THROUGH_PROXY_H_
26 typedef std::function<void(
int res_code,
const std::string& header,
const std::string& body,
const std::string& json_extension)>
27 SendHttpRequestCallback;
28 typedef std::function<void(
const std::string& from_accid,
const std::string& body, uint64_t timestamp)> ReceivedHttpMsgCb;
36 static void RegReceivedHttpMsgCb(
const ReceivedHttpMsgCb& cb,
const std::string& json_extension);
54 static void SendHttpRequest(
const std::string& host,
55 const std::string& path,
56 NIMSendHttpRequestMethods method,
57 const std::string& headers,
58 const std::string& body,
59 const std::string& json_extension,
60 const SendHttpRequestCallback& callback);
Definition: nim_cpp_pass_through_proxy.h:24
NIM SDK 及 NIM ChatRoom SDK 公用头文件