copy

fun copy(block: Url.Builder.() -> Unit = { }): Url

Returns a copy of this URL with the given DSL builder block applied to modify any desired fields. The returned instance is disconnected from this instance.