mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add simple http test
This commit is contained in:
parent
95818f576b
commit
a8d3f03004
2 changed files with 9 additions and 1 deletions
8
dev/tests/network_http.lua
Normal file
8
dev/tests/network_http.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
local response_received = false
|
||||
|
||||
network.get("https://api.github.com/repos/MihailRis/VoxelEngine-Cpp/releases/latest", function (s)
|
||||
print(json.parse(s).name)
|
||||
response_received = true
|
||||
end)
|
||||
|
||||
app.sleep_until(function () return response_received end, nil, 10)
|
||||
Loading…
Add table
Add a link
Reference in a new issue