]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: httpclient: httpclient_create_proxy() creates a proxy for httpclient
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 12 Sep 2022 14:46:35 +0000 (16:46 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 13 Sep 2022 15:12:38 +0000 (17:12 +0200)
commit54aec5f67876d85f9422570b57c04c5d1b47ed78
treefd966ad22e4c1c92793a40e5bf8014b295e6d282
parent23bc0b20bd82c983bccb289825c6024730aaf405
MEDIUM: httpclient: httpclient_create_proxy() creates a proxy for httpclient

httpclient_create_proxy() is a function which creates a proxy that could
be used for the httpclient. It will allocate a proxy, a raw server and
an ssl server.

This patch moves most of the code from httpclient_precheck() into a
generic function httpclient_create_proxy().

The proxy will have the PR_CAP_HTTPCLIENT capability.

This could be used for specifics httpclient instances that needs
different proxy settings.
include/haproxy/proxy-t.h
src/http_client.c