Uri

open class Uri(source)

A universal resource identifier representing either a file on disk or another resource, like untitled resources.

Online Documentation

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface WithChange

Properties

Link copied to clipboard

Authority is the www.example.com part of http://www.example.com/some/path?query#fragment. The part between the first double slashes and the next slash.

Link copied to clipboard

Fragment is the fragment part of http://www.example.com/some/path?query#fragment.

Link copied to clipboard

The string representing the corresponding file system path of this Uri.

Link copied to clipboard

Path is the /some/path part of http://www.example.com/some/path?query#fragment.

Link copied to clipboard

Query is the query part of http://www.example.com/some/path?query#fragment.

Link copied to clipboard

Scheme is the http part of http://www.example.com/some/path?query#fragment. The part before the first colon.

Functions

Link copied to clipboard
fun toJSON(): JsAny?

Returns a JSON representation of this Uri.

Link copied to clipboard
fun toString(skipEncoding: Boolean = definedExternally): String

Returns a string representation of this Uri. The representation and normalization of a URI depends on the scheme.

Link copied to clipboard
fun with(change: Uri.WithChange): Uri

Derive a new Uri from this Uri.