CGI discussion and a little bit of work done

This commit is contained in:
LuckyLaszlo
2022-08-12 18:08:39 +02:00
parent cade79c37f
commit b44acafefe
9 changed files with 61 additions and 59 deletions

View File

@@ -80,7 +80,7 @@ class Webserv
int _send_response(Client *client);
void _append_base_headers(Client *client);
void _construct_response(Client *client);
void _process_method(Client *client);
void _process_method(Client *client, std::string &path);
void _insert_status_line(Client *client);
void _error_html_response(Client *client);
void _append_body(Client *client, const std::string &body, const std::string &file_extension = "");
@@ -92,17 +92,17 @@ class Webserv
// move later
std::string _replace_url_root(Client *client, std::string path);
void _get(Client *client);
void _get(Client *client, std::string &path);
void _get_file(Client *client, const std::string &path);
void _autoindex(Client *client, std::string &path);
void _autoindex(Client *client, const std::string &path);
// method_post.cpp
void _post(Client *client);
void _post(Client *client, const std::string &path);
void _post_file(Client *client, const std::string &path);
// method_delete.cpp
void _delete(Client *client);
void _delete(Client *client, const std::string &path);
void _delete_file(Client *client, const std::string &path);
// cgi_script.cpp
bool _is_cgi(Client *client);
size_t _cgi_pos(Client *client, std::string &path);
std::string _exec_cgi(Client *client);
char** _set_env(Client *client);
char* _dup_env(std::string var, std::string val);