24 #ifndef _HTTPRESPONSEHEADER_H_
25 #define _HTTPRESPONSEHEADER_H_ 1
88 const std::string& reason_phrase);
109 addHeader(
const std::string& header);
119 addHeader(
const std::string& name,
120 const std::string& value);
127 inline const std::vector<std::string>&
146 inline const std::vector<HTTPCookie>&
164 inline const std::string&
165 getHTTPVersion()
const
166 {
return fHTTPVersion; }
175 getStatusCode()
const
176 {
return fStatusCode; }
185 getReasonPhrase()
const
186 {
return fReasonPhrase; }
204 getHTTPVersion(
const std::string& http_version)
205 { fHTTPVersion = http_version;
return *
this; }
215 getStatusCode(
int status_code)
216 { fStatusCode = status_code;
return *
this; }
226 getReasonPhrase(
const std::string& reason_phrase)
227 { fReasonPhrase = reason_phrase;
return *
this; }
235 render(std::ostream& out)
const;
241 std::string fHTTPVersion;
243 std::string fReasonPhrase;
244 std::vector<std::string> fHeaders;
245 std::vector<HTTPCookie> fCookies;