RexHuang commented on issue #2505:
URL: 
https://github.com/apache/apisix-dashboard/issues/2505#issuecomment-1179683833

   > @RexHuang
   > 
   > 1. APISIX does not have the variable `user-agent`, so you cannot use it as 
a key. If you need to use the UA value, you need to get it through the http 
header, it can get the http_user_agent this way.
   > 2. APISIX's advanced matching does not support checking substring 
operators.
   > 
   > * `has` is used to check whether the left table contains the right element
   > * `in` is used to check whether the left value is contained in the right 
table; neither of them is an operator for checking substrings
   > 
   > 3. If you need to use this function, you can use the `filter_func` 
parameter in the route to check it using custom Lua code. However, it should be 
noted that dashboard does not support this configuration now, you need to 
configure it by hand using the code editor in dashboard or through the APISIX 
Admin API. 
https://apisix.apache.org/docs/apisix/admin-api#request-body-parameters
   
   Thanks, is it any simple way to check sub-string, such as regular expression?


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to