JvmUrl

constructor(url: URL)

Parameters

url

the wrapped platform URL; see toUrl/toURL for conversions between it and Url.


constructor(string: String)

Parses string into a JvmUrl, via toUrl.


constructor(protocol: String, host: String = "", port: Int? = null, path: String = "", query: String? = null)

Builds a JvmUrl from its protocol/host/port/path/query components, via Url.toString.