|
RESTinio
|
Actual implementation of the controller interface. More...
Public Member Functions | |
| actual_controller_t (actual_request_handle_t request, const schedulers_array_t &schedulers) | |
| Initializing constructor. | |
| const actual_request_handle_t & | request_handle () const noexcept override |
| Get reference to the source request. | |
Public Member Functions inherited from restinio::async_chain::async_handling_controller_t< Extra_Data_Factory > | |
| virtual | ~async_handling_controller_t ()=default |
Private Member Functions | |
| actual_on_next_result_t | on_next () override |
| Command to try find a next scheduler to be invoked. | |
Private Attributes | |
| const actual_request_handle_t | m_request |
| The source request. | |
| schedulers_array_t | m_schedulers |
| Request handlers. | |
| std::size_t | m_current {} |
| Index of the current scheduler to be used. | |
Additional Inherited Members | |
Public Types inherited from restinio::async_chain::async_handling_controller_t< Extra_Data_Factory > | |
| using | actual_request_handle_t |
| Short alias for request_handle type. | |
| using | actual_async_request_scheduler_t |
| Short alias for async_request_scheduler type. | |
| using | actual_on_next_result_t |
| Short alias for the result type of on_next method. | |
Actual implementation of the controller interface.
Definition at line 204 of file fixed_size.hpp.
|
inlineexplicit |
Initializing constructor.
Definition at line 221 of file fixed_size.hpp.
|
inlinenodiscardoverrideprivatevirtual |
Command to try find a next scheduler to be invoked.
Implementation of async_handling_controller_t should switch to the next scheduler in the chain and return the scheduler to be called next. If there are no such schedulers, no_more_schedulers_t must be returned.
Implements restinio::async_chain::async_handling_controller_t< Extra_Data_Factory >.
Definition at line 235 of file fixed_size.hpp.
|
inlinenodiscardoverridevirtualnoexcept |
Get reference to the source request.
Usage example:
Implements restinio::async_chain::async_handling_controller_t< Extra_Data_Factory >.
Definition at line 230 of file fixed_size.hpp.
|
private |
Index of the current scheduler to be used.
Definition at line 217 of file fixed_size.hpp.
|
private |
The source request.
Definition at line 208 of file fixed_size.hpp.
|
private |
Request handlers.
Definition at line 210 of file fixed_size.hpp.