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'.
This commit is contained in:
Thierry FOURNIER / OZON.IO
2016-12-09 18:03:31 +01:00
committed by Willy Tarreau
parent d2f6f47597
commit 4b123bebe4
2 changed files with 36 additions and 3 deletions

View File

@@ -90,6 +90,7 @@ struct hlua_init_function {
struct hlua_function {
char *name;
int function_ref;
int nargs;
};
/* This struct is used with the structs: