메인 콘텐츠로 건너뛰기

인수

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.