]> git.kaiwu.me - haproxy.git/commit
REORG: httpclient/lua: move the lua httpclient code to http_client.c
authorWilliam Lallemand <wlallemand@irq6.net>
Sat, 13 Jun 2026 18:55:34 +0000 (20:55 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Sat, 13 Jun 2026 19:18:20 +0000 (21:18 +0200)
commit339d25636dae350b2622c39b0b34a4f41d1a7842
tree8dcf16152564fb747b2a42b2c00e841a2bed4dc4
parent974560128df130fd49dd03761f27cbf8b5359802
REORG: httpclient/lua: move the lua httpclient code to http_client.c

Move the lua httpclient code from hlua.c to http_client.c

The code is almost the same but the registering of the class which is
done in hlua_http_client_init_state(), from REGISTER_HLUA_STATE_INIT()

check_args() calls have been replaced by hlua_check_args().

hlua_httpclient_destroy_all() is exported so it can be called in hlua.c.
hlua_httpclient_table_to_hdrs() is made static.
include/haproxy/http_client.h
src/hlua.c
src/http_client.c