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
external val authority: String

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
external val fragment: String

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

Link copied to clipboard
external val fsPath: String

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

Link copied to clipboard
external val path: String

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

Link copied to clipboard
external val query: String

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

Link copied to clipboard
external val scheme: String

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
external fun toJSON(): JsAny?

Returns a JSON representation of this Uri.

Link copied to clipboard
external 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
external fun with(change: Uri.WithChange): Uri

Derive a new Uri from this Uri.