Represents a match of a route against an incoming HTTP request. More...
#include <RouteTypes.h>
Public Member Functions | |
std::optional< std::string > | getParam (const std::string &name) const |
Public Attributes | |
std::vector< std::string > | ordered |
std::unordered_map< std::string, std::string > | named |
This structure holds the ordered parameters and named parameters extracted from the route. It provides a method to retrieve a parameter by name.
Definition at line 18 of file RouteTypes.h.
|
inline |
Definition at line 22 of file RouteTypes.h.
References named.
Referenced by DashboardController::deleteFile(), and DashboardController::setLedState().
std::unordered_map<std::string, std::string> RouteMatch::named |
Definition at line 20 of file RouteTypes.h.
Referenced by getParam(), and Router::handleRequest().
std::vector<std::string> RouteMatch::ordered |
Definition at line 19 of file RouteTypes.h.
Referenced by Router::handleRequest(), and GpioController::initRoutes().