SNode.C
Loading...
Searching...
No Matches
Router Class Reference

#include <Router.h>

Inheritance diagram for Router:
Collaboration diagram for Router:

Public Member Functions

 Router ()
 Router (const Router &)=default
const Router & setStrictRouting (bool strictRouting=true) const
const Router & setCaseInsensitiveRouting (bool caseInsensitiveRouting=true) const
const Router & setMergeParams (bool mergeParams=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

Detailed Description

Definition at line 98 of file Router.h.

Constructor & Destructor Documentation

◆ Router() [1/2]

Definition at line 74 of file Router.cpp.

75 : rootRoute(std::make_shared<RootRoute>()) {
76 }
std::shared_ptr< RootRoute > rootRoute
Definition Router.h:122

◆ Router() [2/2]

express::Router::Router ( const Router & )
default

Member Function Documentation

◆ all() [1/10]

Route & express::Router::all ( const Router & router) const

Definition at line 101 of file Router.cpp.

◆ all() [2/10]

Route & express::Router::all ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 101 of file Router.cpp.

◆ all() [3/10]

template<typename... Lambdas>
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.

◆ all() [4/10]

Route & express::Router::all ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 101 of file Router.cpp.

◆ all() [5/10]

template<typename... Lambdas>
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.

◆ all() [6/10]

Route & express::Router::all ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 101 of file Router.cpp.

◆ all() [7/10]

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 101 of file Router.cpp.

◆ all() [8/10]

template<typename... Lambdas>
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.

◆ all() [9/10]

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 101 of file Router.cpp.

◆ all() [10/10]

template<typename... Lambdas>
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.

◆ connect() [1/10]

Route & express::Router::connect ( const Router & router) const

Definition at line 106 of file Router.cpp.

◆ connect() [2/10]

Route & express::Router::connect ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 106 of file Router.cpp.

◆ connect() [3/10]

template<typename... Lambdas>
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.

◆ connect() [4/10]

Route & express::Router::connect ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 106 of file Router.cpp.

◆ connect() [5/10]

template<typename... Lambdas>
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.

◆ connect() [6/10]

Route & express::Router::connect ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 106 of file Router.cpp.

◆ connect() [7/10]

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 106 of file Router.cpp.

◆ connect() [8/10]

template<typename... Lambdas>
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.

◆ connect() [9/10]

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 106 of file Router.cpp.

◆ connect() [10/10]

template<typename... Lambdas>
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.

◆ del() [1/10]

Route & express::Router::del ( const Router & router) const

Definition at line 105 of file Router.cpp.

◆ del() [2/10]

Route & express::Router::del ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 105 of file Router.cpp.

◆ del() [3/10]

template<typename... Lambdas>
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.

◆ del() [4/10]

Route & express::Router::del ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 105 of file Router.cpp.

◆ del() [5/10]

template<typename... Lambdas>
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.

◆ del() [6/10]

Route & express::Router::del ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 105 of file Router.cpp.

◆ del() [7/10]

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 105 of file Router.cpp.

◆ del() [8/10]

template<typename... Lambdas>
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.

◆ del() [9/10]

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 105 of file Router.cpp.

◆ del() [10/10]

template<typename... Lambdas>
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.

◆ get() [1/10]

Route & express::Router::get ( const Router & router) const

Definition at line 102 of file Router.cpp.

◆ get() [2/10]

Route & express::Router::get ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 102 of file Router.cpp.

◆ get() [3/10]

template<typename... Lambdas>
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.

◆ get() [4/10]

Route & express::Router::get ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 102 of file Router.cpp.

◆ get() [5/10]

template<typename... Lambdas>
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.

◆ get() [6/10]

Route & express::Router::get ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 102 of file Router.cpp.

◆ get() [7/10]

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 102 of file Router.cpp.

◆ get() [8/10]

template<typename... Lambdas>
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.

◆ get() [9/10]

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 102 of file Router.cpp.

◆ get() [10/10]

template<typename... Lambdas>
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.

◆ getRoutes()

std::list< std::string > express::Router::getRoutes ( ) const

Definition at line 96 of file Router.cpp.

96 {
97 return rootRoute->getRoutes();
98 }

◆ head() [1/10]

Route & express::Router::head ( const Router & router) const

Definition at line 110 of file Router.cpp.

◆ head() [2/10]

Route & express::Router::head ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 110 of file Router.cpp.

◆ head() [3/10]

template<typename... Lambdas>
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.

◆ head() [4/10]

Route & express::Router::head ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 110 of file Router.cpp.

◆ head() [5/10]

template<typename... Lambdas>
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.

◆ head() [6/10]

Route & express::Router::head ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 110 of file Router.cpp.

◆ head() [7/10]

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 110 of file Router.cpp.

◆ head() [8/10]

template<typename... Lambdas>
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.

◆ head() [9/10]

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 110 of file Router.cpp.

◆ head() [10/10]

template<typename... Lambdas>
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.

◆ options() [1/10]

Route & express::Router::options ( const Router & router) const

Definition at line 107 of file Router.cpp.

◆ options() [2/10]

Route & express::Router::options ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 107 of file Router.cpp.

◆ options() [3/10]

template<typename... Lambdas>
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.

◆ options() [4/10]

Route & express::Router::options ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 107 of file Router.cpp.

◆ options() [5/10]

template<typename... Lambdas>
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.

◆ options() [6/10]

Route & express::Router::options ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 107 of file Router.cpp.

◆ options() [7/10]

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 107 of file Router.cpp.

◆ options() [8/10]

template<typename... Lambdas>
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.

◆ options() [9/10]

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 107 of file Router.cpp.

◆ options() [10/10]

template<typename... Lambdas>
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.

◆ patch() [1/10]

Route & express::Router::patch ( const Router & router) const

Definition at line 109 of file Router.cpp.

◆ patch() [2/10]

Route & express::Router::patch ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 109 of file Router.cpp.

◆ patch() [3/10]

template<typename... Lambdas>
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.

◆ patch() [4/10]

Route & express::Router::patch ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 109 of file Router.cpp.

◆ patch() [5/10]

template<typename... Lambdas>
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.

◆ patch() [6/10]

Route & express::Router::patch ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 109 of file Router.cpp.

◆ patch() [7/10]

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 109 of file Router.cpp.

◆ patch() [8/10]

template<typename... Lambdas>
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.

◆ patch() [9/10]

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 109 of file Router.cpp.

◆ patch() [10/10]

template<typename... Lambdas>
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.

◆ post() [1/10]

Route & express::Router::post ( const Router & router) const

Definition at line 104 of file Router.cpp.

◆ post() [2/10]

Route & express::Router::post ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 104 of file Router.cpp.

◆ post() [3/10]

template<typename... Lambdas>
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.

◆ post() [4/10]

Route & express::Router::post ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 104 of file Router.cpp.

◆ post() [5/10]

template<typename... Lambdas>
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.

◆ post() [6/10]

Route & express::Router::post ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 104 of file Router.cpp.

◆ post() [7/10]

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 104 of file Router.cpp.

◆ post() [8/10]

template<typename... Lambdas>
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.

◆ post() [9/10]

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 104 of file Router.cpp.

◆ post() [10/10]

template<typename... Lambdas>
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.

◆ put() [1/10]

Route & express::Router::put ( const Router & router) const

Definition at line 103 of file Router.cpp.

◆ put() [2/10]

Route & express::Router::put ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 103 of file Router.cpp.

◆ put() [3/10]

template<typename... Lambdas>
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.

◆ put() [4/10]

Route & express::Router::put ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 103 of file Router.cpp.

◆ put() [5/10]

template<typename... Lambdas>
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.

◆ put() [6/10]

Route & express::Router::put ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 103 of file Router.cpp.

◆ put() [7/10]

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 103 of file Router.cpp.

◆ put() [8/10]

template<typename... Lambdas>
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.

◆ put() [9/10]

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 103 of file Router.cpp.

◆ put() [10/10]

template<typename... Lambdas>
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.

◆ setCaseInsensitiveRouting()

const Router & express::Router::setCaseInsensitiveRouting ( bool caseInsensitiveRouting = true) const

Definition at line 84 of file Router.cpp.

84 {
85 rootRoute->setCaseInsensitiveRouting(caseInsensitiveRouting);
86
87 return *this;
88 }

◆ setMergeParams()

const Router & express::Router::setMergeParams ( bool mergeParams = true) const

Definition at line 90 of file Router.cpp.

90 {
91 rootRoute->setMergeParams(mergeParams);
92
93 return *this;
94 }

◆ setStrictRouting()

const Router & express::Router::setStrictRouting ( bool strictRouting = true) const

Definition at line 78 of file Router.cpp.

78 {
79 rootRoute->setStrictRouting(strictRouting);
80
81 return *this;
82 }

◆ trace() [1/10]

Route & express::Router::trace ( const Router & router) const

Definition at line 108 of file Router.cpp.

◆ trace() [2/10]

Route & express::Router::trace ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 108 of file Router.cpp.

◆ trace() [3/10]

template<typename... Lambdas>
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.

◆ trace() [4/10]

Route & express::Router::trace ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 108 of file Router.cpp.

◆ trace() [5/10]

template<typename... Lambdas>
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.

◆ trace() [6/10]

Route & express::Router::trace ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 108 of file Router.cpp.

◆ trace() [7/10]

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 108 of file Router.cpp.

◆ trace() [8/10]

template<typename... Lambdas>
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.

◆ trace() [9/10]

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 108 of file Router.cpp.

◆ trace() [10/10]

template<typename... Lambdas>
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.

◆ use() [1/10]

Route & express::Router::use ( const Router & router) const

Definition at line 100 of file Router.cpp.

◆ use() [2/10]

Route & express::Router::use ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & lambda) const

Definition at line 100 of file Router.cpp.

◆ use() [3/10]

template<typename... Lambdas>
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.

◆ use() [4/10]

Route & express::Router::use ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &, Next &)> & lambda) const

Definition at line 100 of file Router.cpp.

◆ use() [5/10]

template<typename... Lambdas>
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.

◆ use() [6/10]

Route & express::Router::use ( const std::string & relativeMountPath,
const Router & router ) const

Definition at line 100 of file Router.cpp.

◆ use() [7/10]

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 100 of file Router.cpp.

◆ use() [8/10]

template<typename... Lambdas>
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.

◆ use() [9/10]

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 100 of file Router.cpp.

◆ use() [10/10]

template<typename... Lambdas>
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.

◆ RootRoute

friend class RootRoute
friend

Definition at line 125 of file Router.h.

◆ Route

friend class Route
friend

Definition at line 124 of file Router.h.

Member Data Documentation

◆ rootRoute

std::shared_ptr<RootRoute> express::Router::rootRoute = nullptr
protected

Definition at line 122 of file Router.h.


The documentation for this class was generated from the following files: