UriParser.isValidIPLiteral

bool isValidIPLiteral(string h) @safe

Validate an IP-literal host string (without brackets).

Supports IPv6 (with optional RFC 6874 zone id encoded as %25...) and IPvFuture.

Parameters

hHost string without square brackets.

Returns

true if valid, false otherwise.