summaryrefslogtreecommitdiffstats
path: root/reg-tests/lua/httpclient_action.lua
blob: 9a7209cab2ec97bbc451d9d3a5e988fd2cf988bb (plain)
1
2
3
4
5
6
7
8
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)