Merge branch 'master' of ssh://github.com/BBVA/kapow
Merged to master
This commit is contained in:
@@ -400,6 +400,16 @@ class InvalidRouteError(Exception):
|
|||||||
|
|
||||||
|
|
||||||
class DynamicApplication(web.Application):
|
class DynamicApplication(web.Application):
|
||||||
|
"""
|
||||||
|
A wrapper around `aiohttp.web.Application` allowing changing routes
|
||||||
|
dynamically.
|
||||||
|
|
||||||
|
This is not safe as mentioned here:
|
||||||
|
https://github.com/aio-libs/aiohttp/issues/3238.
|
||||||
|
|
||||||
|
On the other hand this is a PoC anyway...
|
||||||
|
|
||||||
|
"""
|
||||||
def change_routes(self, routes):
|
def change_routes(self, routes):
|
||||||
router = UrlDispatcher()
|
router = UrlDispatcher()
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user