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 - Converts the current string to a local HTTP Uri object.
-
toLocalUrl(
) → String - Converts the current string (assumed to be a URL) to a local HTTP address.
-
toOriginUri(
) → Uri - Restores the original URL as a Uri object.
-
toOriginUrl(
) → String - Restores the original URL from a local URL.
-
toSafeUri(
) → Uri - Cleans the current string and parses it as a Uri object.
-
toSafeUrl(
) → String - Cleans and safely encodes the current string as a URL.