Skip to content
Download

version

mach::Request::version

Returns the HTTP version.

Returns the HTTP version used in the request.

[[nodiscard]] http::Version version() const noexcept;

The HTTP version.

This function is noexcept and does not throw exceptions.

This function is thread-safe.

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