From 3020a6e5eb4d36b4d694b8248e1d4bb639bfe435 Mon Sep 17 00:00:00 2001 From: --get-all Date: Tue, 26 Apr 2022 12:09:57 +0800 Subject: fix ngx doc error --- meta/3rd/OpenResty/library/ngx.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'meta') diff --git a/meta/3rd/OpenResty/library/ngx.lua b/meta/3rd/OpenResty/library/ngx.lua index 47addc33..b85593bf 100644 --- a/meta/3rd/OpenResty/library/ngx.lua +++ b/meta/3rd/OpenResty/library/ngx.lua @@ -2134,7 +2134,7 @@ function ngx.req.get_post_args(max_args) end --- --- Removing the `max_args` cap is strongly discouraged. --- ----@param max_args number +---@param max_args? number ---@return table args ---@return string|'"truncated"' error function ngx.req.get_uri_args(max_args) end @@ -2438,8 +2438,8 @@ function ngx.req.clear_header(header_name) end --- --- The `__index` metamethod will not be added when the `raw` argument is set to `true`. --- ----@param max_headers number ----@param raw boolean +---@param max_headers? number +---@param raw? boolean ---@return table headers ---@return string|'"truncated"' error function ngx.req.get_headers(max_headers, raw) end @@ -4211,8 +4211,8 @@ ngx.resp = {} --- --- Note that a maximum of 100 response headers are parsed by default (including those with the same name) and that additional response headers are silently discarded to guard against potential denial of service attacks. When the limit is exceeded, it will return a second value which is the string `"truncated"`. --- ----@param max_headers number ----@param raw boolean +---@param max_headers? number +---@param raw? boolean ---@return table ---@return string|'"truncated"' error function ngx.resp.get_headers(max_headers, raw) end -- cgit v1.2.3