roar
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Roar::Router::Implementation Struct Reference
Collaboration diagram for Roar::Router::Implementation:

Public Member Functions

 Implementation (std::shared_ptr< const StandardResponseProvider > standardResponseProvider)
 
std::optional< std::pair< Route const &, std::vector< std::string > > > findRouteImpl (boost::beast::http::verb method, std::string const &path, std::unordered_multimap< boost::beast::http::verb, Route > const &routeContainer) const
 
std::optional< std::pair< Route const &, std::vector< std::string > > > findRoute (boost::beast::http::verb method, std::string const &path) const
 

Public Attributes

std::mutex routesMutex
 
std::unordered_multimap< boost::beast::http::verb, RoutestringRoutes
 
std::unordered_multimap< boost::beast::http::verb, RouteregexRoutes
 
std::unordered_multimap< boost::beast::http::verb, RouteserveRoutes
 
std::shared_ptr< const StandardResponseProviderstandardResponseProvider
 

Constructor & Destructor Documentation

◆ Implementation()

Roar::Router::Implementation::Implementation ( std::shared_ptr< const StandardResponseProvider standardResponseProvider)
inline

Member Function Documentation

◆ findRoute()

std::optional< std::pair< Route const &, std::vector< std::string > > > Roar::Router::Implementation::findRoute ( boost::beast::http::verb  method,
std::string const &  path 
) const
inline

◆ findRouteImpl()

std::optional< std::pair< Route const &, std::vector< std::string > > > Roar::Router::Implementation::findRouteImpl ( boost::beast::http::verb  method,
std::string const &  path,
std::unordered_multimap< boost::beast::http::verb, Route > const &  routeContainer 
) const
inline

Member Data Documentation

◆ regexRoutes

std::unordered_multimap<boost::beast::http::verb, Route> Roar::Router::Implementation::regexRoutes

◆ routesMutex

std::mutex Roar::Router::Implementation::routesMutex
mutable

◆ serveRoutes

std::unordered_multimap<boost::beast::http::verb, Route> Roar::Router::Implementation::serveRoutes

◆ standardResponseProvider

std::shared_ptr<const StandardResponseProvider> Roar::Router::Implementation::standardResponseProvider

◆ stringRoutes

std::unordered_multimap<boost::beast::http::verb, Route> Roar::Router::Implementation::stringRoutes

The documentation for this struct was generated from the following file: