blob: 9a7209cab2ec97bbc451d9d3a5e988fd2cf988bb [file] [log] [blame]
William Lallemand4ed0a3a2022-10-20 11:23:02 +02001function test()
2 local httpclient = core.httpclient()
3 local response = httpclient:get{url="http://127.0.0.1", headers={ [ "Host" ] = { "localhost" } }}
4
5end
6
7
8core.register_action("test", {"tcp-req"}, test, 0)