Malloy
|
#include <request.hpp>
Public Member Functions | |
request (http::method method_, std::string_view host, const std::uint16_t port, std::string_view target_) | |
request (msg_t &&raw) | |
request (const request &other)=default | |
request (request &&other) noexcept=default | |
virtual | ~request ()=default |
request & | operator= (const request &rhs)=default |
request & | operator= (request &&rhs) noexcept=default |
std::uint16_t | port () const noexcept |
std::unordered_map< std::string, std::string > | cookies () const noexcept |
bool | has_cookie (const std::string &name) const |
std::string_view | cookie (const std::string_view &name) const |
Represents an HTTP request.
|
inline |
Constructor.
method_ | The HTTP method |
host | The host to connect to. |
port | The port at which the host serves requests. |
target_ | The target. |
|
inlineexplicit |
Constructor
raw | The underlying raw HTTP message |
|
default |
Copy constructor.
other | The object to copy construct from. |
|
defaultnoexcept |
Move constructor.
other | The object to move-construct from. |
|
virtualdefault |
Destructor.
|
inline |
Gets the value of a cookie.
|
inlinenoexcept |
Returns the request's cookies.
|
inline |
Checks whether a particular cookie is present.
|
default |
Copy assignment operator.
rhs | The object to copy-assign from. |
|
defaultnoexcept |
Move assignment operator.
rhs | The object to move-assign from. |
|
inlinenoexcept |
Retrieve the port.