public static fromObject(value as Object) as URL throws MalformedURLException:
Converts an object to URL.
| Parameter | Description |
|---|---|
value | URL instance or textual URL. |
Parsed URL.
import klyn.net
url = URL.fromObject("https://example.com")
print(url.host)