target
mach::Request::target
Returns the request target.
Description
Section titled “Description”Returns the target of the request.
Syntax
Section titled “Syntax”[[nodiscard]] std::string_view target() const noexcept;Return Value
Section titled “Return Value”The request target.
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 target = request().target();See Also
Section titled “See Also”| Name | Description |
|---|---|
method |
Returns the request method. |
version |
Returns the HTTP version. |
body |
Returns the request body. |