Skip to main content

Argumen

DataModel
wajib
Method-call self value. Use game:HttpPost(…) or game:HttpPostAsync(…).
string
wajib
URL string to request.
string
Optional request body. Defaults to an empty string.
string | number | boolean
Normally the content type string. A number uses legacy timeout mode, and a boolean uses legacy compression mode.
table | string
Optional headers table in the normal call shape, or optional content type string in legacy mode.
table
Optional headers table used only in legacy mode. Keys and values must be strings without CR or LF.

Return

string
Response body string or request error string.

Contoh

Run a DataModel-style POST request and return the response body string.