<http> Internal Library
HTTP client helpers backed by WinHTTP on Windows.
Import
import http "<http>"
API
supported() -> boolget(url, headers?, timeout_ms?) -> dictpost(url, body, headers?, timeout_ms?) -> dictrequest(method, url, body?, headers?, timeout_ms?) -> dict
On Windows builds, these APIs perform real HTTP requests using WinHTTP.
headers is a dictionary of request headers (e.g. {"Content-Type": "application/json"}).
timeout_ms sets WinHTTP resolve/connect/send/receive timeouts.
Response dict fields:
ok: boolstatus: intbody: stringerror: optional string