Template
1
0

Start of the body processing

This commit is contained in:
2025-07-02 15:14:16 +03:00
parent 309ba08e34
commit 14394f1c9f
4 changed files with 76 additions and 22 deletions

View File

@@ -12,6 +12,16 @@ std::string Helpers::ReadFile(std::string Path) {
return contents.str();
}
void Helpers::getlineAndCount(std::basic_istream<char> &stream, uint64_t &count,
std::string &string, char delimit) {
if (delimit == '\0') {
std::getline(stream, string);
} else {
std::getline(stream, string, delimit);
}
count += string.size() + 1; // Delimiter
return;
}
std::string Helpers::GenerateResponse(std::string statusCode,
std::string contentType,
std::string content) {