enum UrlHost
source · line 9public
public enum UrlHost : Equals<UrlHost>, Hash, ToString
- Supertype
Equals<UrlHost> - Supertype
Hash - Supertype
ToString
A validated network host represented as a DNS A-label name or exact IP address bytes.
variant Dns
source · line 13public
Dns(val name: String)
A DNS name normalized for network-origin comparison.
field name
source · line 13public
val name: String
parameter name
source · line 13public
val name: String
variant Ipv4
source · line 17public
Ipv4(val bytes: Array<Byte>)
Exactly four network-order address bytes.
field bytes
source · line 17public
val bytes: Array<Byte>
parameter bytes
source · line 17public
val bytes: Array<Byte>
variant Ipv6
source · line 22public
Ipv6(val bytes: Array<Byte>)
Exactly sixteen network-order address bytes; zone identifiers are outside this URL profile.
parameter bytes
source · line 22public
val bytes: Array<Byte>
field bytes
source · line 22public
val bytes: Array<Byte>
function equals
source · line 27public
public override operator fun equals(other: UrlHost): Boolean
- Overrides
equals
Compares normalized DNS names or exact same-family address bytes.
parameter other
source · line 27public
other: UrlHost
function toString
source · line 43public
public override fun toString(): String
- Overrides
toString
Serializes the DNS name or IP literal for use in a URI authority.
function hash
source · line 35public
public override fun hash(): Long
- Overrides
hash
Hashes the same normalized host identity used by equality.