31 const AString & a_AuthorityPart,
43 static std::pair<bool, AString>
Parse(
static std::pair< bool, AString > Parse(const AString &a_Url, AString &a_Scheme, AString &a_Username, AString &a_Password, AString &a_Host, UInt16 &a_Port, AString &a_Path, AString &a_Query, AString &a_Fragment)
Parses the given URL into individual components.
static std::pair< bool, AString > ParseAuthorityPart(const AString &a_AuthorityPart, AString &a_Username, AString &a_Password, AString &a_Host, UInt16 &a_Port)
Parses the given Authority part of an URL into individual components.
static bool IsKnownScheme(const AString &a_Scheme)
Returns true if the specified scheme (http, ftp, mailto, ...) is recognized by the URL parser.
static std::pair< bool, AString > Validate(const AString &a_Url)
Checks if the supplied URL is valid.
static UInt16 GetDefaultPort(const AString &a_Scheme)
Returns the default port used by the specified scheme / protocol.