From 056b24c2601c9ac932134c69cb1559905fa2d18b Mon Sep 17 00:00:00 2001 From: ame Date: Mon, 5 Feb 2024 10:03:10 -0600 Subject: docs and functionality probably --- tests/net.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'tests/net.lua') diff --git a/tests/net.lua b/tests/net.lua index fd75cee..443880c 100644 --- a/tests/net.lua +++ b/tests/net.lua @@ -11,7 +11,7 @@ aea = 5 --llib.io.pprint(_G.sleep) llib.io.pprint(llib.net.listen( function(server) - --print("wowa") + print("wowa") server:GET("/", function(res, req) --llib.io.pprint(res) --llib.io.pprint(res) @@ -24,14 +24,10 @@ llib.io.pprint(llib.net.listen( end) server:GET("/", function(res, req) - --llib.io.pprint(res) - --llib.io.pprint(res) - --print(res.send) - --res:send("hi"); - --res.Code = 201 - --wwo.sleep(1) - --wwo.llib.io.pprint(wwo.sleep) - res:send("

hello world

") + + res:write("test") + res:write("test2") + res:end() end) server:GET("/test", function(res, req) -- cgit v1.2.3