parseUrl

fun parseUrl(urlString: String): Url?

Parses the given URL string and returns a Url object if valid, otherwise, it returns null.

Return

A Url object if the URL is valid or null otherwise.

Parameters

urlString

The URL string to be parsed.