|
roar
|
The route routes http requests to their respective handler functions. More...
#include <router.hpp>
Classes | |
| struct | Implementation |
Public Member Functions | |
| Router (std::shared_ptr< const StandardResponseProvider > standardResponseProvider) | |
| ROAR_PIMPL_SPECIAL_FUNCTIONS (Router) | |
| void | addRoutes (std::unordered_multimap< boost::beast::http::verb, ProtoRoute > &&routes) |
| Add new routes to this router. | |
| void | followRoute (Session &, Request< boost::beast::http::empty_body > request) |
| Find a follow route. Automatically responds with 404 when now route can be found. | |
Private Attributes | |
| std::unique_ptr< Implementation > | impl_ |
The route routes http requests to their respective handler functions.
| Roar::Router::Router | ( | std::shared_ptr< const StandardResponseProvider > | standardResponseProvider | ) |
| void Roar::Router::addRoutes | ( | std::unordered_multimap< boost::beast::http::verb, ProtoRoute > && | routes | ) |
Add new routes to this router.
| routes | A map of verbs->routes. |
| void Roar::Router::followRoute | ( | Session & | session, |
| Request< boost::beast::http::empty_body > | request | ||
| ) |
Find a follow route. Automatically responds with 404 when now route can be found.
| request | A http request object. |
| Roar::Router::ROAR_PIMPL_SPECIAL_FUNCTIONS | ( | Router | ) |
|
private |