|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
压缩前缀树(段式Trie)路由匹配 更多...
#include "NeForce/core/functional/function.hpp"#include "NeForce/network/http/http_server_message.hpp"类 | |
| class | neforce::http::route_trie |
| 段式Trie路由器 更多... | |
压缩前缀树(段式Trie)路由匹配
将URL路径按'/'分割为段,每段作为一个trie节点, 支持静态段、:param参数段、*通配符段三种匹配。 匹配时间复杂度 O(k),k为路径深度。
在文件 radix_router.hpp 中定义.