2
3
4
5
15
16
20
21
38
39
40
47
48
52
53
54
58
59
60
64
65
66
70
71
72
76
77
78
82
83
84
85
86 void AddHeader(
const std::string& name,
const std::string& value);
89
90
91
92 void SetBody(
const std::string& body);
95
96
97
103
104
108
109
113
114
118
119
123
124
#define SPICES_PROFILE_ZONE
void Append(const std::string &msg)
Append Message to this buffer.
Wrapper of readwrite buffer.
void SetCloseConnection(bool on)
Set CloseConnection.
HttpResponse(bool close)
Constructor Function.
void SetContentType(const std::string &contentType)
Set ContentType.
std::string m_StatusMessage
StatusMessage.
StatusCode m_StatusCode
StatusCode.
bool m_CloseConnection
CloseConnection.
void SetBody(const std::string &body)
Set body.
void SetStatusCode(StatusCode code)
Set StatusCode.
void SetStatusMessage(const std::string &message)
Set StatusMessage.
void AddHeader(const std::string &name, const std::string &value)
Add a header.
void AppendToBuffer(Buffer *output)
Append this response to Buffer.
virtual ~HttpResponse()=default
Destructor Function.
bool CloseConnection() const
Get CloseConnection.
std::unordered_map< std::string, std::string > m_Header
This response header.