wip DELETE, POST (no cgi, need testing)

This commit is contained in:
LuckyLaszlo
2022-08-04 20:56:37 +02:00
parent a9ada4cb28
commit 3102253092
5 changed files with 133 additions and 12 deletions

View File

@@ -1,5 +1,11 @@
- handle redirection
- maybe add a "last_action_time" in Client for timeout handling
little global timeout on epoll, like 100ms, then find client that actualy need to timeout
if (actual_time - client.last_action_time > 10000ms){timeout(client)}
- add headers "Date" and "Last-Modified" to response
- change "std::string" to reference "std::string &" in most functions
and add "const" if apropriate.
- http_method en mode binary flags. "std::vector<http_method> allow_methods" -> "unsigned int allow_methods;"
- Dans le parsing, trier les "locations" par ordre de precision.
Compter les "/" dans le chemin, les locations avec le plus de "/" seront en premier dans le vector.