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