wip integration of client.request and ServerConfig

+ Client get return reference
+ wip binary flags for http_method
+ moved config parser files
This commit is contained in:
LuckyLaszlo
2022-08-02 21:11:54 +02:00
parent 5aabeb6b46
commit 8f167d85f3
14 changed files with 107 additions and 70 deletions

View File

@@ -7,12 +7,20 @@
# include <sstream>
# include <cstdlib> // atoi
// enum http_method
// {
// GET = 0b000001,
// POST = 0b000010,
// DELETE = 0b000100,
// INVALID = 0b001000,
// };
enum http_method
{
GET = 1,
POST,
DELETE,
INVALID,
POST = 1 << 1,
DELETE = 1 << 2,
INVALID = 1 << 3,
};
std::vector<std::string> split(std::string input, char delimiter);