Replace the fragment.
Replace the fragment.
Replace the fragment.
Replace the host.
Replace the host. Does not validate the new host value if it's nonempty.
Replace the host.
Replace the host. Does not validate the new host value if it's nonempty.
Adds the given parameter with an optional value to the query if it is present.
Adds the given parameter to the query.
Adds the given parameters to the query.
Adds the given parameters to the query.
Adds the given parameters to the query.
Replace path with the given path segments.
Replace path with the given path segments.
Replace path with the given single-segment path.
Replace path with the given path segment.
Replace path with the given path segments.
Replace path with the given path segment.
Either key-value pairs, single values, or plain query segments.
Either key-value pairs, single values, or plain
query segments. Key value pairs will be serialized as k=v
, and blocks
of key-value pairs/single values will be combined using &
. Note that no
&
or other separators are added around plain query segments - if
required, they need to be added manually as part of the plain query
segment.
Replace the scheme.
Replace the scheme. Does not validate the new scheme value.
A URI. All components (scheme, host, query, ...) are stored decoded, and become encoded upon serialization (using toString).
Instances can be created using the uri interpolator:
uri"..."
(see UriInterpolator), or the factory methods on the Uri companion object.