panini
panini copied to clipboard
middleware inheritance
Let's assume that we have ParentMiddleware which has overloaded method listen_any and ChildMiddleware which inherited from ParentMiddleware and has not any of required methods.
In that case, ChildMiddleware cannot be used
That a good question, please look at NatsTimeoutMiddleware implementation here
So ChildMiddleware must "re-call" the parent methods if no changes
Thanks!
In this case, do an user have to "re-call" all the methods, or only one is enough?
I guess this approach can be counterintuitive to an user
do an user have to "re-call" all the methods, or only one is enough?
Those, that were overloaded in parent (not important to call all)
I guess this approach can be counterintuitive to an user
You are right, but an inheritance from not standard Middleware interface is an advanced topic, and we can write about that in the documentation, that will come with time