RESTinio
Loading...
Searching...
No Matches
restinio
router
non_matched_request_handler.hpp
Go to the documentation of this file.
1
/*
2
* RESTinio
3
*/
4
5
/**
6
* @file
7
* @brief The definition of the non_matched_request_handler type.
8
*
9
* @since v.0.6.6
10
*/
11
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
//
27
/*!
28
* @brief A generic type of handler for non-matched requests.
29
*
30
* Since v.0.6.13 some extra-data can be incorporated into a request
31
* object. In that case request-handler receives a parameter of type
32
* `generic_request_handle_t<Extra_Data>`. The name
33
* generic_non_matched_request_handler_t describes a type of
34
* generic handler that can be parametrized by a @a User_Type.
35
*
36
* @tparam Extra_Data The type of extra-data incorporated into a
37
* request object.
38
*
39
* @since v.0.6.13
40
*/
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
//
49
/*!
50
* @brief A type of handler for non-matched requests for a case when
51
* default extra-data-factory is specified in the server's traits.
52
*
53
* Since v.0.6.13 the name non_matched_request_handler_t is just
54
* an alias for generic_non_matched_request_handler_t.
55
*/
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 */
restinio::router
Definition
boost_regex_engine.hpp:17
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:42
restinio
Definition
sendfile_operation_default.ipp:12
restinio::request_handling_status_t
request_handling_status_t
Request handling status.
Definition
common_types.hpp:26
Generated by
1.14.0