Commit Graph

11 Commits

Author SHA1 Message Date
LuckyLaszlo
643b09c4f7 _request() and _response() refactoring
+ Wip redirection (weird behavior)
+ 505 HTTP Version Not Supported
2022-08-09 01:46:59 +02:00
LuckyLaszlo
02cfdf43bc bad_alloc handling
+ map.insert() replace map.operator[] for init, more efficient
2022-08-08 04:24:03 +02:00
LuckyLaszlo
8ec1353723 fixed response.append(body) problem.
+ File I/O working but maybe not perfect (it seems complicated to do it with std::filebuf)
+ fixed Content-Type for unknown file extension
2022-08-07 01:38:33 +02:00
LuckyLaszlo
05c7faf1f3 server search for client completed with host:port 2022-08-06 04:46:40 +02:00
LuckyLaszlo
79bdc1ecbf ALL_METHODS renamed to ANY_METHODS 2022-08-05 23:01:06 +02:00
LuckyLaszlo
e596d8f093 MIME types map for correct Content-type header
+ append body to string cause encoding problem, so added temp buf in Client.
2022-08-05 04:24:15 +02:00
LuckyLaszlo
3102253092 wip DELETE, POST (no cgi, need testing) 2022-08-04 20:56:37 +02:00
LuckyLaszlo
0026106bf6 default and custom error pages response
+ refactoring in response.cpp (functions split)
+ added Client::clear()
+ added replace_all_substr() in utils.cpp
2022-08-04 02:52:31 +02:00
hugogogo
af8dc072c1 added setsockopt to avoid reusability issue on socket fd 2022-07-31 12:31:55 +02:00
LuckyLaszlo
e5c2869172 Review parsing Eric and Luke.
Combined the config parser with Webserv class.
2022-07-31 00:27:48 +02:00
LuckyLaszlo
36868afa30 splitted Webserv.cpp 2022-07-29 17:16:26 +02:00