UriExt extension

Extension methods for the Uri class, providing additional utilities.

on

Properties

base String

Available on Uri, provided by the UriExt extension

Returns the base URL of the URI, consisting of the scheme, host, and port (if present).
no setter
generateMd5 String

Available on Uri, provided by the UriExt extension

Generates the MD5 hash of the URI as a string.
no setter

Methods

pathPrefix([int relativePath = 0]) String

Available on Uri, provided by the UriExt extension

Returns a string representation of the URI with a truncated path.