Skip to content
Download

Version

mach::Version

Represents the HTTP protocol version used by a request or response.

Primary header:

#include <mach/http/Version.hpp>

Convenience header:

#include <mach/mach.hpp>
enum class Version {
Http10,
Http11,
Http2,
Http3,
Unknown
};
Name Description
Http10 HTTP/1.0.
Http11 HTTP/1.1.
Http2 HTTP/2.
Http3 HTTP/3.
Unknown An unknown or unsupported HTTP version.

Mach currently supports HTTP/1.0 and HTTP/1.1. Requests using other HTTP versions are rejected.

Name Description
Request Represents the current HTTP request.