]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: Add function to get port part of a host
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 Jul 2022 07:48:39 +0000 (09:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Jul 2022 15:54:03 +0000 (17:54 +0200)
commit658f971621839f3b928da099dfe3092b47cbc958
treee1b8a5d89d32f677ffeeff9a8908d0ff40f23af5
parent0eab050b040d4240d78e0c1eb4db937bcddc834f
MINOR: http: Add function to get port part of a host

http_get_host_port() function can be used to get the port part of a host. It
will be used to get the port of an uri authority or a host header
value. This function only look for a port starting from the end of the
host. It is the caller responsibility to call it with a valid host value. An
indirect string is returned.
include/haproxy/http.h
src/http.c