]> git.kaiwu.me - haproxy.git/commit
MEDIUM: httpclient: remove url2sa to use a more flexible parser
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 14 Apr 2022 15:50:20 +0000 (17:50 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 4 May 2022 09:21:01 +0000 (11:21 +0200)
commit7f1df8ff1a0d6c3d86bbe709500ff2f6a8275f50
tree948b1cd534fd50a72f255b76e7d7f821126d989b
parentb57de07a210fd9f9d6f1f7c716a77c157455b90c
MEDIUM: httpclient: remove url2sa to use a more flexible parser

The httpclient DNS resolver will need a more efficient URL parser which
splits the URL into parts and does not try to resolve.

httpclient_spliturl uses the http_uri_parser in order to split the URL
into several ist.

The result of the function host part is then processed into str2ip2(),
and fails if it it not an IP, allowing us to resolve the domain later.
src/http_client.c