class UrlAuthority
source · line 6public
public class UrlAuthority internal constructor(
/**
* Encoded user information, excluding the trailing at sign.
*/
public val encodedUserInfo: String?,
/**
* The serialized host component, including brackets for an IP literal when applicable.
*/
public val encodedHost: String,
/**
* The explicit port, or None when omitted.
*/
public val port: Int?,
internal val hostKind: Int,
internal val resolution: HostResolution
) : Equals<UrlAuthority>, Hash, ToString
- Supertype
Equals<UrlAuthority> - Supertype
Hash - Supertype
ToString
A parsed authority preserving encoded user information, host, and an explicitly supplied port.
property encodedUserInfo
source · line 10public
public val encodedUserInfo: String?
get: public read-only
Encoded user information, excluding the trailing at sign.
function hash
source · line 33public
public override fun hash(): Long
- Overrides
hash
Hashes the serialized representation used by equality.
function equals
source · line 29public
public override operator fun equals(other: UrlAuthority): Boolean
- Overrides
equals
Compares the authority's serialized representation.
parameter other
source · line 29public
other: UrlAuthority
function toString
source · line 25public
public override fun toString(): String
- Overrides
toString
Serializes this authority without the leading double slash.
property port
source · line 18public
public val port: Int?
get: public read-only
The explicit port, or None when omitted.
function networkHost
source · line 56public
public fun networkHost(): UrlHost
Validates and returns the DNS or IP network-host representation.
property encodedHost
source · line 14public
public val encodedHost: String
get: public read-only
The serialized host component, including brackets for an IP literal when applicable.