toUrl

fun toUrl(urlString: String): URL

Converts a string URL to a URL object.

Return

the converted URL object

Parameters

urlString

the URL string to be converted

Throws

if the URL string is malformed