response
mach::ControllerBase::response
Returns the current HTTP response.
Description
Section titled “Description”Returns the current HTTP response.
Syntax
Section titled “Syntax”// (1)[[nodiscard]] mach::Response& response() noexcept;
// (2)[[nodiscard]] const mach::Response& response() const noexcept;Return Value
Section titled “Return Value”Overload (1)
Section titled “Overload (1)”A reference to the current HTTP response.
Overload (2)
Section titled “Overload (2)”A const reference to the current HTTP response.
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& res = response();See Also
Section titled “See Also”| Name | Description |
|---|---|
request |
Returns the current HTTP request. |