okhttp / okhttp3 / HttpUrl / toHttpUrl

toHttpUrl

@JvmStatic @JvmName("get") fun String.toHttpUrl(): HttpUrl

Returns a new HttpUrl representing this.

Exceptions

IllegalArgumentException - If this is not a well-formed HTTP or HTTPS URL.