mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 15:26:59 +00:00
12 lines
433 B
C++
12 lines
433 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <unordered_map>
|
|
|
|
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);
|
|
namespace Status {
|
|
std::string ToString(int code);
|
|
}
|
|
} |