DOC: lua: fix core.register_action typo
"converter" was used in place of "action" as a result of a copy-paste error probably. Also, rephrasing the "actions" keyword explanation to prevent confusion between action name (which is the name of new action about to be created) and action facilities where we want to expose the new action. This could be backported to every stable versions.
This commit is contained in:
parent
190f09a6ce
commit
7e9aea789f
|
@ -490,11 +490,11 @@ Core class
|
|||
used in HAProxy with the prefix "lua.". An action gets a TXN object class as
|
||||
input.
|
||||
|
||||
:param string name: is the name of the converter.
|
||||
:param table actions: is a table of string describing the HAProxy actions who
|
||||
want to register to. The expected actions are 'tcp-req', 'tcp-res', 'http-req'
|
||||
or 'http-res'.
|
||||
:param function func: is the Lua function called to work as converter.
|
||||
:param string name: is the name of the action.
|
||||
:param table actions: is a table of string describing the HAProxy actions
|
||||
facilities where to expose the new action. Expected facilities are:
|
||||
'tcp-req', 'tcp-res', 'http-req' or 'http-res'.
|
||||
:param function func: is the Lua function called to work as an action.
|
||||
:param integer nb_args: is the expected number of argument for the action.
|
||||
By default the value is 0.
|
||||
|
||||
|
|
Loading…
Reference in New Issue