Skip to main content

Đối số

DataModel
bắt buộc
Method-call self value. Use game:HttpGet(url, cache) or game:HttpGetAsync(url, cache).
string
bắt buộc
URL string to request.
boolean | number
Optional cache control. true or numeric 1 enables the URL cache.

Giá trị trả về

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

Ví dụ

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