diff options
author | --get-all <fesil@foxmail.com> | 2022-04-26 12:09:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-26 16:51:10 +0800 |
commit | 3020a6e5eb4d36b4d694b8248e1d4bb639bfe435 (patch) | |
tree | f2c28fcdfba55d64f5638c17482fcd7d3ac152b2 /meta/3rd/OpenResty | |
parent | 92d2cfe555b7f4b313481b8be9bf2dd63b44ec0a (diff) | |
download | lua-language-server-3020a6e5eb4d36b4d694b8248e1d4bb639bfe435.zip |
fix ngx doc error
Diffstat (limited to 'meta/3rd/OpenResty')
-rw-r--r-- | meta/3rd/OpenResty/library/ngx.lua | 10 |
1 files changed, 5 insertions, 5 deletions
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<string, string|string[]> 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<string, string|string[]> ---@return string|'"truncated"' error function ngx.resp.get_headers(max_headers, raw) end |