jiangfucheng commented on issue #9783:
URL: https://github.com/apache/apisix/issues/9783#issuecomment-1679033857
> > ### 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],
> }
> }
> ```
>
> besides, is there any way to make mult-line func possible ? it's really
hard to read once the funcion become big.
I think the schema design is acceptable.
In addition, this feature will be incompatible with the old version, so we
need to discuss whether compatibility with the older version.
--
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]