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