[android-components](../index.md) / [mozilla.components.support.ktx.android.net](./index.md)

## Package mozilla.components.support.ktx.android.net

### Properties

| Name | Summary |
|---|---|
| [hostWithoutCommonPrefixes](host-without-common-prefixes.md) | `val <ERROR CLASS>.hostWithoutCommonPrefixes: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`<br>Returns the host without common prefixes like "www" or "m". |
| [isHttpOrHttps](is-http-or-https.md) | `val <ERROR CLASS>.isHttpOrHttps: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>Returns true if the [Uri](#) uses the "http" or "https" protocol scheme. |

### Functions

| Name | Summary |
|---|---|
| [isInScope](is-in-scope.md) | `fun <ERROR CLASS>.isInScope(scopes: `[`Iterable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html)`<<ERROR CLASS>>): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>Checks that the given URL is in one of the given URL [scopes](is-in-scope.md#mozilla.components.support.ktx.android.net$isInScope(, kotlin.collections.Iterable(()))/scopes). |
| [sameOriginAs](same-origin-as.md) | `fun <ERROR CLASS>.sameOriginAs(other: <ERROR CLASS>): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>Checks that Uri has the same origin as [other](same-origin-as.md#mozilla.components.support.ktx.android.net$sameOriginAs(, )/other). |
| [sameSchemeAndHostAs](same-scheme-and-host-as.md) | `fun <ERROR CLASS>.sameSchemeAndHostAs(other: <ERROR CLASS>): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>Checks that Uri has the same scheme and host as [other](same-scheme-and-host-as.md#mozilla.components.support.ktx.android.net$sameSchemeAndHostAs(, )/other). |
