URL.parse

URL parse(string s) @safe

Parse s as a URL. Enforces that the parsed URI is absolute and has an authority.

Parameters

sURL string to parse.

Returns

The parsed URL.

Throws

Exception if the input is not a hierarchical absolute URL with authority.