Resolve and invoke the handler for a key.
The routing key.
The arguments to pass to the handler.
The handler's result.
Whether a handler is registered for a key.
The routing key.
True if registered.
The registered keys.
The keys.
Register a handler for a key.
The routing key.
The handler (function or object with an action method).
The method to call for object handlers (defaults to handle).
This router for chaining.
Resolve the handler for a key.
The routing key.
The normalized handler function.
Resolve the handler for a key, or undefined when absent.
The routing key.
The handler, or undefined.
Staticcreate
A minimal key -> handler router.
The small sibling of the full path Router: no paths, params, constraints or groups, just "this key maps to this handler". It is the reusable core behind job dispatch (job name -> handler), bus events (event name -> handler), realtime events, CLI commands (command -> handler) and the light KeyRoutingEventHandler. Handlers may be plain functions or objects/instances with an action method.