Skip to content
Download

target

mach::Request::target

Returns the request target.

Returns the target of the request.

[[nodiscard]] std::string_view target() const noexcept;

The request target.

This function is noexcept and does not throw exceptions.

This function is thread-safe.

auto target = request().target();
Name Description
method Returns the request method.
version Returns the HTTP version.
body Returns the request body.