跳转到主要内容

参数

DataModel
必填
Method-call self value. Use game:HttpGet(url, noCache) or game:HttpGetAsync(url, noCache).
string
必填
URL string to request.
boolean | number
Optional cache bypass. true or numeric 1 skips an existing cached response and performs a new request.

返回值

string
Downloaded response body string, cached body string, or an empty string when the request cannot be opened.

示例

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