Appearance
game.http
HTTP is asynchronous. poll(id) returns nil with no error while pending, nil, error for an unknown id, or one terminal response and then removes it.
Native global — no require.
request
function · request(options: HttpRequestOptions): HttpJobId?, ErrorMessage?
HTTP is asynchronous. poll(id) returns nil with no error while pending, nil, error for an unknown id, or one terminal response and then removes it.
Parameters
| Name | Type | Summary |
|---|---|---|
options | HttpRequestOptions | — |
Returns
| Type | Summary |
|---|---|
HttpJobId?, ErrorMessage? | — |
poll
function · poll(id: HttpJobId): HttpResponse?, ErrorMessage?
HTTP is asynchronous. poll(id) returns nil with no error while pending, nil, error for an unknown id, or one terminal response and then removes it.
Parameters
| Name | Type | Summary |
|---|---|---|
id | HttpJobId | — |
Returns
| Type | Summary |
|---|---|
HttpResponse?, ErrorMessage? | — |