haproxy/reg-tests/lua/httpclient_action.lua

9 lines
211 B
Lua

function test()
local httpclient = core.httpclient()
local response = httpclient:get{url="http://127.0.0.1", headers={ [ "Host" ] = { "localhost" } }}
end
core.register_action("test", {"tcp-req"}, test, 0)