Chuyển đến nội dung chính

Đối số

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

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.