Multiple merge fixes, rebase, working Https::GET

This commit is contained in:
Lion Kortlepel committed 2021-09-09 12:15:55 +03:00
1 parent 5742ab0dad
commit 6462636b29
7 files changed
+50 -128

No files matched your search

+3 -2
View File
@@ -5,8 +5,9 @@
namespace Http {
std::string GET(const std::string& host, int port, const std::string& target, unsigned int* status = nullptr);
std::string POST(const std::string& host, const std::string& target, const std::unordered_map<std::string, std::string>& fields, const std::string& body, bool json, int* status = nullptr);
std::string POST(const std::string& host, int port, const std::string& target, const std::unordered_map<std::string, std::string>& fields, const std::string& body, const std::string& ContentType, unsigned int* status = nullptr);
namespace Status {
std::string ToString(int code);
}
}
const std::string ErrorString = "-1";
}