Server info via http
This commit is contained in:
@ -235,6 +235,11 @@ namespace Utils
|
||||
}
|
||||
}
|
||||
|
||||
json11::Json InfoString::to_json()
|
||||
{
|
||||
return this->KeyValuePairs;
|
||||
}
|
||||
|
||||
void InfoString::Parse(std::string buffer)
|
||||
{
|
||||
if (buffer[0] == '\\')
|
||||
|
@ -37,6 +37,8 @@ namespace Utils
|
||||
|
||||
void Dump();
|
||||
|
||||
json11::Json to_json();
|
||||
|
||||
private:
|
||||
std::map<std::string, std::string> KeyValuePairs;
|
||||
void Parse(std::string buffer);
|
||||
|
Reference in New Issue
Block a user