7#ifndef _NIM_SDK_CPP_PASS_THROUGH_PROXY_H_
8#define _NIM_SDK_CPP_PASS_THROUGH_PROXY_H_
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;
35 static void RegReceivedHttpMsgCb(
const ReceivedHttpMsgCb& cb,
const std::string& json_extension);
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,
Definition: nim_cpp_pass_through_proxy.h:23
std::function< void(const std::string &from_accid, const std::string &body, uint64_t timestamp)> ReceivedHttpMsgCb
Definition: nim_cpp_pass_through_proxy.h:27
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
NIMSendHttpRequestMethods
Definition: nim_pass_through_proxy_def.h:19
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition: nim_sdk_cpp_wrapper.h:38