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

# isHttpOrHttps

`val `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`.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](https://developer.android.com/reference/android/net/Uri.html) uses the "http" or "https" protocol scheme.

