當請求配置了多個插件的時候,如果讓請求在執(zhí)行了第一插件后就返回呢?
只需要返回相應轉臺碼就好了
```
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 就不會執(zhí)行下一個插件的access 磷蛹、rewrite瞳别,但是下一個節(jié)點的body_filter 還是會執(zhí)行的