okhttp / okhttp3 / HttpUrl / newBuilder

newBuilder

fun newBuilder(): HttpUrl.Builder

Returns a builder based on this URL.

fun newBuilder(link: String): HttpUrl.Builder?

Returns a builder for the URL that would be retrieved by following link from this URL, or null if the resulting URL is not well-formed.