default_port

Return the default port for a known scheme

Synopsis

uint16_t
default_port(scheme s) noexcept;

Declared in file <include/boost/url/scheme.hpp> on line 174

Defined in file <src/scheme.cpp> on line 111

Description

This function returns the default port for the known schemes. If the value does not represent a known scheme or the scheme does not represent a protocol, the function returns zero. The following ports are returned by the function: