Uri.getPort

int getPort() nothrow

Gets uri's port.

Returns

uri's port, or -1 if no port was specified.