187 if constexpr( 0
u !=
sizeof...(tail) )
188 store_to( index + 1u, std::forward<Tail>(tail)... );
210 static_assert(
Size ==
sizeof...(handlers),
211 "Wrong number of parameters for the constructor of "
212 "fixed_size_chain_t<Size>. Exact `Size` parameters expected" );
A holder of fixed-size chain of synchronous handlers.
std::array< handler_holder_t, Size > m_handlers
void store_to(std::size_t index, Head &&head, Tail &&...tail)
fixed_size_chain_t()=delete
fixed_size_chain_t(Handlers &&...handlers)
Initializing constructor.
generic_request_handle_t< typename Extra_Data_Factory::data_t > actual_request_handle_t
std::function< request_handling_status_t(const actual_request_handle_t &) > handler_holder_t
request_handling_status_t operator()(const actual_request_handle_t &req) const
std::shared_ptr< generic_request_t< Extra_Data > > generic_request_handle_t
An alias for shared-pointer to incoming request.
run_on_this_thread_settings_t< Traits > on_this_thread()
A special marker for the case when http_server must be run on the context of the current thread.
constexpr request_handling_status_t request_not_handled() noexcept
request_handling_status_t
Request handling status.
@ accepted
Request accepted for handling.
@ not_handled
The request wasn't handled. If there is another handler to be tried it should be tried....
@ rejected
Request wasn't accepted for handling.