MINOR: http: Add function to detect default port

http_is_default_port() can be used to test if a port is a default HTTP/HTTPS
port. A scheme may be specified. In this case, it is used to detect defaults
ports, 80 for "http://" and 443 for "https://". Otherwise, with no scheme, both
are considered as default ports.

(cherry picked from commit ca7218aaf073627b665459bd881b2b35a481602a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit e0d82ea08b2b628d86ea0951ae3e082290810baf)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit ac58076df1c60b8d611ab2790221ce417c61f9f3)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
2 files changed