当请求配置了多个插件的时候,如果让请求在执行了第一插件后就返回呢?
只需要返回相应转台码就好了
```
function _M.rewrite(conf, ctx)
core.log.warn("plugin rewrite phase, conf: ", core.json.encode(conf))
core.log.warn("conf_type: ", ctx.conf_type)
core.log.warn("conf_id: ", ctx.conf_id)
core.log.warn("conf_version: ", ctx.conf_version)
return ngx.HTTP_OK
end
```
如果添加了 return ngx.HTTP_OK 就不会执行下一个插件的access 、rewrite,但是下一个节点的body_filter 还是会执行的