RESTinio

non_matched_request_handler.hpp
Go to the documentation of this file.
1/*
2 * RESTinio
3 */
4
12#pragma once
13
14#include <restinio/request_handler.hpp>
15
16#include <functional>
17
18 namespace restinio
19{
20
21 namespace router
22{
23
24//
25// generic_non_matched_request_handler_t
26//
41 template< typename Extra_Data >
42 using generic_non_matched_request_handler_t =
43 std::function<
44 request_handling_status_t( generic_request_handle_t<Extra_Data> )
45 >;
46//
47// non_matched_request_handler_t
48//
56 using non_matched_request_handler_t =
57 generic_non_matched_request_handler_t<
58 no_extra_data_factory_t::data_t
59 >;
60
61} /* namespace router */
62
63} /* namespace restinio */
64
restinio::router::non_matched_request_handler_t
generic_non_matched_request_handler_t< no_extra_data_factory_t::data_t > non_matched_request_handler_t
A type of handler for non-matched requests for a case when default extra-data-factory is specified in...
Definition: non_matched_request_handler.hpp:59
restinio::router::generic_non_matched_request_handler_t
std::function< request_handling_status_t(generic_request_handle_t< Extra_Data >) > generic_non_matched_request_handler_t
A generic type of handler for non-matched requests.
Definition: non_matched_request_handler.hpp:45
restinio
Definition: asio_include.hpp:21
restinio::generic_request_handle_t
std::shared_ptr< generic_request_t< Extra_Data > > generic_request_handle_t
An alias for shared-pointer to incoming request.
Definition: request_handler.hpp:447
restinio::request_handling_status_t
request_handling_status_t
Request handling status.
Definition: common_types.hpp:26
request_handler.hpp
restinio::no_extra_data_factory_t::data_t
A type of extra-data to be incorporated into a request object by the default.
Definition: request_handler.hpp:80