13 #ifndef VIRTRU_NETWORK_INTERFACE_H
14 #define VIRTRU_NETWORK_INTERFACE_H
21 #include <unordered_map>
27 using HttpHeaders = std::unordered_map<std::string, std::string>;
44 const std::string &certAuth =
"",
const std::string &clientKeyFileName =
"",
const std::string &clientCertFileName =
"") = 0;
52 const std::string &certAuth =
"",
const std::string &clientKeyFileName =
"",
const std::string &clientCertFileName =
"") = 0;
60 const std::string &certAuth =
"",
const std::string &clientKeyFileName =
"",
const std::string &clientCertFileName =
"") = 0;
68 const std::string &certAuth =
"",
const std::string &clientKeyFileName =
"",
const std::string &clientCertFileName =
"") = 0;
75 const std::string &certAuth =
"",
const std::string &clientKeyFileName =
"",
const std::string &clientCertFileName =
"") = 0;
81 #endif //VIRTRU_NETWORK_INTERFACE_H
Definition: network_interface.h:36
virtual void executeHead(const std::string &url, const HttpHeaders &headers, HTTPServiceCallback &&callback, const std::string &certAuth="", const std::string &clientKeyFileName="", const std::string &clientCertFileName="")=0
virtual void executeGet(const std::string &url, const HttpHeaders &headers, HTTPServiceCallback &&callback, const std::string &certAuth="", const std::string &clientKeyFileName="", const std::string &clientCertFileName="")=0
std::unordered_map< std::string, std::string > HttpHeaders
Definition: network_interface.h:27
virtual void executePost(const std::string &url, const HttpHeaders &headers, std::string &&body, HTTPServiceCallback &&callback, const std::string &certAuth="", const std::string &clientKeyFileName="", const std::string &clientCertFileName="")=0
std::function< void(unsigned int statusCode, std::string &&response)> HTTPServiceCallback
Definition: network_interface.h:30
virtual void executePatch(const std::string &url, const HttpHeaders &headers, std::string &&body, HTTPServiceCallback &&callback, const std::string &certAuth="", const std::string &clientKeyFileName="", const std::string &clientCertFileName="")=0
virtual ~INetwork()=default
virtual void executePut(const std::string &url, const HttpHeaders &headers, std::string &&body, HTTPServiceCallback &&callback, const std::string &certAuth="", const std::string &clientKeyFileName="", const std::string &clientCertFileName="")=0