Gitiles
Code Review
Sign In
git01.mediatek.com
/
haproxy
/
91d398cce2bf9f2cb7645cdd6852f58e3772a5df
/
.
/
reg-tests
/
lua
/
httpclient_action.lua
blob: 9a7209cab2ec97bbc451d9d3a5e988fd2cf988bb [
file
] [
log
] [
blame
]
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
)