参数
DataModel
必填
Method-call self value. Use game:HttpPost(…) or game:HttpPostAsync(…).
string
必填
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.
返回值
string
Response body string or request error string.