Client API
Network
Client-side request module. Supports callback-based and Promise-based async patterns, automatic retry on timeout, and per-request cancel.
Import
local network = RoExpress.GetNetwork() -- typed · or: RoExpress("Network")
GET
POST
PUT
DELETE
Request Methods
Send requests to server-registered routes with a callback that receives the NetworkResponse. All methods return a requestId for cancellation.
network:Get · network:Post · network:Put · network:Delete
→
async
Async / Promise API
Chainable async variants of every request method. Return a Promise you can chain with Then, Catch, and Finally for complex async flows.
network:GetAsync · network:PostAsync
→
control
Cancel & Timeout
Abort an in-flight request by its requestId before the response arrives. Override the default timeout period for all requests on this network instance.
network:Cancel · network:SetTimeout
→
See also
App | server-side counterpart · Listener | receive server-pushed events · Promise | chainable async patterns · NetworkResponse type | full field reference · Request Pipeline | how server processes requests