added trim in utils, added parse request header, mv pdf in docs

This commit is contained in:
hugogogo
2022-08-01 00:07:51 +02:00
parent cbb1d12d54
commit 031932e887
10 changed files with 107 additions and 30 deletions

View File

@@ -26,4 +26,4 @@ struct Client
};
#endif
#endif

View File

@@ -107,7 +107,11 @@ class Webserv
//
void _serve_file(Client *client, std::string page);
void _exec_cgi_script(Client *client);
void _parse_request();
void _parse_request(Client *client);
void _parse_request_line(Client *client, std::string rline);
void _parse_request_headers
( Client *client
, std::vector<std::string> list);
//
// END TMP HUGO TEST CGI
};

View File

@@ -7,7 +7,8 @@
# include <vector>
std::vector<std::string> split(std::string input, char delimiter);
char* itoa(int n);
std::string itoa(int n);
std::string trim(std::string str, char c);
#endif