LuckyLaszlo
ab0bc2c4c0
added timeout response (status 408)
...
+ added EPOLLERR and EPOLLHUP handling
+ fix root substitution for default "/" location (temp or permanent ?)
+ tested siege a little, seems good
2022-08-11 07:12:13 +02:00
hugogogo
482a38952e
Merge branch 'hugo2'
...
+ changed the appropriate getters for client
+ moved the functions to parse the http message
(first line, headers, and body)
outside client, in parsing_http_message.cpp
+ resolved some of the throw problems
2022-08-09 15:54:40 +02:00
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
hugogogo
63ff42b57d
client variables are made const
2022-08-06 19:58:09 +02:00
hugogogo
6f171ec07b
wip cgi env variables
2022-08-06 11:34:48 +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