parse

fun parse(value: String, encoding: UrlEncoding = UrlEncoding.All): Url

Parse a URL string into a Url instance

Return

A new Url instance

Parameters

value

A URL string

encoding

The components of the given value which are in a URL-encoded form. Defaults to UrlEncoding.All, meaning that the entire URL string is properly encoded.