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

Go to the source code of this file.

Classes

struct  restinio::details::valid_request_handler_type_check::valid_handler_type< typename, typename, typename >
struct  restinio::details::valid_request_handler_type_check::valid_handler_type< Handler, Extra_Data_Factory, restinio::utils::metaprogramming::void_t< std::enable_if_t< std::is_same< request_handling_status_t, decltype(std::declval< Handler >()(std::declval< generic_request_handle_t< typename Extra_Data_Factory::data_t > >())) >::value, bool > > >
struct  restinio::details::autodetect_request_handler_type
 A special type to be used as indicator that the type of a request handler should be automatically detected. More...
struct  restinio::details::actual_request_handler_type_detector< Request_Handler, Extra_Data_Factory >
 A metafunction for the detection of type of a request-handler. More...
struct  restinio::details::actual_request_handler_type_detector< autodetect_request_handler_type, Extra_Data_Factory >
 Special version of metafunction actual_request_handler_type_detector for the case of autodetect_request_handler_type. More...
struct  restinio::traits_t< Timer_Manager, Logger, Request_Handler, Strand, Socket >

Namespaces

namespace  restinio
namespace  restinio::details
namespace  restinio::details::valid_request_handler_type_check

Typedefs

template<typename Traits>
using restinio::request_handler_type_from_traits_t
 A metafunction for extraction a request-handler type from server's traits.
template<typename Traits>
using restinio::generic_request_type_from_traits_t
 A metafunction for the detection of actual type of request-object from server's traits.
template<typename Timer_Manager, typename Logger, typename Request_Handler = details::autodetect_request_handler_type>
using restinio::single_thread_traits_t
using restinio::default_traits_t = traits_t< asio_timer_manager_t, null_logger_t >
using restinio::default_single_thread_traits_t
 Default traits for single-threaded HTTP-server.