request
mach::ControllerBase::request
Returns the current HTTP request.
Description
Section titled “Description”Returns the current HTTP request.
Syntax
Section titled “Syntax”// (1)[[nodiscard]] mach::Request& request() noexcept;
// (2)[[nodiscard]] const mach::Request& request() const noexcept;Return Value
Section titled “Return Value”Overload (1)
Section titled “Overload (1)”A reference to the current HTTP request.
Overload (2)
Section titled “Overload (2)”A const reference to the current HTTP request.
Exceptions
Section titled “Exceptions”This function is noexcept and does not throw exceptions.
Thread Safety
Section titled “Thread Safety”This function is thread-safe.
Example
Section titled “Example”auto& req = request();See Also
Section titled “See Also”| Name | Description |
|---|---|
response |
Returns the current HTTP response. |