Server API rework.

This commit is contained in:
Chunting Gu
2019-06-26 17:34:39 +08:00
parent a65294aeec
commit a3cab444dc
20 changed files with 341 additions and 384 deletions
+1 -2
View File
@@ -25,8 +25,7 @@ const char CRLF[] = { '\r', '\n' };
// -----------------------------------------------------------------------------
// Read entire file into string.
static bool ReadFile(const Path& path, std::string* output) {
bool ReadFile(const Path& path, std::string* output) {
// Flag "ate": seek to the end of stream immediately after open.
bfs::ifstream stream{ path, std::ios::binary | std::ios::ate };
if (stream.fail()) {