library / org.akop.kotx.ext.basic / kotlin.String / toURL

toURL

fun String.toURL(context: URL? = null): URL

Converts a String to URL, with an optional URL context.