63 return this->nb == other.
nb;
67 return this->nb < other.
nb;
71 return *
this < other || *
this == other;
75 return !(*
this <= other);
79 return !(*
this < other);
83 return !(*
this == other);
89 #define VERSION(name) static const Version name 97 #define DEF_VERSION(name, str, nb) const Version Version::name{str, nb} std::string operator()(const scl::http::Version &v) const
const char * version_type
The string representation type.
const integral_type nb
The integer representation of the version.
A pseudo enum class that describes the version of the HTTP Protocol.
Global namespace of the SCL.
constexpr bool operator!=(const Version &other) const
static const Version V1_1
constexpr bool operator==(const Version &other) const
const version_type str
The string representation of the version.
constexpr bool operator<(const Version &other) const
constexpr Version(const version_type &v, integral_type i)
Constrct a version from its string and integer representation.
constexpr bool operator>=(const Version &other) const
static const Version V2_0
static const std::string HTTP
static const Version V1_0
constexpr bool operator<=(const Version &other) const
constexpr bool operator>(const Version &other) const
static const Version V3_0
unsigned char integral_type
The integer representation type.
#define DEF_VERSION(name, str, nb)