Split the Router trait into a Find trait and an Insert trait
Closed this issue · 0 comments
Ogeon commented
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.