blob: c9c5ff49ff6d9f6a2fc28458b35ececbac1546b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "HttpResponse.h"
HttpResponse::HttpResponse(ResponseCode response_code)
{
m_string_stream << "HTTP/1.0 200 OK";
}
void HttpResponse::add_header(std::string header)
{
m_string_stream << '\n' << header;
}
std::string HttpResponse::to_string() const
{
return m_string_stream.str();
}
|