mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-13 15:54:08 -05: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)
|