RESTinio
|
Common stuff for different types of async handlers chains. More...
#include <restinio/request_handler.hpp>
Go to the source code of this file.
Classes | |
struct | restinio::async_chain::no_more_schedulers_t |
Special type to be used as an indicator that there are no more schedulers in an async chain. More... | |
class | restinio::async_chain::async_handling_controller_t< Extra_Data_Factory > |
Interface of a controller of an async chan. More... | |
struct | restinio::async_chain::impl::on_next_result_visitor_t< Extra_Data_Factory > |
Helper type to be used as handler of variant values in std::visit. More... |
Namespaces | |
namespace | restinio |
namespace | restinio::async_chain |
namespace | restinio::async_chain::impl |
Typedefs | |
template<typename Extra_Data_Factory = no_extra_data_factory_t> | |
using | restinio::async_chain::unique_async_handling_controller_t |
Short alias for unique_ptr to async_handling_controller. | |
template<typename Extra_Data_Factory = no_extra_data_factory_t> | |
using | restinio::async_chain::generic_async_request_scheduler_t |
Short alias for a type of a scheduler to be used in async chains. | |
template<typename Extra_Data_Factory = no_extra_data_factory_t> | |
using | restinio::async_chain::on_next_result_t |
Special type to be used as result of async_handling_controller's on_next method. |
Enumerations | |
enum class | restinio::async_chain::schedule_result_t { restinio::async_chain::ok , restinio::async_chain::failure } |
Type for return value of a scheduler in a chain. More... |
Functions | |
constexpr schedule_result_t | restinio::async_chain::ok () noexcept |
Helper function to be used if scheduling was successful. | |
constexpr schedule_result_t | restinio::async_chain::failure () noexcept |
Helper function to be used if scheduling failed. | |
template<typename Extra_Data_Factory> | |
void | restinio::async_chain::next (unique_async_handling_controller_t< Extra_Data_Factory > controller) |
Command to try to switch to the next handler in an async chain. | |
template<typename Request_Handle> | |
void | restinio::async_chain::impl::make_not_implemented_response (const Request_Handle &req) |
Helper to make a negative response with "Not Implemented" status. | |
template<typename Request_Handle> | |
void | restinio::async_chain::impl::make_internal_server_error_response (const Request_Handle &req) |
Helper to make a negative response with "Internal Server Error" status. |
Common stuff for different types of async handlers chains.
Definition in file common.hpp.