SNode.C
|
#include <Router.h>
Public Member Functions | |
Router () | |
Router (const Router &)=default | |
const Router & | setStrictRouting (bool strictRouting=true) const |
std::list< std::string > | getRoutes () const |
Route & | use (const Router &router) const |
Route & | use (const std::string &relativeMountPath, const Router &router) const |
Route & | use (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | use (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | use (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | use (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | use (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | use (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | use (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | use (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Route & | all (const Router &router) const |
Route & | all (const std::string &relativeMountPath, const Router &router) const |
Route & | all (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | all (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | all (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | all (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | all (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | all (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | all (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | all (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Route & | get (const Router &router) const |
Route & | get (const std::string &relativeMountPath, const Router &router) const |
Route & | get (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | get (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | get (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | get (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | get (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | get (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | get (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | get (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Route & | put (const Router &router) const |
Route & | put (const std::string &relativeMountPath, const Router &router) const |
Route & | put (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | put (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | put (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | put (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | put (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | put (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | put (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | put (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Route & | post (const Router &router) const |
Route & | post (const std::string &relativeMountPath, const Router &router) const |
Route & | post (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | post (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | post (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | post (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | post (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | post (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | post (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | post (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Route & | del (const Router &router) const |
Route & | del (const std::string &relativeMountPath, const Router &router) const |
Route & | del (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | del (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | del (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | del (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | del (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | del (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | del (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | del (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Route & | connect (const Router &router) const |
Route & | connect (const std::string &relativeMountPath, const Router &router) const |
Route & | connect (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | connect (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | connect (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | connect (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | connect (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | connect (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | connect (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | connect (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Route & | options (const Router &router) const |
Route & | options (const std::string &relativeMountPath, const Router &router) const |
Route & | options (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | options (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | options (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | options (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | options (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | options (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | options (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | options (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Route & | trace (const Router &router) const |
Route & | trace (const std::string &relativeMountPath, const Router &router) const |
Route & | trace (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | trace (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | trace (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | trace (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | trace (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | trace (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | trace (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | trace (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Route & | patch (const Router &router) const |
Route & | patch (const std::string &relativeMountPath, const Router &router) const |
Route & | patch (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | patch (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | patch (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | patch (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | patch (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | patch (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | patch (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | patch (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Route & | head (const Router &router) const |
Route & | head (const std::string &relativeMountPath, const Router &router) const |
Route & | head (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | head (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const |
Route & | head (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
Route & | head (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda) const |
template<typename... Lambdas> | |
Route & | head (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | head (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | head (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
template<typename... Lambdas> | |
Route & | head (const std::string &relativeMountPath, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> &lambda, Lambdas... lambdas) const |
Protected Attributes | |
std::shared_ptr< RootRoute > | rootRoute = nullptr |
Friends | |
class | Route |
class | RootRoute |
express::Router::Router | ( | ) |
Definition at line 74 of file Router.cpp.
References rootRoute.
Referenced by express::WebAppT< ServerT >::WebAppT().
|
default |
Definition at line 89 of file Router.cpp.
Route & express::Router::all | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 89 of file Router.cpp.
Route & express::Router::all | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 80 of file Router.hpp.
Route & express::Router::all | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 89 of file Router.cpp.
Route & express::Router::all | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 80 of file Router.hpp.
Definition at line 89 of file Router.cpp.
Route & express::Router::all | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 89 of file Router.cpp.
Route & express::Router::all | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 80 of file Router.hpp.
Route & express::Router::all | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 89 of file Router.cpp.
Route & express::Router::all | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 80 of file Router.hpp.
Definition at line 94 of file Router.cpp.
Route & express::Router::connect | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 94 of file Router.cpp.
Route & express::Router::connect | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 85 of file Router.hpp.
Route & express::Router::connect | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 94 of file Router.cpp.
Route & express::Router::connect | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 85 of file Router.hpp.
Route & express::Router::connect | ( | const std::string & | relativeMountPath, |
const Router & | router | ||
) | const |
Definition at line 94 of file Router.cpp.
Route & express::Router::connect | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 94 of file Router.cpp.
Route & express::Router::connect | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 85 of file Router.hpp.
Route & express::Router::connect | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 94 of file Router.cpp.
Route & express::Router::connect | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 85 of file Router.hpp.
Definition at line 93 of file Router.cpp.
Route & express::Router::del | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 93 of file Router.cpp.
Route & express::Router::del | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 84 of file Router.hpp.
Route & express::Router::del | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 93 of file Router.cpp.
Route & express::Router::del | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 84 of file Router.hpp.
Definition at line 93 of file Router.cpp.
Route & express::Router::del | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 93 of file Router.cpp.
Route & express::Router::del | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 84 of file Router.hpp.
Route & express::Router::del | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 93 of file Router.cpp.
Route & express::Router::del | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 84 of file Router.hpp.
Definition at line 90 of file Router.cpp.
Referenced by express::middleware::StaticMiddleware::StaticMiddleware().
Route & express::Router::get | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 90 of file Router.cpp.
Route & express::Router::get | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 81 of file Router.hpp.
Route & express::Router::get | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 90 of file Router.cpp.
Route & express::Router::get | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 81 of file Router.hpp.
Definition at line 90 of file Router.cpp.
Route & express::Router::get | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 90 of file Router.cpp.
Route & express::Router::get | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 81 of file Router.hpp.
Route & express::Router::get | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 90 of file Router.cpp.
Route & express::Router::get | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 81 of file Router.hpp.
std::list< std::string > express::Router::getRoutes | ( | ) | const |
Definition at line 84 of file Router.cpp.
References express::RootRoute::getRoutes(), and rootRoute.
Definition at line 98 of file Router.cpp.
Route & express::Router::head | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 98 of file Router.cpp.
Route & express::Router::head | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 89 of file Router.hpp.
Route & express::Router::head | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 98 of file Router.cpp.
Route & express::Router::head | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 89 of file Router.hpp.
Route & express::Router::head | ( | const std::string & | relativeMountPath, |
const Router & | router | ||
) | const |
Definition at line 98 of file Router.cpp.
Route & express::Router::head | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 98 of file Router.cpp.
Route & express::Router::head | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 89 of file Router.hpp.
Route & express::Router::head | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 98 of file Router.cpp.
Route & express::Router::head | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 89 of file Router.hpp.
Definition at line 95 of file Router.cpp.
Route & express::Router::options | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 95 of file Router.cpp.
Route & express::Router::options | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 86 of file Router.hpp.
Route & express::Router::options | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 95 of file Router.cpp.
Route & express::Router::options | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 86 of file Router.hpp.
Route & express::Router::options | ( | const std::string & | relativeMountPath, |
const Router & | router | ||
) | const |
Definition at line 95 of file Router.cpp.
Route & express::Router::options | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 95 of file Router.cpp.
Route & express::Router::options | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 86 of file Router.hpp.
Route & express::Router::options | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 95 of file Router.cpp.
Route & express::Router::options | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 86 of file Router.hpp.
Definition at line 97 of file Router.cpp.
Route & express::Router::patch | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 97 of file Router.cpp.
Route & express::Router::patch | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 88 of file Router.hpp.
Route & express::Router::patch | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 97 of file Router.cpp.
Route & express::Router::patch | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 88 of file Router.hpp.
Route & express::Router::patch | ( | const std::string & | relativeMountPath, |
const Router & | router | ||
) | const |
Definition at line 97 of file Router.cpp.
Route & express::Router::patch | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 97 of file Router.cpp.
Route & express::Router::patch | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 88 of file Router.hpp.
Route & express::Router::patch | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 97 of file Router.cpp.
Route & express::Router::patch | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 88 of file Router.hpp.
Definition at line 92 of file Router.cpp.
Route & express::Router::post | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 92 of file Router.cpp.
Route & express::Router::post | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 83 of file Router.hpp.
Route & express::Router::post | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 92 of file Router.cpp.
Route & express::Router::post | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 83 of file Router.hpp.
Route & express::Router::post | ( | const std::string & | relativeMountPath, |
const Router & | router | ||
) | const |
Definition at line 92 of file Router.cpp.
Route & express::Router::post | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 92 of file Router.cpp.
Route & express::Router::post | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 83 of file Router.hpp.
Route & express::Router::post | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 92 of file Router.cpp.
Route & express::Router::post | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 83 of file Router.hpp.
Definition at line 91 of file Router.cpp.
Route & express::Router::put | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 91 of file Router.cpp.
Route & express::Router::put | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 82 of file Router.hpp.
Route & express::Router::put | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 91 of file Router.cpp.
Route & express::Router::put | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 82 of file Router.hpp.
Definition at line 91 of file Router.cpp.
Route & express::Router::put | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 91 of file Router.cpp.
Route & express::Router::put | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 82 of file Router.hpp.
Route & express::Router::put | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 91 of file Router.cpp.
Route & express::Router::put | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 82 of file Router.hpp.
const Router & express::Router::setStrictRouting | ( | bool | strictRouting = true | ) | const |
Definition at line 78 of file Router.cpp.
References rootRoute, and express::RootRoute::setStrictRouting().
Referenced by express::middleware::StaticMiddleware::StaticMiddleware().
Definition at line 96 of file Router.cpp.
Route & express::Router::trace | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 96 of file Router.cpp.
Route & express::Router::trace | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 87 of file Router.hpp.
Route & express::Router::trace | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 96 of file Router.cpp.
Route & express::Router::trace | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 87 of file Router.hpp.
Route & express::Router::trace | ( | const std::string & | relativeMountPath, |
const Router & | router | ||
) | const |
Definition at line 96 of file Router.cpp.
Route & express::Router::trace | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 96 of file Router.cpp.
Route & express::Router::trace | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 87 of file Router.hpp.
Route & express::Router::trace | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 96 of file Router.cpp.
Route & express::Router::trace | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 87 of file Router.hpp.
Definition at line 88 of file Router.cpp.
Route & express::Router::use | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ) | const |
Definition at line 88 of file Router.cpp.
Route & express::Router::use | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 79 of file Router.hpp.
Route & express::Router::use | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ) | const |
Definition at line 88 of file Router.cpp.
Route & express::Router::use | ( | const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, |
Lambdas... | lambdas | ||
) | const |
Definition at line 79 of file Router.hpp.
Definition at line 88 of file Router.cpp.
Route & express::Router::use | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda | ||
) | const |
Definition at line 88 of file Router.cpp.
Route & express::Router::use | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 79 of file Router.hpp.
Route & express::Router::use | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda | ||
) | const |
Definition at line 88 of file Router.cpp.
Route & express::Router::use | ( | const std::string & | relativeMountPath, |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & | lambda, | ||
Lambdas... | lambdas | ||
) | const |
Definition at line 79 of file Router.hpp.
|
protected |
Definition at line 120 of file Router.h.
Referenced by getRoutes(), Router(), and setStrictRouting().