okhttp / okhttp3 / Address / url

url

fun url(): HttpUrl

Returns a URL with the hostname and port of the origin server. The path, query, and fragment of this URL are always empty, since they are not significant for planning a route.