Skip to content
Download

method

mach::Request::method

Returns the request method.

Returns the HTTP method used in the request.

[[nodiscard]] http::Method method() const noexcept;

The request method.

This function is noexcept and does not throw exceptions.

This function is thread-safe.

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