bad_alloc handling
+ map.insert() replace map.operator[] for init, more efficient
This commit is contained in:
4
memo.txt
4
memo.txt
@@ -1,9 +1,10 @@
|
||||
IN 42 SUBJECT, PRIORITY :
|
||||
- chunked request (response not mandatory it seems)
|
||||
- upload files with confif "upload_dir"
|
||||
- 505 HTTP Version Not Supported
|
||||
- CGI
|
||||
- handle redirection
|
||||
- index and autoindex
|
||||
- gestion memoire en cas de bad_alloc
|
||||
- Ecrire des tests !
|
||||
-----------------------------
|
||||
- replace atoi() with a better function
|
||||
@@ -17,7 +18,6 @@ IN 42 SUBJECT, PRIORITY :
|
||||
- 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.
|
||||
- Il faut vérifier le path de la requête, voir si le serveur est bien censé délivrer cette ressource et si le client y a accès, avant d'appeler le CGI.
|
||||
|
||||
Reference in New Issue
Block a user