HTTP Services
Issue outbound HTTP requests from within the Luau VM.
Outbound HTTP from the External's VM. Because this is not running inside Roblox, none of Roblox's restrictions on HttpService apply.
Requests
-- Full control.
local response = request({
Url = "https://example.com/api",
Method = "POST",
Headers = { ["Content-Type"] = "application/json" },
Body = '{"hello":"world"}',
})
print(response.StatusCode, response.Body)
-- Or the shorthands.
print(http.get("https://example.com/data.json"))
http.post("https://example.com/hook", "payload")Requests block the calling thread
A slow endpoint stalls whatever thread you called from. Put network calls on their own thread with task.spawn if a render loop depends on that thread staying responsive.