UriUtils extension
Extensions on Uri for real-world utility operations.
- on
Properties
- hasQueryParams → bool
-
Available on Uri, provided by the UriUtils extension
Returnstrueif this URI has at least one query parameter.no setter - isAbsolute → bool
-
Available on Uri, provided by the UriUtils extension
Returnstrueif this URI is an absolute URL (has scheme + host).no setter - isSecure → bool
-
Available on Uri, provided by the UriUtils extension
Returnstrueif this URI useshttps.no setter
Methods
-
appendPath(
String segment) → Uri -
Available on Uri, provided by the UriUtils extension
Appends asegmentto the URI path. -
removeQueryParam(
String key) → Uri -
Available on Uri, provided by the UriUtils extension
Returns a new Uri withkeyremoved from the query string. -
withQueryParam(
String key, String value) → Uri -
Available on Uri, provided by the UriUtils extension
Returns a new Uri withkey=valueadded (or replaced) in the query. -
withQueryParams(
Map< String, String> params) → Uri -
Available on Uri, provided by the UriUtils extension
Returns a new Uri with allparamsmerged into the query string.