]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lua: replace function (req|get)_channel by a variable
authorThierry FOURNIER <tfournier@exceliance.fr>
Wed, 11 Mar 2015 18:39:09 +0000 (19:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2015 18:55:10 +0000 (19:55 +0100)
commit397826aedc75584e5a1f6e52a9ae4f2f4c1bd5a5
tree50959638a0aec7e96744a453d14a7909fe157173
parent594afe76e4694d9faf281ae87f2d026506f7a9d9
MINOR: lua: replace function (req|get)_channel by a variable

To add data in channel, it is necessary to process in two times.
First time, get the channel object, and after send data:

   local req = txn:req_channel()
req:send("data\n")

Now, the function is converted as a variable containing the req
and res aobject. We can process as following:

   txn.req:send("data\n")
src/hlua.c