Url

class Url

Represents an immutable URL

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Url authority.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

encoded path without query string

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

URL fragment (anchor name)

Link copied to clipboard

Full encoded path with query string but without domain, port and schema

Link copied to clipboard

name without port (domain)

Link copied to clipboard

Host:port pair, not normalized so port is always specified even if the port is schema's default

Link copied to clipboard

Returns "host:port" when port is specified. Else, returns host.

Link copied to clipboard

Checks if Url has absolute path.

Link copied to clipboard

Checks if Url has absolute path.

Link copied to clipboard

URL query parameters

Link copied to clipboard

password part of URL

Link copied to clipboard
Link copied to clipboard
val port: Int

the specified port or protocol default port

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A Url protocol and authority.

Link copied to clipboard

port number that was specified to override protocol's default

Link copied to clipboard

keep trailing question character even if there are no query parameters

Link copied to clipboard
val user: String?

username part of URL

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun Url.toURI(): URI

Convert Url to URI