From 19afaa2feedaa6ec1e1774174ce752e7f2583484 Mon Sep 17 00:00:00 2001 From: ame Date: Fri, 1 Aug 2025 14:25:07 -0500 Subject: change stream modes --- library/lullaby/common.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'library/lullaby') 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 -- cgit v1.2.3 From 6e6e948a553cc062b439f349c0b545df0223d9a1 Mon Sep 17 00:00:00 2001 From: ame Date: Tue, 2 Sep 2025 00:07:22 -0500 Subject: parse net path and query --- library/lullaby/net.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'library/lullaby') diff --git a/library/lullaby/net.lua b/library/lullaby/net.lua index 9fb1dc2..416851f 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 -- cgit v1.2.3