Version
mach::Version
Description
Section titled “Description”Represents the HTTP protocol version used by a request or response.
Headers
Section titled “Headers”Primary header:
#include <mach/http/Version.hpp>Convenience header:
#include <mach/mach.hpp>Syntax
Section titled “Syntax”enum class Version { Http10, Http11, Http2, Http3, Unknown};Enumerators
Section titled “Enumerators”| Name | Description |
|---|---|
Http10 |
HTTP/1.0. |
Http11 |
HTTP/1.1. |
Http2 |
HTTP/2. |
Http3 |
HTTP/3. |
Unknown |
An unknown or unsupported HTTP version. |
Remarks
Section titled “Remarks”Mach currently supports HTTP/1.0 and HTTP/1.1. Requests using other HTTP versions are rejected.
See Also
Section titled “See Also”| Name | Description |
|---|---|
Request |
Represents the current HTTP request. |