Http: add Status::ToString method, use to report errors to sentry for custom fingerprint

This commit is contained in:
Lion Kortlepel
2021-08-12 16:13:36 +02:00
committed by Lion
parent e8665bfb72
commit f98c8dabb0
3 changed files with 80 additions and 2 deletions

View File

@@ -6,4 +6,7 @@
namespace Http {
std::string GET(const std::string& host, int port, const std::string& target);
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);
namespace Status {
std::string ToString(int code);
}
}