api7 / lua-resty-radixtree

Adaptive Radix Trees implemented in Lua / LuaJIT
https://api7.ai/
Apache License 2.0
257 stars 61 forks source link

Q: what's the math rule ? #114

Open purekeeper opened 2 years ago

purekeeper commented 2 years ago

Does it follow longest prefix match rule ?

Eg:

route1 is /test/aa/*

route2 is /test/aa/cc/dd

So what's the match result ?

@spacewander

tzssangglass commented 2 years ago

So what's the match result ?

  1. you should give the path of the test request;
  2. you can try it yourself and you will get the answer faster;