Scoop API

scoop:scoop.url:0.1.0

UrlAuthority

class UrlAuthority

source · line 6
public
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

A parsed authority preserving encoded user information, host, and an explicitly supplied port.

property encodedUserInfo

source · line 10
public
public val encodedUserInfo: String?

get: public read-only

Encoded user information, excluding the trailing at sign.

function hash

source · line 33
public
public override fun hash(): Long

Hashes the serialized representation used by equality.

function toString

source · line 25
public
public override fun toString(): String

Serializes this authority without the leading double slash.

property port

source · line 18
public
public val port: Int?

get: public read-only

The explicit port, or None when omitted.

function networkHost

source · line 56
public
public fun networkHost(): UrlHost

Validates and returns the DNS or IP network-host representation.

property encodedHost

source · line 14
public
public val encodedHost: String

get: public read-only

The serialized host component, including brackets for an IP literal when applicable.