Added getstats.

This commit is contained in:
Diego Nehab
2004-07-01 06:09:29 +00:00
parent 2562738e2d
commit 63807d6476
7 changed files with 31 additions and 7 deletions

View File

@ -69,6 +69,7 @@ end
io.write("testing request uri correctness: ")
local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string"
local back, c, h = http.request("http://" .. host .. forth)
print(back, c, h)
if not back then fail(c) end
back = url.parse(back)
if similar(back.query, "this+is+the+query+string") then print("ok")

View File

@ -448,6 +448,7 @@ test_methods(socket.tcp(), {
"getfd",
"getpeername",
"getsockname",
"getstats",
"listen",
"receive",
"send",