Scoop API

scoop:scoop.url:0.1.0

UrlOrigin

class UrlOrigin

source · line 68
public
public class UrlOrigin internal constructor(
    /**
     * The normalized HTTP or HTTPS scheme.
     */
    public val scheme: String,
        /**
         * The normalized DNS or IP host used for origin equality.
         */
        public val host: UrlHost,
        /**
         * The effective network port, including the scheme default when omitted.
         */
        public val port: Int
) : Equals<UrlOrigin>, Hash, ToString

An HTTP origin identified by normalized scheme, DNS name or IP bytes, and effective port.

function authority

source · line 93
public
public fun authority(includeDefaultPort: Boolean = false): String

Serializes the host and port, omitting the scheme default unless explicitly requested.

property port

source · line 80
public
public val port: Int

get: public read-only

The effective network port, including the scheme default when omitted.

function toString

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

Serializes the scheme and normalized origin authority.

property scheme

source · line 72
public
public val scheme: String

get: public read-only

The normalized HTTP or HTTPS scheme.

function hash

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

Hashes the same scheme, host, and port used by equality.

property host

source · line 76
public
public val host: UrlHost

get: public read-only

The normalized DNS or IP host used for origin equality.