mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-13 23:14:46 +00:00
9 lines
211 B
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)
|