From fc56b48dfb1192db9c01787bce2ce2e4d2f0dd38 Mon Sep 17 00:00:00 2001 From: Michael Martin <3277009+flrgh@users.noreply.github.com> Date: Sat, 7 May 2022 12:41:02 -0700 Subject: update annotation for ngx.req.get_uri_args --- meta/3rd/OpenResty/library/ngx.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'meta/3rd/OpenResty') 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. --- -- cgit v1.2.3