|
libqi-api
release-2.5.3-2016-11-18
|
#include <url.hpp>
Public Member Functions | |
| Url () | |
| Url (const std::string &url) | |
| Url (const std::string &url, unsigned short defaultPort) | |
| Url (const std::string &url, const std::string &defaultProtocol) | |
| Url (const std::string &url, const std::string &defaultProtocol, unsigned short defaultPort) | |
| virtual | ~Url () |
| bool | isValid () const |
| const std::string & | str () const |
| const std::string & | protocol () const |
| const std::string & | host () const |
| unsigned short | port () const |
qi::Url is an address represented by a protocol, a host and a port.
qi::Url can parse the following formats:
| qi::Url::Url | ( | ) |
Creates an empty url.
| qi::Url::Url | ( | const std::string & | url | ) |
| url | The url string, the port and the protocol will be extracted if they're present. |
| qi::Url::Url | ( | const std::string & | url, |
| unsigned short | defaultPort | ||
| ) |
| url | The url string, the port and the protocol will be extracted if they're present. |
| defaultPort | The port that will be used if no port had been found in the url string. |
| qi::Url::Url | ( | const std::string & | url, |
| const std::string & | defaultProtocol | ||
| ) |
| url | The url string, the port and the protocol will be extracted if they're present. |
| defaultProtocol | The protocol that will be used if no protocol had been found in the url string. |
| qi::Url::Url | ( | const std::string & | url, |
| const std::string & | defaultProtocol, | ||
| unsigned short | defaultPort | ||
| ) |
| url | The url string, the port and the protocol will be extracted if they're present. |
| defaultProtocol | The protocol that will be used if no protocol had been found in the url string. |
| defaultPort | The port that will be used if no port had been found in the url string. |
|
virtual |
| const std::string& qi::Url::host | ( | ) | const |
| bool qi::Url::isValid | ( | ) | const |
| unsigned short qi::Url::port | ( | ) | const |
| const std::string& qi::Url::protocol | ( | ) | const |
| const std::string& qi::Url::str | ( | ) | const |