Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

Part of StarfallEx namespace

๐Ÿ”— External
http.post(url, payload, callbackSuccess, callbackFail, headers)
View on GitHub|lua/starfall/libs_sh/http.lua:97
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Runs a new http POST request

Parameters

NameTypeDescription
urlstringHTTP resource URL
payload?tableOptional POST payload to be sent, can be both table and string. When table is used, the request body is encoded as application/x-www-form-urlencoded
callbackSuccess?functionOptional function to be called on request success, taking the arguments body (string), length (number), headers (table) and code (number)
callbackFail?functionOptional function to be called on request fail, taking the failing reason as an argument
headers?tableOptional POST headers to be sent

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.