rest-cpp
REST-like framework and server for blazing fast web applications in C++11
REST::Router Class Reference

Public Member Functions

void route (std::string const &, LambdaService::function)
 
template<class R >
void resource (std::string const &path)
 
template<class R , size_t N>
void resource ()
 
template<class R >
void resource ()
 
void print ()
 

Static Public Member Functions

static RouterInstance ()
 
static std::shared_ptr< ServicegetResource (std::shared_ptr< Request >, int)
 
static Node * match (std::string const &, std::map< std::string, std::string > &)
 

Static Public Attributes

static int WORKERS = 256
 

Detailed Description

Router resolves URL to Request::parameters and finds Service corresponding to the URL.

See Also
Request
Service