toUrl

fun URL.toUrl(): Url

Wraps a plain java.net. URL into a Url, for interop with code that already has one (e.g. JVM APIs).