UriParser.parsePort

int parsePort(string p) @safe

Parse a decimal port number.

Parameters

pPort string.

Returns

The port number.

Throws

UriParseException if p is empty, non-numeric, or outside 0..65535.