diff options
author | Michael Martin <3277009+flrgh@users.noreply.github.com> | 2022-05-07 12:41:02 -0700 |
---|---|---|
committer | Michael Martin <3277009+flrgh@users.noreply.github.com> | 2022-05-07 12:41:02 -0700 |
commit | fc56b48dfb1192db9c01787bce2ce2e4d2f0dd38 (patch) | |
tree | ba4346cea34ad20a6ec527ffe74d2c6e2fed6d62 /meta/3rd/OpenResty | |
parent | 4539f83e2058d89567b0942b3820ab109c61bc4c (diff) | |
download | lua-language-server-fc56b48dfb1192db9c01787bce2ce2e4d2f0dd38.zip |
update annotation for ngx.req.get_uri_args
Diffstat (limited to 'meta/3rd/OpenResty')
-rw-r--r-- | meta/3rd/OpenResty/library/ngx.lua | 5 |
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. --- |