Rate this page:

Network Interaction

There is a Net namespace in VoxEngine dedicated to network interaction. If you want your JS scenarios to send HTTP requests in a sync/async way, there are built-in methods for it: Net.httpRequest and Net.httpRequestAsync. GET is the default method, but you can specify another HTTP method, as well as set custom headers, override the default timeout (90 s), put data for POST/PUT/PATCH, etc. in the HttpRequestOptions. Additionally, there are methods for sending mail (sendMail and sendMailAsync) with the customizable parameters.