http.cancel
Cancel delivery of an HTTP request callback.
Syntax
ue.http.cancel(request_id: integer) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
request_id | integer | ID returned by ue.http.request. |
Returns
Returns true if a pending callback registration was removed, or false if the request ID was not pending.
Example
local id = ue.http.request(options, function(response)
print(response.status)
end)
ue.http.cancel(id)Notes
Cancellation suppresses callback delivery. A Windows request that has already started is allowed to finish safely in the background and its result is discarded.