diegozhu commented on issue #9783:
URL: https://github.com/apache/apisix/issues/9783#issuecomment-1672669960
> ### Description
> Exapmle configuration:
>
> ```
> "serverless-pre(post)-function": {
> "phases": [
> {
> "phase": "body_filter",
> "functions" : ["return function() ngx.log(ngx.ERR,
\"serverless pre function\"); end"]
> },
> {
> "phase": "header_filter",
> "functions" : ["return function() ngx.log(ngx.ERR,
\"serverless pre function\"); end"]
> }
> ]
> }
> ```
thumb up.
by the way, consider this configuration ?
plugins: {
"serverless-pre-function" :{
"rewrite": [func1, func2],
"access": [func1, func2],
"body_filter": [func1, func2],
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]