3 ms·
Off the top of my head, if you write a custom MiddlewareChain class that exposed its own management port, you could inspect and modify the state of the chain at
by akubera 10y ago
Off the top of my head, if you write a custom MiddlewareChain class that exposed its own management port, you could inspect and modify the state of the chain at any time, checkboxes to disable middleware, change endpoints, insert debug middleware, etc.
I like this... definitely worth thinking about. Thanks, all!
- akubera 10y agoAlso, if you're talking about specifically replacing a source files (i.e. modules), one could hack around with https://docs.python.org/3/library/importlib.html#importlib.reload https://docs.python.org/3/library/importlib.html#importlib.r.... I think it would work with enough indirection/factory functions.