You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/13 02:21:20 UTC

[GitHub] [apisix] navysummer opened a new issue #6597: request help: How get response info by lua plugin?

navysummer opened a new issue #6597:
URL: https://github.com/apache/apisix/issues/6597


   ### Issue description
   
    How get response info by lua plugin?
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass closed issue #6597: request help: How get response info by lua plugin?

Posted by GitBox <gi...@apache.org>.
tzssangglass closed issue #6597:
URL: https://github.com/apache/apisix/issues/6597


   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] soulbird commented on issue #6597: request help: How get response info by lua plugin?

Posted by GitBox <gi...@apache.org>.
soulbird commented on issue #6597:
URL: https://github.com/apache/apisix/issues/6597#issuecomment-1066098044


   You can get response header in `header_filter` phase via `ngx.header`. and get response body in `header_filter` phase.
   Inside the Apache APISIX project, you can refer to https://github.com/apache/apisix/blob/master/apisix/core/response.lua


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org