22 explicit HttpVersion(
const unsigned major,
const unsigned minor)
23 : major_(major), minor_(minor) {
30 return ((major_ < rhs.
major_) ||
38 return ((major_ == rhs.
major_) && (minor_ == rhs.
minor_));
45 return (!
operator==(rhs));
HttpVersion(const unsigned major, const unsigned minor)
Constructor.
unsigned major_
Major HTTP version.
static const HttpVersion & HTTP_11()
HTTP version 1.1.
bool operator!=(const HttpVersion &rhs) const
Operator not equal.
bool operator==(const HttpVersion &rhs) const
Operator equal.
Defines the logger used by the top-level component of kea-dhcp-ddns.
static const HttpVersion & HTTP_20()
HTTP version 2.0.
static const HttpVersion & HTTP_10()
HTTP version 1.0.
bool operator<(const HttpVersion &rhs) const
Operator less.
unsigned minor_
Minor HTTP version.