Parameters
Returns
table - A response table containing keys: StatusCode, StatusDescription, Headers, Body, Cookies.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
request(options: table): table
| Parameter | Type | Description |
|---|---|---|
options | table | A configuration table containing keys: Url, Method, Headers, Body, Cookies, etc. |
table - A response table containing keys: StatusCode, StatusDescription, Headers, Body, Cookies.
local res = request({
Url = "https://httpbin.org/get",
Method = "GET"
})
print("Code: ", res.StatusCode)
local res = request({
Url = "https://httpbin.org/post",
Method = "POST",
Body = "myBodyData"
})