34 explicit Url(
const std::string& url);
53 return (error_message_);
82 std::string
toText()
const;
95 std::string getHostname()
const;
98 void checkValid()
const;
113 std::string error_message_;
119 std::string hostname_;
std::string toText() const
Returns textual representation of the URL.
std::string getStrippedHostname() const
Returns hostname stripped from [ ] characters surrounding IPv6 address.
std::string getErrorMessage() const
Returns parsing error message.
unsigned getPort() const
Returns port number.
Scheme getScheme() const
Returns parsed scheme.
bool operator<(const Url &url) const
compares URLs lexically.
Url(const std::string &url)
Constructor.
bool isValid() const
Checks if the URL is valid.
std::string getPath() const
Returns path.
const std::string & rawUrl() const
Returns the raw, unparsed URL string.
Scheme
Scheme: https or http.
Defines the logger used by the top-level component of kea-lfc.