14 template <
class _ReqClass,
class _RspClass >
21 template <
class _ReqClass,
class _RspClass >
22 using RouteHandlerFunctionT = std::function< void ( winux::SharedPointer<_ReqClass> requestPtr, _RspClass & rsp ) >;
66 std::vector< std::unordered_map< winux::String, std::unordered_map< winux::String, CrossRouteHandlerFunction > > >
_crossRouter;
72 std::unordered_map< winux::String, std::unordered_map< winux::String, RouteHandlerFunction > >
_router;
std::function< bool(winux::SharedPointer< _ReqClass > requestPtr, _RspClass &rsp, winux::StringArray const &urlPathPartArr, size_t i) > CrossRouteHandlerFunctionT
过径路由处理函数类型
std::unordered_map< winux::String, std::unordered_map< winux::String, RouteHandlerFunction > > _router
普通路由器
std::function< void(winux::SharedPointer< _ReqClass > requestPtr, _RspClass &rsp) > RouteHandlerFunctionT
普通路由处理函数类型
RouteHandlerFunctionT< http::Request, http::Response > RouteHandlerFunction
http::StaticFileMemoryCache _staticFileCache
静态文件缓存
CrossRouteHandlerFunctionT< http::Request, http::Response > CrossRouteHandlerFunction
#define DEFINE_CUSTOM_EVENT_RETURN_EX(ret, evtname, paramtypes)
std::vector< std::unordered_map< winux::String, std::unordered_map< winux::String, CrossRouteHandlerFunction > > > _crossRouter
过径路由器
XStringArray< tchar > StringArray