diff options
| author | ame <[email protected]> | 2024-01-29 12:31:10 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-01-29 12:31:10 -0600 |
| commit | e1c171c9c87cf80578a262310510cf6958066b47 (patch) | |
| tree | faa52e4b7bb7cdff545bd6a8ed7f8e095c4239ea /tests/net.lua | |
| parent | 575e22afdc316bd0d3b2cedb10d00d8b50b3b5dd (diff) | |
owo whats this? working code???
Diffstat (limited to 'tests/net.lua')
| -rw-r--r-- | tests/net.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/net.lua b/tests/net.lua index d366e9b..b5052a9 100644 --- a/tests/net.lua +++ b/tests/net.lua @@ -16,8 +16,11 @@ llib.io.pprint(llib.net.listen( --print(res.send)
--res:send("hi");
--res.Code = 201
- sleep(1)
- res:send("<h2>hello world</h2>")
+ --sleep(1)
+ local sec = tonumber(os.clock() + 1);
+ while (os.clock() < sec) do
+ end
+ --res:send("<h2>hello world</h2>")
end))
llib.io.pprint(server:GET("/test", function(res, req)
|
