Skip to content

Commit 247086e

Browse files
authored
doc: describe the second argument of get_uri_args (#2023)
Signed-off-by: spacewander <[email protected]>
1 parent d959374 commit 247086e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -4903,11 +4903,12 @@ See also [ngx.req.set_uri](#ngxreqset_uri).
49034903
ngx.req.get_uri_args
49044904
--------------------
49054905

4906-
**syntax:** *args, err = ngx.req.get_uri_args(max_args?)*
4906+
**syntax:** *args, err = ngx.req.get_uri_args(max_args?, tab?)*
49074907

49084908
**context:** *set_by_lua&#42;, rewrite_by_lua&#42;, access_by_lua&#42;, content_by_lua&#42;, header_filter_by_lua&#42;, body_filter_by_lua&#42;, log_by_lua&#42;, balancer_by_lua&#42;*
49094909

4910-
Returns a Lua table holding all the current request URL query arguments.
4910+
Returns a Lua table holding all the current request URL query arguments. An optional `tab` argument
4911+
can be used to reuse the table returned by this method.
49114912

49124913
```nginx
49134914

doc/HttpLuaModule.wiki

+3-2
Original file line numberDiff line numberDiff line change
@@ -4101,11 +4101,12 @@ See also [[#ngx.req.set_uri|ngx.req.set_uri]].
41014101
41024102
== ngx.req.get_uri_args ==
41034103
4104-
'''syntax:''' ''args, err = ngx.req.get_uri_args(max_args?)''
4104+
'''syntax:''' ''args, err = ngx.req.get_uri_args(max_args?, tab?)''
41054105
41064106
'''context:''' ''set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, balancer_by_lua*''
41074107
4108-
Returns a Lua table holding all the current request URL query arguments.
4108+
Returns a Lua table holding all the current request URL query arguments. An optional <code>tab</code> argument
4109+
can be used to reuse the table returned by this method.
41094110
41104111
<geshi lang="nginx">
41114112
location = /test {

0 commit comments

Comments
 (0)