When building html documentation from doc/lua-api/index.rst, sphinx
complains about some literal blocks ending without a blank line:
"doc/lua-api/index.rst:534: WARNING: Literal block ends without a blank line; unexpected unindent."
Adding the missing blank lines to make sphinx happy
frontend http_frt
mode http
http-request lua.hello-world
+
..
A second example using arguments
txn:Info("Hello world for " .. arg)
end
core.register_action("hello-world", { "tcp-req", "http-req" }, hello_world, 2)
+
..
This example code is used in HAProxy configuration like this:
frontend tcp_frt
mode tcp
tcp-request content lua.hello-world everybody
+
..
.. js:function:: core.register_converters(name, func)
frontend http
mode http
filter lua.my-filter arg1 arg2 arg3
+
..
:see: :js:class:`Filter`