* assign app before handle_request so that request.app could be used in case of connection timeout

* gitignore pip-wheel-metadata/

* remove default app for request class and fix lint issue
This commit is contained in:
7
2019-04-12 05:48:32 -07:00
committed by Stephen Sadowski
parent d58151a0eb
commit 53f45810ff
4 changed files with 12 additions and 5 deletions

View File

@@ -95,11 +95,11 @@ class Request(dict):
"version",
)
def __init__(self, url_bytes, headers, version, method, transport):
def __init__(self, url_bytes, headers, version, method, transport, app):
self.raw_url = url_bytes
# TODO: Content-Encoding detection
self._parsed_url = parse_url(url_bytes)
self.app = None
self.app = app
self.headers = headers
self.version = version