The routing module was already starting to seem like it was getting too long. Before it becomes out of hand I decided to try one possible solution which is to have the handlers provide a way to register. This set of commits implements the following idea:
The handler modules have a _register function which takes, updates, and returns the router
The routing module calls all handlers _register functions
The dispatcher has added support to go directly to a callable
The
routing
module was already starting to seem like it was getting too long. Before it becomes out of hand I decided to try one possible solution which is to have the handlers provide a way to register. This set of commits implements the following idea:_register
function which takes, updates, and returns therouter
routing
module calls all handlers_register
functionsdispatcher
has added support to go directly to a callable