bad_alloc handling
+ map.insert() replace map.operator[] for init, more efficient
This commit is contained in:
@@ -46,5 +46,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);
|
||||
void throw_test();
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user