wip, need somes changes in ConfigParser.

+ _determine_location()
+ http_method changes
+ http_method switch in _construct_response()
+ ConfigParser::_str_to_method_type() moved to global utils.cpp
This commit is contained in:
LuckyLaszlo
2022-08-03 18:39:22 +02:00
parent 8f167d85f3
commit 6f5b28dd93
11 changed files with 159 additions and 68 deletions

View File

@@ -11,7 +11,7 @@
struct Request
{
std::map<std::string, std::string> headers;
std::string method;
http_method method;
std::string path;
std::string version;
std::string body;
@@ -31,7 +31,7 @@ class Client
unsigned int status;
// const functions ?
std::string &get_method();
http_method get_method();
std::string &get_path();
std::string &get_version();
std::string &get_body();