Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

Latest commit

 

History

History
23 lines (16 loc) · 390 Bytes

File metadata and controls

23 lines (16 loc) · 390 Bytes

http

Provides HTTP client functionality.

http.get(url, headers?)

Returns: body, status, error

local body, status, err = http.get("https://example.com")

http.post(url, body, headers?)

Returns: body, status, error

local body, status, err = http.post(
    "https://example.com",
    '{"hello":"world"}',
    {["Content-Type"] = "application/json"}
)