fromParts

fun fromParts(scheme: String, ssp: String, fragment: String?): Url

Creates an opaque Url from the given components. Encodes the ssp which means this method cannot be used to create hierarchical URLs.

Return

Url composed of the given scheme, ssp, and fragment

Parameters

scheme

of the URL

ssp

scheme-specific-part, everything between the scheme separator (':') and the fragment separator ('#'), which will get encoded

fragment

fragment, everything after the '#', null if undefined, will get encoded

See also

if you don't want the ssp and fragment to be encoded