#include <ProtocolVersion.h>
Public Member Functions | |
ProtocolVersion () | |
ProtocolVersion (ProtocolType which, unsigned int aMajor, unsigned int aMinor) | |
operator bool () const | |
whether the version is "known" (e.g., has been parsed or explicitly set) More... | |
bool | operator== (const ProtocolVersion &that) const |
bool | operator!= (const ProtocolVersion &that) const |
bool | operator< (const ProtocolVersion &that) const |
bool | operator> (const ProtocolVersion &that) const |
bool | operator<= (const ProtocolVersion &that) const |
bool | operator>= (const ProtocolVersion &that) const |
Public Attributes | |
ProtocolType | protocol |
which protocol this version is for More... | |
unsigned int | major |
major version number More... | |
unsigned int | minor |
minor version number More... | |
Detailed Description
Stores a protocol version label. For example HTTP/1.1 or ICY/1.0 or FTP/2.0
Definition at line 23 of file ProtocolVersion.h.
Constructor & Destructor Documentation
◆ ProtocolVersion() [1/2]
|
inline |
Definition at line 29 of file ProtocolVersion.h.
◆ ProtocolVersion() [2/2]
|
inline |
Definition at line 34 of file ProtocolVersion.h.
Member Function Documentation
◆ operator bool()
|
inlineexplicit |
Definition at line 44 of file ProtocolVersion.h.
References AnyP::PROTO_NONE, and protocol.
◆ operator!=()
|
inline |
Definition at line 59 of file ProtocolVersion.h.
◆ operator<()
|
inline |
Definition at line 63 of file ProtocolVersion.h.
◆ operator<=()
|
inline |
Definition at line 79 of file ProtocolVersion.h.
References protocol.
◆ operator==()
|
inline |
Definition at line 46 of file ProtocolVersion.h.
◆ operator>()
|
inline |
Definition at line 71 of file ProtocolVersion.h.
◆ operator>=()
|
inline |
Definition at line 86 of file ProtocolVersion.h.
References protocol.
Member Data Documentation
◆ major
unsigned int AnyP::ProtocolVersion::major |
Definition at line 40 of file ProtocolVersion.h.
Referenced by ProtocolVersion(), HttpHeader::addVia(), Format::Format::assemble(), HttpReply::bodySize(), HttpStateData::buildRequestPrefix(), clientProcessRequest(), ErrorState::compileLegacyCode(), ErrorState::Dump(), htcpClear(), htcpQuery(), Http::One::RequestParser::http0(), Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), operator!=(), operator<(), AnyP::operator<<(), operator==(), operator>(), HttpRequest::pack(), HttpRequest::packFirstLineInto(), HttpRequest::parseFirstLine(), and Security::NegotiationHistory::printTlsVersion().
◆ minor
unsigned int AnyP::ProtocolVersion::minor |
Definition at line 41 of file ProtocolVersion.h.
Referenced by ProtocolVersion(), HttpHeader::addVia(), Format::Format::assemble(), HttpStateData::buildRequestPrefix(), clientProcessRequest(), ErrorState::compileLegacyCode(), ErrorState::Dump(), Http::One::ResponseParser::firstLineSize(), htcpClear(), htcpQuery(), Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), operator!=(), operator<(), AnyP::operator<<(), operator==(), operator>(), HttpRequest::pack(), HttpRequest::packFirstLineInto(), HttpRequest::parseFirstLine(), and Security::NegotiationHistory::printTlsVersion().
◆ protocol
ProtocolType AnyP::ProtocolVersion::protocol |
Definition at line 39 of file ProtocolVersion.h.
Referenced by HttpHeader::addVia(), clientReplyContext::buildReplyHeader(), HttpStateData::buildRequestPrefix(), clientProcessRequest(), clientReplyContext::cloneReply(), ErrorState::compileLegacyCode(), ErrorState::Dump(), Http::One::ResponseParser::firstLineSize(), Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), operator bool(), operator!=(), operator<(), AnyP::operator<<(), operator<=(), operator==(), operator>(), operator>=(), ConnStateData::prepareTlsSwitchingURL(), Security::NegotiationHistory::printTlsVersion(), HttpStateData::processReplyHeader(), ConnStateData::switchToHttps(), and Security::TlsVersionEarlierThan().
The documentation for this class was generated from the following file:
- src/anyp/ProtocolVersion.h