You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "awx-tim-zhang (via GitHub)" <gi...@apache.org> on 2023/05/11 06:40:06 UTC

[GitHub] [apisix] awx-tim-zhang opened a new issue, #9462: help request: How to access the parameter in path while writing plugin

awx-tim-zhang opened a new issue, #9462:
URL: https://github.com/apache/apisix/issues/9462

   ### Description
   
   I defined a route with uri like this `user/:user`. How to access the value of the parameter `user` in a custom plugin?
   
   ### Environment
   
   - APISIX version 2.15
   


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

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


[GitHub] [apisix] AlinsRan closed issue #9462: help request: How to access the parameter in path while writing plugin

Posted by "AlinsRan (via GitHub)" <gi...@apache.org>.
AlinsRan closed issue #9462: help request: How to access the parameter in path while writing plugin
URL: https://github.com/apache/apisix/issues/9462


-- 
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] Sn0rt commented on issue #9462: help request: How to access the parameter in path while writing plugin

Posted by "Sn0rt (via GitHub)" <gi...@apache.org>.
Sn0rt commented on issue #9462:
URL: https://github.com/apache/apisix/issues/9462#issuecomment-1647619981

   hi @awx-tim-zhang . have you try the last comment ? does it work for your plugin ?
   
   if we not get your reply in one week we will close this issue.


-- 
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] shreemaan-abhishek commented on issue #9462: help request: How to access the parameter in path while writing plugin

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #9462:
URL: https://github.com/apache/apisix/issues/9462#issuecomment-1546083977

   You can use `ngx.req.get_uri_args()`.
   
   FYI: https://github.com/apache/apisix/blob/4419d0d8eb3daf901a1cf6fd4d2f806e579dced9/apisix/core/request.lua#L43


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