Update Req lib to lastest version

This commit is contained in:
kradchen
2023-11-16 11:43:31 +08:00
parent 17cdc48e8d
commit b3b6d5c5f9
4 changed files with 20 additions and 41 deletions

View File

@@ -15,10 +15,9 @@ namespace Req {
Request &operator=(Request &&) = delete;
Request &operator=(const Request &) = delete;
~Request();
bool isValid();
void setClientCertificate(const std::string &cerPath, const std::string &keyPath);
void setVerbose(bool verbose);
Response* post(const std::string& url, const std::string &body = std::string(),
Response post(const std::string& url, const std::string &body = std::string(),
const std::unordered_map<std::string, std::string>& headers =
std::unordered_map<std::string, std::string>());
@@ -28,8 +27,6 @@ namespace Req {
std::string mCert;
std::string mKey;
bool mVerbose;
bool mValid;
};
}
#endif // __REQUEST_H__