Skip to content
Download

response

mach::ControllerBase::response

Returns the current HTTP response.

Returns the current HTTP response.

// (1)
[[nodiscard]] mach::Response& response() noexcept;
// (2)
[[nodiscard]] const mach::Response& response() const noexcept;

A reference to the current HTTP response.

A const reference to the current HTTP response.

This function is noexcept and does not throw exceptions.

This function is thread-safe.

auto& res = response();
Name Description
request Returns the current HTTP request.