William Lallemand | 4ed0a3a | 2022-10-20 11:23:02 +0200 | [diff] [blame] | 1 | function test() |
2 | local httpclient = core.httpclient() | ||||
3 | local response = httpclient:get{url="http://127.0.0.1", headers={ [ "Host" ] = { "localhost" } }} | ||||
4 | |||||
5 | end | ||||
6 | |||||
7 | |||||
8 | core.register_action("test", {"tcp-req"}, test, 0) |