Kea 2.7.5
|
Represents an URL. More...
#include <url.h>
Public Types | |
enum | Scheme { HTTP , HTTPS } |
Scheme: https or http. More... | |
Public Member Functions | |
Url (const std::string &url) | |
Constructor. | |
std::string | getErrorMessage () const |
Returns parsing error message. | |
std::string | getPath () const |
Returns path. | |
unsigned | getPort () const |
Returns port number. | |
Scheme | getScheme () const |
Returns parsed scheme. | |
std::string | getStrippedHostname () const |
Returns hostname stripped from [ ] characters surrounding IPv6 address. | |
bool | isValid () const |
Checks if the URL is valid. | |
bool | operator< (const Url &url) const |
compares URLs lexically. | |
const std::string & | rawUrl () const |
Returns the raw, unparsed URL string. | |
std::string | toText () const |
Returns textual representation of the URL. | |
Represents an URL.
It parses the provided URL and allows for retrieving the parts of it after parsing.
|
explicit |
|
inline |
std::string isc::http::Url::getPath | ( | ) | const |
Returns path.
InvalidOperation | if URL is invalid. |
Definition at line 59 of file url.cc.
Referenced by toText().
unsigned isc::http::Url::getPort | ( | ) | const |
Returns port number.
InvalidOperation | if URL is invalid. |
Definition at line 53 of file url.cc.
Referenced by toText().
Url::Scheme isc::http::Url::getScheme | ( | ) | const |
Returns parsed scheme.
InvalidOperation | if URL is invalid. |
Definition at line 31 of file url.cc.
Referenced by toText().
std::string isc::http::Url::getStrippedHostname | ( | ) | const |
Returns hostname stripped from [ ] characters surrounding IPv6 address.
InvalidOperation | if URL is invalid. |
|
inline |
bool isc::http::Url::operator< | ( | const Url & | url | ) | const |
|
inline |
std::string isc::http::Url::toText | ( | ) | const |