key fields headers in map are in lowercase
+ getters for this map are case insensitive + change request fiel 'path' for 'uri', 'query', and 'abs_path'
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
# include <string>
|
||||
# include <sstream>
|
||||
# include <cstdlib> // atoi
|
||||
# include <cctype> // tolower
|
||||
# include <algorithm> // transform
|
||||
|
||||
# define CR "\r"
|
||||
# define LF "\n"
|
||||
@@ -46,5 +48,6 @@ std::string trim(std::string str, char c);
|
||||
http_method str_to_http_method(std::string &str);
|
||||
std::string http_methods_to_str(unsigned int methods);
|
||||
void replace_all_substr(std::string &str, const std::string &ori_substr, const std::string &new_substr);
|
||||
std::string str_tolower(std::string str);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user