add socketio, http post & get

This commit is contained in:
Lion Kortlepel
2021-02-16 12:37:55 +01:00
committed by Anonymous275
parent 4cda6e8bc3
commit ef5db013b3
12 changed files with 487 additions and 19 deletions

9
include/Http.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include <string>
#include <unordered_map>
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);
}