URL

open external class URL (source)

Platform and version requirements: JS

Exposes the JavaScript URL to Kotlin

Constructors

<init>

URL(url: String, base: String = definedExternally)

Exposes the JavaScript URL to Kotlin

Properties

hash

var hash: String

host

var host: String

hostname

var hostname: String

href

var href: String

origin

open val origin: String

password

var password: String

pathname

var pathname: String

port

var port: String

protocol

var protocol: String

search

var search: String

searchParams

open val searchParams: URLSearchParams

username

var username: String

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.

Companion Object Functions

createFor

fun createFor(blob: Blob): String

createObjectURL

fun createObjectURL(blob: Blob): String

domainToASCII

fun domainToASCII(domain: String): String

domainToUnicode

fun domainToUnicode(domain: String): String

revokeObjectURL

fun revokeObjectURL(url: String)