Skip to content
Download

version

mach::Response::version

Returns the HTTP version.

Returns the HTTP version used in the response.

[[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 = response().version();
Name Description
Version Represents an HTTP version.
status Returns the response status.
body Returns the response body.