Update Networking docs
This commit is contained in:
@@ -16,13 +16,17 @@ Networking.FileSenderMaxPacketsPerUpdate = 4
|
|||||||
-- @realm server
|
-- @realm server
|
||||||
Networking.LastClientListUpdateID = 0
|
Networking.LastClientListUpdateID = 0
|
||||||
|
|
||||||
--- Send a post HTTP Request, callback is called with an argument result string.
|
--- Send a GET HTTP Request, callback is called with the result string message, status code and headers. only url anda callback are optional.
|
||||||
-- @realm server
|
-- @realm shared
|
||||||
function Networking.HttpGet(url, callback, textData, contentType) end
|
function Networking.HttpGet(url, callback, textData, contentType) end
|
||||||
|
|
||||||
--- Send a get HTTP Request, callback is called with an argument result string.
|
--- Send a POST HTTP Request, callback is called with the result string message, status code and headers.
|
||||||
-- @realm server
|
-- @realm shared
|
||||||
function Networking.HttpPost(url, callback) end
|
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
|
--- Creates a new net message, returns an IWriteMessage
|
||||||
-- @treturn IWriteMessage netMessage
|
-- @treturn IWriteMessage netMessage
|
||||||
|
|||||||
Reference in New Issue
Block a user