network

Creating HTTP requests

get

network.get(url: string[, headers: table, callback: function]) string

Name
Type
Description

url

string

Url

headers

table

Optional. Request headers

callback

function

Optional. If specified, request will be made asynchronously and callback will be called with response as argument.

post

network.pos(url: string[, data: table, headers: table, callback: function]) string

Name
Type
Description

url

string

Url

data

table

Optional. POST data.

headers

table

Optional. Request headers

callback

function

Optional. If specified, request will be made asynchronously and callback will be called with response as argument.

Last updated