UrlExt extension

Extension methods for String to provide URL manipulation and hashing utilities.

on

Properties

generateMd5 String

Available on String, provided by the UrlExt extension

Generates the MD5 hash of the current string. Returns the hash as a hexadecimal string.
no setter

Methods

toLocalUri() Uri

Available on String, provided by the UrlExt extension

Converts the current string to a local HTTP Uri object.
toLocalUrl() String

Available on String, provided by the UrlExt extension

Converts the current string (assumed to be a URL) to a local HTTP address.
toOriginUri() Uri

Available on String, provided by the UrlExt extension

Restores the original URL as a Uri object.
toOriginUrl() String

Available on String, provided by the UrlExt extension

Restores the original URL from a local URL.
toSafeUri() Uri

Available on String, provided by the UrlExt extension

Cleans the current string and parses it as a Uri object.
toSafeUrl() String

Available on String, provided by the UrlExt extension

Cleans and safely encodes the current string as a URL.