24 static void InitPrivateData();
54 double serverWait = 0.002,
55 double verboseInterval = 0.01,
57 int cacheLifeTime = 86400
80 double serverWait = 0.002,
81 double verboseInterval = 0.01,
83 int cacheLifeTime = 86400
101 virtual int run(
void * runParam )
override;
117 std::vector< std::unordered_map< winux::String, std::unordered_map< winux::String, CrossRouteHandlerFunction > > >
_crossRouter;
119 std::unordered_map< winux::String, std::unordered_map< winux::String, RouteHandlerFunction > >
_router;
XString< char > AnsiString
std::vector< std::unordered_map< winux::String, std::unordered_map< winux::String, CrossRouteHandlerFunction > > > _crossRouter
过径路由器 [ { pathpart: { GET: handleGet, POST: handlePost, ... }, ... }, ... ]
eiennet::StaticFileMemoryCache _staticFileCache
静态文件缓存
缓冲区,表示内存中一块二进制数据(利用malloc/realloc进行内存分配)
#define DEFINE_CUSTOM_EVENT_RETURN_EX(ret, evtname, paramtypes)
static HttpAppPrivateData PrivateData
std::function< void(winux::SharedPointer< HttpRequestCtx > requestCtxPtr, eienwebx::Response &rsp) > RouteHandlerFunction
终点路由处理函数类型
std::function< bool(winux::SharedPointer< HttpRequestCtx > requestCtxPtr, eienwebx::Response &rsp, winux::StringArray &urlPathPartArr, size_t i) > CrossRouteHandlerFunction
过径路由处理函数类型
std::unordered_map< winux::String, std::unordered_map< winux::String, RouteHandlerFunction > > _router
普通路由器 { path: { GET: handleGet, POST: handlePost, ... }, ... }
XStringArray< tchar > StringArray
eiennet::HttpServerConfig httpConfig
HTTP服务器配置对象