litle fix in utils trim

+ added 2 functions to check script output
+ created a html page with 4 forms for tests
+ created 2 cpp forms, with and without creating header content-length
This commit is contained in:
Hugo LAMY
2022-08-15 00:24:08 +02:00
parent d663a4c7e6
commit f6f63931ad
12 changed files with 385 additions and 73 deletions

View File

@@ -114,6 +114,8 @@ class Webserv
void _check_script_output(Client *client, std::string & output);
void _check_script_status(Client *client, std::string & output);
void _check_script_fields(Client *client, std::string & output);
void _add_script_body_length_header(std::string & output);
void _remove_body_leading_empty_lines(std::string & output);
// epoll_update.cpp
int _epoll_update(int fd, uint32_t events, int op);
int _epoll_update(int fd, uint32_t events, int op, void *ptr);