summaryrefslogtreecommitdiff
path: root/meta/3rd
diff options
context:
space:
mode:
authorMichael Martin <3277009+flrgh@users.noreply.github.com>2022-05-07 12:41:02 -0700
committerMichael Martin <3277009+flrgh@users.noreply.github.com>2022-05-07 12:41:02 -0700
commitfc56b48dfb1192db9c01787bce2ce2e4d2f0dd38 (patch)
treeba4346cea34ad20a6ec527ffe74d2c6e2fed6d62 /meta/3rd
parent4539f83e2058d89567b0942b3820ab109c61bc4c (diff)
downloadlua-language-server-fc56b48dfb1192db9c01787bce2ce2e4d2f0dd38.zip
update annotation for ngx.req.get_uri_args
Diffstat (limited to 'meta/3rd')
-rw-r--r--meta/3rd/OpenResty/library/ngx.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/3rd/OpenResty/library/ngx.lua b/meta/3rd/OpenResty/library/ngx.lua
index 32ea53a2..b4c29394 100644
--- a/meta/3rd/OpenResty/library/ngx.lua
+++ b/meta/3rd/OpenResty/library/ngx.lua
@@ -2058,7 +2058,7 @@ function ngx.req.set_body_data(data) end
---@return string|'"truncated"' error
function ngx.req.get_post_args(max_args) end
---- Returns a Lua table holding all the current request URL query arguments.
+--- Returns a Lua table holding all the current request URL query arguments. An optional `tab` argument can be used to reuse the table returned by this method.
---
--- ```nginx
--- location = /test {
@@ -2146,9 +2146,10 @@ function ngx.req.get_post_args(max_args) end
--- Removing the `max_args` cap is strongly discouraged.
---
---@param max_args? number
+---@param tab? table
---@return table args
---@return string|'"truncated"' error
-function ngx.req.get_uri_args(max_args) end
+function ngx.req.get_uri_args(max_args, tab) end
--- Rewrite the current request's (parsed) URI by the `uri` argument. The `uri` argument must be a Lua string and cannot be of zero length, or a Lua exception will be thrown.
---