mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-02-16 13:20:41 +00:00
Http: add Status::ToString method, use to report errors to sentry for custom fingerprint
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user