Part of StarfallEx namespace
๐ External
http.post(url, payload, callbackSuccess, callbackFail, headers)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Runs a new http POST request
Parameters
| Name | Type | Description |
|---|---|---|
url | string | HTTP resource URL |
payload? | table | Optional 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? | function | Optional function to be called on request success, taking the arguments body (string), length (number), headers (table) and code (number) |
callbackFail? | function | Optional function to be called on request fail, taking the failing reason as an argument |
headers? | table | Optional POST headers to be sent |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.