You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: meta/3rd/OpenResty/library/ngx.lua
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2058,7 +2058,7 @@ function ngx.req.set_body_data(data) end
2058
2058
---@returnstring|'"truncated"' error
2059
2059
functionngx.req.get_post_args(max_args) end
2060
2060
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.
2062
2062
---
2063
2063
--- ```nginx
2064
2064
--- location = /test {
@@ -2146,9 +2146,10 @@ function ngx.req.get_post_args(max_args) end
2146
2146
--- Removing the `max_args` cap is strongly discouraged.
2147
2147
---
2148
2148
---@parammax_args?number
2149
+
---@paramtab?table
2149
2150
---@returntable args
2150
2151
---@returnstring|'"truncated"' error
2151
-
functionngx.req.get_uri_args(max_args) end
2152
+
functionngx.req.get_uri_args(max_args, tab) end
2152
2153
2153
2154
--- 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.
0 commit comments