[android-components](../index.md) / [mozilla.components.support.ktx.android.net](index.md) / [isHttpOrHttps](./is-http-or-https.md)

# isHttpOrHttps

`val <ERROR CLASS>.isHttpOrHttps: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/net/Uri.kt#L28)

Returns true if the [Uri](#) uses the "http" or "https" protocol scheme.

