NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::http::route_trie类 参考

段式Trie路由器 更多...

#include <radix_router.hpp>

Public 成员函数

void insert (const string &pattern, handler_type handler)
 插入路由规则
handler_type match (const string &path, bool case_sensitive, vector< pair< string, string > > &params)
 匹配路径
bool contains_path (const string &path, bool case_sensitive) const
 检查路径是否存在
void clear ()
 清除所有路由规则
size_t size () const noexcept
 获取 trie 节点总数

详细描述

段式Trie路由器

每HTTP方法一个实例,存储非正则路由。

在文件 radix_router.hpp29 行定义.

成员函数说明

◆ insert()

◆ match()

handler_type neforce::http::route_trie::match ( const string & path,
bool case_sensitive,
vector< pair< string, string > > & params )
inlinenodiscard

该类的文档由以下文件生成: