That should allow more customizable routing than today's model. Find will be required by the Server, while Insert is optional and only for regular route insertion. They could also have separate Handler(-ish) types, to allow handlers to return other types than their own. That would allow things like inserting TypeA that returns Box<Handler>, for example. This may need some tweaking.
That should allow more customizable routing than today's model.
Find
will be required by theServer
, whileInsert
is optional and only for regular route insertion. They could also have separateHandler
(-ish) types, to allow handlers to return other types than their own. That would allow things like insertingTypeA
that returnsBox<Handler>
, for example. This may need some tweaking.