non_matched_request_handler.hpp
Go to the documentation of this file.
/*
* RESTinio
*/
#pragma once
#include <restinio/request_handler.hpp>
#include <functional>
namespace restinio
{
namespace router
{
//
// generic_non_matched_request_handler_t
//
template< typename Extra_Data >
using generic_non_matched_request_handler_t =
std::function<
request_handling_status_t( generic_request_handle_t<Extra_Data> )
>;
//
// non_matched_request_handler_t
//
using non_matched_request_handler_t =
generic_non_matched_request_handler_t<
no_extra_data_factory_t::data_t
>;
} /* namespace router */
} /* namespace restinio */
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