URI.parse

URI parse(string s, UriOptions opt) @safe

Parse an absolute URI or relative reference from s.

Parameters

sURI or reference string to parse.
optOptions controlling strictness and host acceptance.

Returns

The parsed URI.

Throws

Exception on invalid syntax.
URI parse(string s) @safe

Parse an absolute URI or relative reference from s with default options.

Parameters

sURI or reference string to parse.

Returns

The parsed URI.

Throws

Exception on invalid syntax.