Skip to content

Commit

Permalink
Update Networking docs
Browse files Browse the repository at this point in the history
  • Loading branch information
evilfactory committed Jul 10, 2023
1 parent 5d0fdd5 commit 1e385e9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions luacs-docs/lua/lua/Networking.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e385e9

Please sign in to comment.