SNode.C
|
Classes | |
class | ApplicationDispatcher |
class | MiddlewareDispatcher |
class | RouterDispatcher |
Functions | |
std::string | path_concat (const std::vector< std::string > &stringvec) |
std::vector< std::string > | explode (const std::string &input, char delim) |
const std::regex & | pathRegex () |
std::smatch | matchResult (const std::string &cpath) |
bool | hasResult (const std::string &cpath) |
bool | matchFunction (const std::string &cpath, const std::string &reqpath) |
void | setParams (const std::string &cpath, Request &req) |
bool | checkForUrlMatch (const std::string &cpath, const std::string &reqpath) |
bool express::dispatcher::checkForUrlMatch | ( | const std::string & | cpath, |
const std::string & | reqpath | ||
) |
Definition at line 166 of file regex_utils.cpp.
References hasResult(), and matchFunction().
Referenced by express::dispatcher::ApplicationDispatcher::dispatch(), and express::dispatcher::MiddlewareDispatcher::dispatch().
std::vector< std::string > express::dispatcher::explode | ( | const std::string & | input, |
char | delim | ||
) |
Definition at line 66 of file regex_utils.cpp.
Referenced by matchFunction(), and setParams().
bool express::dispatcher::hasResult | ( | const std::string & | cpath | ) |
Definition at line 108 of file regex_utils.cpp.
References pathRegex().
Referenced by checkForUrlMatch(), express::dispatcher::ApplicationDispatcher::dispatch(), and express::dispatcher::MiddlewareDispatcher::dispatch().
bool express::dispatcher::matchFunction | ( | const std::string & | cpath, |
const std::string & | reqpath | ||
) |
Definition at line 114 of file regex_utils.cpp.
References explode(), matchResult(), and path_concat().
Referenced by checkForUrlMatch().
std::smatch express::dispatcher::matchResult | ( | const std::string & | cpath | ) |
Definition at line 100 of file regex_utils.cpp.
References pathRegex().
Referenced by matchFunction(), and setParams().
std::string express::dispatcher::path_concat | ( | const std::vector< std::string > & | stringvec | ) |
Definition at line 54 of file regex_utils.cpp.
Referenced by matchFunction().
const std::regex & express::dispatcher::pathRegex | ( | ) |
Definition at line 94 of file regex_utils.cpp.
Referenced by hasResult(), and matchResult().
void express::dispatcher::setParams | ( | const std::string & | cpath, |
express::Request & | req | ||
) |
Definition at line 139 of file regex_utils.cpp.
References explode(), matchResult(), express::Request::params, and express::Request::url.
Referenced by express::dispatcher::ApplicationDispatcher::dispatch(), and express::dispatcher::MiddlewareDispatcher::dispatch().