dodo
0.0.1
A C++ library to create containerized Linux services
|
Go to the documentation of this file.
24 #ifndef dodo_network_protocol_http_httpversion_hpp
25 #define dodo_network_protocol_http_httpversion_hpp
32 namespace network::protocol::http {
virtual ParseResult parse(VirtualReadBuffer &buffer)
Construct from current position in the VirtualReadBuffer 'HTTP/major_.minor_'.
HTTPVersion()
Default constructor to HTTP/1.0.
HTTPVersion(unsigned int major, unsigned int minor)
Construct from major and minor.
Interface to read individual bytes whilst the implementation can read from an actual source (such as ...
virtual std::string asString() const
Convert to string as 'HTTP/major_.minor_'.
HHTP version comprising a major and minor number, convertable from and to string as in HTTP requests.
bool operator<(const HTTPVersion &version) const
Less-than operator.
unsigned int minor_
The minor version.
Generic HTTP fragment, either a complete (such as HTTPRequest) or incomplete HTTP fragment (ssuch as ...
unsigned int getMajor() const
Return the major version.
A C++ platform interface to lean Linux services tailored for containerized deployment.
bool operator==(const HTTPVersion &version) const
Equality operator.
unsigned int getMinor() const
Return the minor version.
bool operator>(const HTTPVersion &version) const
Greater than operator.
HTTPVersion & operator=(const HTTPVersion &version)
Assignment operator.
unsigned int major_
The major version.