]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: httpclient/lua: handle the streaming into the lua applet
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 28 Oct 2021 13:41:38 +0000 (15:41 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 28 Oct 2021 14:24:14 +0000 (16:24 +0200)
commitbd5739e93e55c38465dddccd0cb28de632a62a63
tree624328230b133ee3ea23e00f47e7a2e201c3f4ad
parent0da616ee18221ca7050f302df18cc12b272acd4b
MINOR: httpclient/lua: handle the streaming into the lua applet

With this feature the lua implementation of the httpclient is now able
to stream a payload larger than an haproxy buffer.

The hlua_httpclient_send() function is now split into:

hlua_httpclient_send() which initiate the httpclient and parse the lua
parameters

hlua_httpclient_snd_yield() which will send the request and be called
again to stream the request if the body is larger than an haproxy buffer

hlua_httpclient_rcv_yield() which will receive the response and store it
in the lua buffer.
include/haproxy/hlua-t.h
src/hlua.c