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
returnfunction() ngx.log(ngx.ERR, \"serverless pre function\"); end
Desired State
This could be updated with a non-trivial example that could show the capabilities of the Plugin better:
"serverless-pre-function": {
"phase": "rewrite",
"functions" : [
"return function(conf, ctx)
local core = require(\"apisix.core\")
if not ngx.var.arg_name then
local uri_args = core.request.get_uri_args(ctx)
uri_args.name = \"world\"
ngx.req.set_uri_args(uri_args)
end
end"
]
}
The text was updated successfully, but these errors were encountered:
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
Current State
The current documentation of the serverless Plugin shows a simple example of a log function:
Desired State
This could be updated with a non-trivial example that could show the capabilities of the Plugin better:
The text was updated successfully, but these errors were encountered: