fromUrl

fun fromUrl(url: URL): Route(source)

Convert a URL to a Route.

This will generally succeed unless the URL is some non-http protocol, at which point a blank URL will be returned.