Skip to content
ForgeCastDocs

Internet

Call websites and APIs over https.

Functions

http.request(spec, callback)

Make a request. callback is called later with the answer.

  • spec: HttpRequest
  • callback: fun(res: HttpResponse), optional

Returns integer id

http.get(url, opts, callback)

Fetch an https address. callback is called later with the answer.

Name

Type

Returns integer id

http.post(url, body, opts, callback)

A table body is sent as JSON.

Name

Type

Returns integer id

Types

Open a type to see its fields; type names above link here.

On this page