tests: add httpcommon tests and add new file_handler methods (#2712)

Co-authored-by: Mariotaku <mariotaku.lee@gmail.com>
This commit is contained in:
ReenigneArcher
2024-06-17 14:03:42 -04:00
committed by GitHub
parent 0c0b4c4610
commit 334267807f
8 changed files with 144 additions and 6 deletions

View File

@@ -7,8 +7,15 @@
#include <string>
namespace file_handler {
std::string
get_parent_directory(const std::string &path);
bool
make_directory(const std::string &path);
std::string
read_file(const char *path);
int
write_file(const char *path, const std::string_view &contents);
} // namespace file_handler