You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess to allow modify app.middlewares on setup stage (make it readwrite list property) but after first app.make_handler() call it should be converted to readonly tuple property.
Perhaps we need app.freeze() and even app.unfreeze() methods as well as app.frozen property.
router API also may be extended to allow for adding new routes only in non-frozen stage.
The text was updated successfully, but these errors were encountered:
Now we have read-only
tuple
property namedmiddlewares
forweb.Application
.It's inconvenient a bit, see example from aiohttp_debugtoolbar:
I guess to allow modify
app.middlewares
on setup stage (make it readwritelist
property) but after firstapp.make_handler()
call it should be converted to readonlytuple
property.Perhaps we need
app.freeze()
and evenapp.unfreeze()
methods as well asapp.frozen
property.router
API also may be extended to allow for adding new routes only in non-frozen stage.The text was updated successfully, but these errors were encountered: