remote

fun remote(protocol: String, host: String = "", port: Int? = null, path: String = "", query: String? = null): Url

Builds a Url with the given protocol and, optionally, host, port, path and query.