network class
network.get
lua
function network.get(url) endSends an HTTP GET request to the specified URL.
Parameters
url: string: The URL to send the request to.
Returns
- string: The response body from the server.
network.post
lua
function network.post(url, data) endSends an HTTP POST request to the specified URL with the given data.
Parameters
url: string: The URL to send the request to.data: string: The data to send in the request body.
Returns
- string: The response body from the server.
Reference: network.lua