MINOR: httpclient: support payload within a buffer
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 25 Oct 2021 17:48:37 +0000 (19:48 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 27 Oct 2021 08:19:41 +0000 (10:19 +0200)
commitdec25c3e14754425a10ed386bd9bceab6af49573
tree9565f079bb9c05ee2201f84d190b80db7239a352
parentb4d0cd02c14d4db1cf54b0bd8ee328fb198553f3
MINOR: httpclient: support payload within a buffer

httpclient_req_gen() takes a payload argument which can be use to put a
payload in the request. This payload can only fit a request buffer.

This payload can also be specified by the "body" named parameter within
the lua. httpclient.

It is also used within the CLI httpclient when specified as a CLI
payload with "<<".
include/haproxy/http_client.h
reg-tests/lua/lua_httpclient.lua
src/hlua.c
src/http_client.c