aboutsummaryrefslogtreecommitdiff
path: root/library/lullaby
diff options
context:
space:
mode:
authorame <[email protected]>2025-09-03 18:18:06 -0500
committerame <[email protected]>2025-09-03 18:18:06 -0500
commit1aba3757b486e28ddfb0aff67fe65e4a7a87c74f (patch)
treeb443750cc9899c6f7c265e357d5ef2605f5c95ac /library/lullaby
parenta239a832f14ed1f7eab9b9ee75867bdc2ee2a5f9 (diff)
parent6e6e948a553cc062b439f349c0b545df0223d9a1 (diff)
merge main
Diffstat (limited to 'library/lullaby')
-rw-r--r--library/lullaby/common.lua5
-rw-r--r--library/lullaby/net.lua8
2 files changed, 11 insertions, 2 deletions
diff --git a/library/lullaby/common.lua b/library/lullaby/common.lua
index 936feb9..96be2d6 100644
--- a/library/lullaby/common.lua
+++ b/library/lullaby/common.lua
@@ -9,8 +9,9 @@ meta.stream = {}
---sends the rest of a streams contents to a file
---@param T stream
---@param filename string
----@param bytes integer? max amount to read before stopping
-function meta.stream.file(T, filename, bytes) end
+---@param bytes integer? max amount to read before stopping, 0 if nil
+---@param mode string? what mode to open the file, w if nil
+function meta.stream.file(T, filename, bytes, mode) end
---reads bytes from a stream
---@param T stream
diff --git a/library/lullaby/net.lua b/library/lullaby/net.lua
index 624f78f..7ff24aa 100644
--- a/library/lullaby/net.lua
+++ b/library/lullaby/net.lua
@@ -60,12 +60,20 @@ req_table.ip = 0
---@type string
req_table.Body = ""
+---@type string
+req_table.path = ""
+
+---@type string
+req_table.rawpath = ""
+
---@type any|nil
req_table.files = {}
---@type any|nil
req_table.cookies = {}
+---@type any|nil
+req_table.query = {}
---@param T server-table
---@param route string