|
bool | SetHeader (std::string name, std::string value) |
| Add a new response header or rewrite an existing one.
|
|
bool | SetHeader (std::string_view name, std::string value) |
| Add a new response header or rewrite an existing one.
|
|
bool | SetHeader (const ::http::headers::PredefinedHeader &header, std::string value) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
void | SetContentType (const ::http::ContentType &type) |
| Add or rewrite the Content-Type header.
|
|
void | SetContentEncoding (std::string encoding) |
| Add or rewrite the Content-Encoding header.
|
|
bool | SetStatus (HttpStatus status) |
| Set the HTTP response status code.
|
|
bool | ClearHeaders () |
| Remove all headers from response.
|
|
void | SetCookie (Cookie cookie) |
| Sets a cookie if it was not set before.
|
|
void | ClearCookies () |
| Remove all cookies from response.
|
|
HttpStatus | GetStatus () const |
|
HeadersMapKeys | GetHeaderNames () const |
|
const std::string & | GetHeader (std::string_view header_name) const |
|
const std::string & | GetHeader (const ::http::headers::PredefinedHeader &header_name) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
bool | HasHeader (std::string_view header_name) const |
|
bool | HasHeader (const ::http::headers::PredefinedHeader &header_name) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
CookiesMapKeys | GetCookieNames () const |
|
const Cookie & | GetCookie (std::string_view cookie_name) const |
|
void | SetStatusServiceUnavailable () override |
|
void | SetStatusOk () override |
|
void | SetStatusNotFound () override |
|
bool | WaitForHeadersEnd () override |
|
void | SetHeadersEnd () override |
|
void | SetStreamBody () |
|
bool | IsBodyStreamed () const override |
|
Queue::Producer | GetBodyProducer () |
|
| ResponseBase (ResponseDataAccounter &data_accounter) |
|
| ResponseBase (const ResponseBase &)=delete |
|
| ResponseBase (ResponseBase &&)=delete |
|
void | SetData (std::string data) |
|
const std::string & | GetData () const |
|