Skip to main content

Arguments

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

Returns

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.