RESTinio
|
Namespaces | |
namespace | easy_parser_router |
namespace | impl |
namespace | pcre2_details |
namespace | pcre_details |
Classes | |
struct | boost_regex_engine_t |
Regex engine implementation for using with standard regex implementation. More... | |
class | dynamic_any_of_methods_matcher_t |
An implementation of method_matcher that allows a method if it's found in a dynamic list of allowed methods. More... | |
class | dynamic_none_of_methods_matcher_t |
An implementation of method_matcher that allows a method if it isn't found in a dynamic list of disabled methods. More... | |
class | generic_easy_parser_router_t |
A generic request router that uses easy_parser for matching requests with handlers. More... | |
class | generic_express_route_entry_t |
A single generic express route entry. More... | |
class | generic_express_router_t |
Generic Express.js style router. More... | |
struct | method_matcher_t |
An interface of method_matcher. More... | |
struct | pcre2_regex_engine_t |
Regex engine implementation for PCRE2. More... | |
struct | pcre2_traits_t |
PCRE traits. More... | |
struct | pcre_regex_engine_t |
Regex engine implementation for PCRE. More... | |
struct | pcre_traits_t |
PCRE traits. More... | |
class | route_params_t |
Parameters extracted from route. More... | |
struct | std_regex_engine_t |
Regex engine implementation for using with standard regex implementation. More... | |
Typedefs | |
using | easy_parser_router_t = generic_easy_parser_router_t< no_extra_data_factory_t > |
A request router that uses easy_parser for matching requests with handlers. More... | |
template<typename Extra_Data > | |
using | generic_express_request_handler_t = std::function< request_handling_status_t(generic_request_handle_t< Extra_Data >, route_params_t) > |
Type of generic handler for one route. More... | |
using | express_request_handler_t = generic_express_request_handler_t< no_extra_data_factory_t::data_t > |
Type of a handler for one route in the case when there is no extra-data in request object. More... | |
template<typename Regex_Engine = std_regex_engine_t> | |
using | express_route_entry_t = generic_express_route_entry_t< Regex_Engine, no_extra_data_factory_t > |
An alias for a single route entry in the case when the default extra-data-factory is used in server's traits. More... | |
template<typename Regex_Engine = std_regex_engine_t> | |
using | express_router_t = generic_express_router_t< Regex_Engine, no_extra_data_factory_t > |
A type of express-like router for the case when the default extra-data-factory is specified in the server's traits. More... | |
template<typename Extra_Data > | |
using | generic_non_matched_request_handler_t = std::function< request_handling_status_t(generic_request_handle_t< Extra_Data >) > |
A generic type of handler for non-matched requests. More... | |
using | non_matched_request_handler_t = generic_non_matched_request_handler_t< no_extra_data_factory_t::data_t > |
A type of handler for non-matched requests for a case when default extra-data-factory is specified in the server's traits. More... | |
Functions | |
template<typename... Args> | |
RESTINIO_NODISCARD impl::fixed_size_any_of_matcher_t< sizeof...(Args) > | any_of_methods (Args &&...args) |
A factory function that creates a method_matcher that allows a method if it's found in the list of allowed methods. More... | |
template<typename... Args> | |
RESTINIO_NODISCARD impl::fixed_size_none_of_matcher_t< sizeof...(Args) > | none_of_methods (Args &&...args) |
A factory function that creates a method_matcher that allows a method if it isn't found in the list of disabled methods. More... | |
using restinio::router::easy_parser_router_t = typedef generic_easy_parser_router_t< no_extra_data_factory_t > |
A request router that uses easy_parser for matching requests with handlers.
Usage example:
Definition at line 1173 of file easy_parser_router.hpp.
using restinio::router::express_request_handler_t = typedef generic_express_request_handler_t< no_extra_data_factory_t::data_t > |
Type of a handler for one route in the case when there is no extra-data in request object.
Since v.0.6.13 it's just an alias for generic_express_request_handler_t for the case when the default extra-data-factory is used in server's traits.
Definition at line 456 of file express.hpp.
using restinio::router::express_route_entry_t = typedef generic_express_route_entry_t< Regex_Engine, no_extra_data_factory_t > |
An alias for a single route entry in the case when the default extra-data-factory is used in server's traits.
Since v.0.6.13 this name is just an alias for generic_express_route_entry_t.
Definition at line 576 of file express.hpp.
using restinio::router::express_router_t = typedef generic_express_router_t< Regex_Engine, no_extra_data_factory_t > |
A type of express-like router for the case when the default extra-data-factory is specified in the server's traits.
Since v.0.6.13 this type is just an alias for generic_express_router_t with the default extra-data-factory type.
Regex_Engine | Type of regex-engine to be used. |
Definition at line 841 of file express.hpp.
using restinio::router::generic_express_request_handler_t = typedef std::function< request_handling_status_t( generic_request_handle_t<Extra_Data>, route_params_t ) > |
Type of generic handler for one route.
Since v.0.6.13 some extra-data can be incorporated into request-object. In that case request-handler will have a different format in comparison with previous versions. The type generic_express_request_handler_t describes a request-handler when extra-data of type Extra_Data is bound to request object.
Definition at line 439 of file express.hpp.
using restinio::router::generic_non_matched_request_handler_t = typedef std::function< request_handling_status_t( generic_request_handle_t<Extra_Data> ) > |
A generic type of handler for non-matched requests.
Since v.0.6.13 some extra-data can be incorporated into a request object. In that case request-handler receives a parameter of type generic_request_handle_t<Extra_Data>
. The name generic_non_matched_request_handler_t describes a type of generic handler that can be parametrized by a User_Type.
Extra_Data | The type of extra-data incorporated into a request object. |
Definition at line 42 of file non_matched_request_handler.hpp.
using restinio::router::non_matched_request_handler_t = typedef generic_non_matched_request_handler_t< no_extra_data_factory_t::data_t > |
A type of handler for non-matched requests for a case when default extra-data-factory is specified in the server's traits.
Since v.0.6.13 the name non_matched_request_handler_t is just an alias for generic_non_matched_request_handler_t.
Definition at line 56 of file non_matched_request_handler.hpp.
RESTINIO_NODISCARD impl::fixed_size_any_of_matcher_t< sizeof...(Args) > restinio::router::any_of_methods | ( | Args &&... | args | ) |
A factory function that creates a method_matcher that allows a method if it's found in the list of allowed methods.
Usage example:
Definition at line 417 of file method_matcher.hpp.
RESTINIO_NODISCARD impl::fixed_size_none_of_matcher_t< sizeof...(Args) > restinio::router::none_of_methods | ( | Args &&... | args | ) |
A factory function that creates a method_matcher that allows a method if it isn't found in the list of disabled methods.
Usage example:
Definition at line 449 of file method_matcher.hpp.