Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions meta/3rd/OpenResty/library/ngx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down