]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lua: Allow argument for actions
authorThierry FOURNIER / OZON.IO <thierry.fournier@ozon.io>
Fri, 9 Dec 2016 17:03:31 +0000 (18:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Dec 2016 13:34:56 +0000 (14:34 +0100)
commit4b123bebe4c22d62dde88ce89dc46fdffc9ba4d2
treebe19ec9d9684039852137add8a582e756fc17351
parentd2f6f47597844e07c393bf9224c99bc31538512c
MINOR: lua: Allow argument for actions

(http|tcp)-(request|response) action cannot take arguments from the
configuration file. Arguments are useful for executing the action with
a special context.

This patch adds the possibility of passing arguments to an action. It
runs exactly like sample fetches and other Lua wrappers.

Note that this patch implements a 'TODO'.
include/types/hlua.h
src/hlua.c