]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: Add a function to get the authority into a URI
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Oct 2019 12:56:58 +0000 (14:56 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Oct 2019 09:05:31 +0000 (11:05 +0200)
commit16fdc55f7987797b196c2edac34628bbf61bccc4
treeb9d25b9025b06e6a00324b5715b0ab56fbe4fa56
parent9a67c293b9477b6bdac0e62278a70d444dc7f074
MINOR: http: Add a function to get the authority into a URI

The function http_get_authority() may be used to parse a URI and looks for the
authority, between the scheme and the path. An option may be used to skip the
user info (part before the '@'). Most of time, the user info will be ignored.
include/common/http.h
src/http.c