Skip to content

Commit fc56b48

Browse files
committed
update annotation for ngx.req.get_uri_args
1 parent 4539f83 commit fc56b48

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

meta/3rd/OpenResty/library/ngx.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,7 @@ function ngx.req.set_body_data(data) end
20582058
---@return string|'"truncated"' error
20592059
function ngx.req.get_post_args(max_args) end
20602060

2061-
--- Returns a Lua table holding all the current request URL query arguments.
2061+
--- 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.
20622062
---
20632063
--- ```nginx
20642064
--- location = /test {
@@ -2146,9 +2146,10 @@ function ngx.req.get_post_args(max_args) end
21462146
--- Removing the `max_args` cap is strongly discouraged.
21472147
---
21482148
---@param max_args? number
2149+
---@param tab? table
21492150
---@return table args
21502151
---@return string|'"truncated"' error
2151-
function ngx.req.get_uri_args(max_args) end
2152+
function ngx.req.get_uri_args(max_args, tab) end
21522153

21532154
--- 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.
21542155
---

0 commit comments

Comments
 (0)