]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: httpclient: allow to use another proxy
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 12 Sep 2022 15:39:04 +0000 (17:39 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 13 Sep 2022 15:12:38 +0000 (17:12 +0200)
commit992ad62e3cd466bd740b6210ce1cfedd375eb439
tree54115743adf63c8625cb5936bf97bf21ba6c2f5f
parent54aec5f67876d85f9422570b57c04c5d1b47ed78
MEDIUM: httpclient: allow to use another proxy

httpclient_new_from_proxy() is a variant of httpclient_new() which
allows to create the requests from a different proxy.

The proxy and its 2 servers are now stored in the httpclient structure.

The proxy must have been created with httpclient_create_proxy() to be
used.

The httpclient_postcheck() callback will finish the initialization of
all proxies created with PR_CAP_HTTPCLIENT.
include/haproxy/http_client-t.h
include/haproxy/http_client.h
src/http_client.c