-1 for an empty port in non-strict mode.UriParser.parsePort
int parsePort(string p) @safeParse a decimal port number.
RFC 3986 defines port = *DIGIT, so an empty port is syntactically valid: in non-strict mode it is treated as absent (-1). Strict mode keeps rejecting it.
Parameters
p | Port string. |
Returns
The port number, or
Throws
UriParseException if p is empty in strict mode, non-numeric,
or outside 0..65535.