ot::web
class HttpProtocolVersion
#include "ot/web/HttpProtocolVersion.h"
Simple class that represents the version number of the HTTP protocol being used on a HTTP conversation.
- Since:
-
OpenTop 1.4
| Method Summary
|
bool |
operator!=(const HttpProtocolVersion& rhs) const
Inequality operator. |
bool |
operator<(const HttpProtocolVersion& rhs) const
|
bool |
operator<=(const HttpProtocolVersion& rhs) const
|
bool |
operator==(const HttpProtocolVersion& rhs) const
Equality operator. |
bool |
operator>(const HttpProtocolVersion& rhs) const
|
bool |
operator>=(const HttpProtocolVersion& rhs) const
|
static HttpProtocolVersion |
ParseVersionString(const String& str)
Parses a HTTP protocol version string as found in the response line from an HTTP request. |
String |
toString() const
Formats this HttpProtocolVersion into a String suitable for sending as part of an HTTP request. |
| Constructor/Destructor Detail |
HttpProtocolVersion
HttpProtocolVersion()
-
Default constructor.
HttpProtocolVersion
HttpProtocolVersion(Version ver)
-
Constructor taking a specific version number parameter.
operator!=
bool operator!=(const HttpProtocolVersion& rhs) const
-
Inequality operator.
- Returns:
-
true if this HttpProtocolVersion is not equal to rhs; false otherwise.
operator<
bool operator<(const HttpProtocolVersion& rhs) const
-
operator<=
bool operator<=(const HttpProtocolVersion& rhs) const
-
operator==
bool operator==(const HttpProtocolVersion& rhs) const
-
Equality operator.
- Returns:
-
true if this HttpProtocolVersion is equal to rhs; false otherwise.
operator>
bool operator>(const HttpProtocolVersion& rhs) const
-
operator>=
bool operator>=(const HttpProtocolVersion& rhs) const
-
ParseVersionString
static HttpProtocolVersion ParseVersionString(const String& str)
-
Parses a HTTP protocol version string as found in the response line from an HTTP request.
toString
String toString() const
-
Formats this HttpProtocolVersion into a String suitable for sending as part of an HTTP request.
Found a bug or missing feature? Please email us at support@elcel.com