From 1e385e9ed35944b8dc7edd66860a14aaab06c82b Mon Sep 17 00:00:00 2001 From: EvilFactory Date: Mon, 10 Jul 2023 18:58:31 -0300 Subject: [PATCH] Update Networking docs --- luacs-docs/lua/lua/Networking.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/luacs-docs/lua/lua/Networking.lua b/luacs-docs/lua/lua/Networking.lua index a87cd1fa6d..016df5ff86 100644 --- a/luacs-docs/lua/lua/Networking.lua +++ b/luacs-docs/lua/lua/Networking.lua @@ -16,13 +16,17 @@ Networking.FileSenderMaxPacketsPerUpdate = 4 -- @realm server Networking.LastClientListUpdateID = 0 ---- Send a post HTTP Request, callback is called with an argument result string. --- @realm server +--- Send a GET HTTP Request, callback is called with the result string message, status code and headers. only url anda callback are optional. +-- @realm shared function Networking.HttpGet(url, callback, textData, contentType) end ---- Send a get HTTP Request, callback is called with an argument result string. --- @realm server -function Networking.HttpPost(url, callback) end +--- Send a POST HTTP Request, callback is called with the result string message, status code and headers. +-- @realm shared +function Networking.HttpPost(url, callback, textData, contentType) end + +--- Sends a HTTP Request, callback is called with the result string message, status code and headers. If savePath is specified, the result will be saved as binary format in the specified path. only url and callback are optional. +-- @realm shared +function Networking.HttpRequest(url, callback, data, method, contentType, headers, savePath) end --- Creates a new net message, returns an IWriteMessage -- @treturn IWriteMessage netMessage