Atomic docs

request

http.requesthttp.Requesthttp.http_request
request(options: table): table

A full HTTP request. Takes Url, Method, Headers and Body, and returns StatusCode, StatusMessage, Headers, Body and Success. Identifying headers are added so a site can tell which executor is asking.

Example

lua
local res = request({
    Url = "https://example.com/api",
    Method = "POST",
    Headers = { ["Content-Type"] = "application/json" },
    Body = game:GetService("HttpService"):JSONEncode({ id = 1 })
})
print(res.StatusCode, res.Body)
↑