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