]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: Add function to detect default port
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 Jul 2022 07:53:37 +0000 (09:53 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Jul 2022 15:54:03 +0000 (17:54 +0200)
commitca7218aaf073627b665459bd881b2b35a481602a
tree5f79acc7a9441b7399169587769e54c525e0d5ad
parent658f971621839f3b928da099dfe3092b47cbc958
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.
include/haproxy/http.h
src/http.c