MCPcopy
hub / github.com/aio-libs/aiohttp / register_route

Method register_route

aiohttp/web_urldispatcher.py:766–769  ·  view source on GitHub ↗
(self, route)

Source from the content-addressed store, hash-verified

764 return self.named_resources()
765
766 def register_route(self, route):
767 warnings.warn("Use resource-based interface", DeprecationWarning)
768 resource = ResourceAdapter(route)
769 self._reg_resource(resource)
770
771 def _reg_resource(self, resource):
772 assert isinstance(resource, AbstractResource), \

Callers 1

add_staticMethod · 0.95

Calls 2

_reg_resourceMethod · 0.95
ResourceAdapterClass · 0.85

Tested by

no test coverage detected