Malloy
|
#include <response.hpp>
Public Member Functions | |
response ()=default | |
response (msg_t &&msg) | |
response (const boost::beast::http::response_header< Fields > &header) | |
response (boost::beast::http::response_header< Fields > &&header) | |
response (const status &status_) | |
response (const response &other)=default | |
response (response &&other) noexcept=default | |
virtual | ~response ()=default |
response & | operator= (const response &rhs)=default |
response & | operator= (response &&rhs) noexcept=default |
void | set_status (http::status status) |
http::status | status () const |
void | add_cookie (const cookie &c) |
The response type.
|
default |
Default constructor.
|
inlineexplicit |
Constructor.
msg | The HTTP message. |
|
inlineexplicit |
Constructor.
header | The header. |
|
inlineexplicit |
Constructor.
header | The header. |
|
inlineexplicit |
Constructor.
status_ | The HTTP status to use. |
|
default |
Copy constructor.
other | The object to copy-construct from. |
|
defaultnoexcept |
Move constructor.
other | The object to move-construct from. |
|
virtualdefault |
Destructor.
|
inline |
Adds a cookie.
c | The cookie. |
|
default |
Copy assignment operator.
rhs | The object to copy-assign from. |
|
defaultnoexcept |
Move assignment operator.
rhs | The object to move-assign from. |
|
inline |
Set the HTTP status code.
status | The HTTP status code. |
|
inline |
Retrieve the HTTP status.