]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: httpclient/lua: support more HTTP methods
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 26 Oct 2021 09:43:26 +0000 (11:43 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 27 Oct 2021 08:19:49 +0000 (10:19 +0200)
commitdc2cc9008bf2518e4a4130c224983bc4c710d386
treeeb3b1ddd594bfdc6466b7a57affef77328314851
parentdec25c3e14754425a10ed386bd9bceab6af49573
MINOR: httpclient/lua: support more HTTP methods

Add support for HEAD/PUT/POST/DELETE method with the lua httpclient.

This patch use the httpclient_req_gen() function with a different meth
parameter to implement this.

Also change the reg-test to support a POST request with a body.
reg-tests/lua/lua_httpclient.lua
src/hlua.c