Uri.defaultPort

Return the default port for the given scheme. InvalidPort is returned if the scheme is unknown, or does not accept a port.

class Uri
override final const
int
defaultPort
(
const(char)[] scheme
)

Meta