commit | ca7218aaf073627b665459bd881b2b35a481602a | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Jul 05 09:53:37 2022 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Wed Jul 06 17:54:03 2022 +0200 |
tree | 5f79acc7a9441b7399169587769e54c525e0d5ad | |
parent | 658f971621839f3b928da099dfe3092b47cbc958 [diff] |
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.