//okhttp/okhttp3/HttpUrl/Companion/toHttpUrl
toHttpUrl¶
[jvm]\
@JvmName(name = "get")
fun String.toHttpUrl(): HttpUrl
Returns a new HttpUrl representing this.
Throws¶
kotlin.IllegalArgumentException | If this is not a well-formed HTTP or HTTPS URL. |