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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user