Unused code.
This commit is contained in:
parent
70587ac360
commit
ea7acd915c
1 changed files with 0 additions and 29 deletions
|
@ -487,35 +487,6 @@ class Response(AiohttpResponse):
|
||||||
self.headers["Location"] = value
|
self.headers["Location"] = value
|
||||||
|
|
||||||
|
|
||||||
class View(AiohttpView):
|
|
||||||
async def _iter(self):
|
|
||||||
if self.request.method not in METHODS:
|
|
||||||
self._raise_allowed_methods()
|
|
||||||
|
|
||||||
method = getattr(self, self.request.method.lower(), None)
|
|
||||||
|
|
||||||
if method is None:
|
|
||||||
self._raise_allowed_methods()
|
|
||||||
|
|
||||||
return await method(**self.request.match_info)
|
|
||||||
|
|
||||||
@property
|
|
||||||
def app(self):
|
|
||||||
return self._request.app
|
|
||||||
|
|
||||||
@property
|
|
||||||
def cache(self):
|
|
||||||
return self.app.cache
|
|
||||||
|
|
||||||
@property
|
|
||||||
def config(self):
|
|
||||||
return self.app.config
|
|
||||||
|
|
||||||
@property
|
|
||||||
def database(self):
|
|
||||||
return self.app.database
|
|
||||||
|
|
||||||
|
|
||||||
class WKNodeinfo(DotDict):
|
class WKNodeinfo(DotDict):
|
||||||
@classmethod
|
@classmethod
|
||||||
def new(cls, v20, v21):
|
def new(cls, v20, v21):
|
||||||
|
|
Loading…
Reference in a new issue