Dispatcher class final
#include <control/dispatcher.hpp>
Stateless command dispatcher over registry + shared services.
Constructors, destructors, conversion operators
- Dispatcher(const CommandRegistry& registry, const ControlServices& services)
Public functions
- void dispatch(const Request& request, ResponseWriter* out_response) const
- Resolves command, checks authorization policy, and runs handler.
Function documentation
void prf:: control:: Dispatcher:: dispatch(const Request& request,
ResponseWriter* out_response) const
Resolves command, checks authorization policy, and runs handler.
On any routing/auth/dependency failure this function sets out_response to a control error payload.