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 2020/12/15 02:34:13 UTC

[GitHub] [apisix] gewei2000 opened a new issue #3046: request help: how to get cookie obj from response in apisix

gewei2000 opened a new issue #3046:
URL: https://github.com/apache/apisix/issues/3046


   ### Issue description
   how to get cookie obj from response in apisix?
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):2.1
   * OS:centos7.5
   


----------------------------------------------------------------
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.

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



[GitHub] [apisix] gewei2000 commented on issue #3046: request help: how to get cookie obj from response in apisix

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


   > Take a look at https://github.com/cloudflare/lua-resty-cookie
    this lib of method only can be parse request cookie, can not parse response cookie to obj, do we have internal method to parse response cookie to obj?
   


----------------------------------------------------------------
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.

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



[GitHub] [apisix] gewei2000 closed issue #3046: request help: how to get cookie obj from response in apisix

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


   


----------------------------------------------------------------
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.

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



[GitHub] [apisix] spacewander commented on issue #3046: request help: how to get cookie obj from response in apisix

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


   Take a look at https://github.com/cloudflare/lua-resty-cookie
   and https://github.com/apache/apisix/blob/master/apisix/plugins/response-rewrite.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.

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



[GitHub] [apisix] spacewander commented on issue #3046: request help: how to get cookie obj from response in apisix

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


   Sorry, it is my mistake.
   You can read `Set-Cookie` header directly. AFAIK, there is not internal wrapper for it.


----------------------------------------------------------------
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.

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