Le merge / 20
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
# include <cctype> // tolower
|
||||
# include <algorithm> // transform
|
||||
# include <cstdio> // perror, fflush
|
||||
# include <unistd.h> // close, access
|
||||
# include "colors.h" // for debug print_special
|
||||
|
||||
# define CR "\r"
|
||||
@@ -64,6 +65,7 @@ std::string trim(std::string str, char del);
|
||||
http_method str_to_http_method(std::string &str);
|
||||
std::string http_methods_to_str(unsigned int methods);
|
||||
file_type eval_file_type(const std::string &path);
|
||||
size_t eval_file_mode(std::string path, int mode);
|
||||
void replace_all_substr(std::string &str, const std::string &ori_substr, const std::string &new_substr);
|
||||
std::string str_tolower(std::string str);
|
||||
std::string extract_line(std::string & str, size_t pos = 0, std::string delim = "\n");
|
||||
|
||||
Reference in New Issue
Block a user