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

@@ -68,11 +68,14 @@ class Webserv
void _read_request(Client *client);
// response.cpp
void _response(Client *client);
ServerConfig &_determine_process_server(Client *client);
void _send_response(Client *client, ServerConfig &server);
void _construct_response(Client *client, ServerConfig &server);
void _insert_status_line(Client *client, ServerConfig &server);
void _get_ressource(Client *client, ServerConfig &server);
void _get_ressource(Client *client, ServerConfig &server, LocationConfig &location);
void _post(Client *client, ServerConfig &server, LocationConfig &location);
void _delete(Client *client, ServerConfig &server, LocationConfig &location);
ServerConfig &_determine_process_server(Client *client);
LocationConfig &_determine_location(ServerConfig &server, std::string &path);
// cgi_script.cpp
bool _is_cgi(Client *client);
void _exec_cgi(Client *client);