RESTinio
Loading...
Searching...
No Matches
express.hpp File Reference

Go to the source code of this file.

Classes

class  restinio::router::route_params_t
 Parameters extracted from route. More...
struct  restinio::router::impl::route_params_accessor_t
 Route params private internals accessor. More...
class  restinio::router::impl::route_params_appender_t
 Helper class for gthering parameters from route. More...
class  restinio::router::impl::route_matcher_t< Regex_Engine >
 A matcher for a given path. More...
class  restinio::router::generic_express_route_entry_t< Regex_Engine, Extra_Data_Factory >
 A single generic express route entry. More...
class  restinio::router::generic_express_router_t< Regex_Engine, Extra_Data_Factory >
 Generic Express.js style router. More...

Namespaces

namespace  restinio
namespace  restinio::router
namespace  restinio::router::impl

Typedefs

using restinio::router::impl::param_appender_sequence_t
template<typename Extra_Data>
using restinio::router::generic_express_request_handler_t
 Type of generic handler for one route.
using restinio::router::express_request_handler_t
 Type of a handler for one route in the case when there is no extra-data in request object.
template<typename Regex_Engine = std_regex_engine_t>
using restinio::router::express_route_entry_t
 An alias for a single route entry in the case when the default extra-data-factory is used in server's traits.
template<typename Regex_Engine = std_regex_engine_t>
using restinio::router::express_router_t
 A type of express-like router for the case when the default extra-data-factory is specified in the server's traits.

Functions

template<typename Value_Type>
Value_Type restinio::get (const router::route_params_t &params, string_view_t key)
 Cast named parameter value to a given type.
template<typename Value_Type>
Value_Type restinio::get (const router::route_params_t &params, std::size_t index)
 Cast indexed parameter value to a given type.