The router relies on a tree structure which makes heavy use of common prefixes, it is basically a compact prefix tree (or just Radix tree).

https://github.com/julienschmidt/httprouter/

原文地址:https://www.cnblogs.com/rsapaper/p/13852081.html