voxelcore/dev/tests/network_http.lua
2026-09-13 19:41:26 +03:00

11 lines
350 B
Lua

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, function (code)
print("respond with code", code)
response_received = true
end)
app.sleep_until(function () return response_received end, nil, 5)