isHttpOrHttps

fun URI.isHttpOrHttps(): Boolean

Checks whether the current URI value has an HTTP or HTTPS scheme.

Return

true if the URI has an HTTP or HTTPS scheme, false otherwise.