diff options
| author | ame <[email protected]> | 2025-06-12 02:10:10 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2025-06-12 02:10:10 -0500 |
| commit | 8e7257aac8b30aaa57577770fd636e784361e35d (patch) | |
| tree | 71f7cb33f56a455bac2734bd53b483aa8bb7b27b /library/lullaby/net.lua | |
| parent | a2e8051d4cf6e46310e2e8aab83fee991560d8c0 (diff) | |
fix some net code, add streaming to some requests
Diffstat (limited to 'library/lullaby/net.lua')
| -rw-r--r-- | library/lullaby/net.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/lullaby/net.lua b/library/lullaby/net.lua index 3f9abdc..57636a4 100644 --- a/library/lullaby/net.lua +++ b/library/lullaby/net.lua @@ -1,3 +1,4 @@ +local common = require("common") ---@meta ---@class net @@ -122,12 +123,15 @@ local function listen_callback(server) end ---@param port integer function net.listen(callback, port) end +---@class request-return +---@field content stream + ---creates an https request ---@param url string ---@param value string | nil ---@param header table<string, string> | nil ---@param request string | nil ----@return table<string, string> | error +---@return request-return | error function net.srequest(url, value, header, request) end ---@class wss-table |
