version
mach::Response::version
Returns the HTTP version.
Description
Section titled “Description”Returns the HTTP version used in the response.
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 = response().version();See Also
Section titled “See Also”| Name | Description |
|---|---|
Version |
Represents an HTTP version. |
status |
Returns the response status. |
body |
Returns the response body. |