Start of the body processing
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user