New attributes and types on HTTPServerRequest (#3971)

Porting type information directly from the tornado repository:
712d61079d/tornado/httputil.py (L340-L384)
This commit is contained in:
Graham Bleaney
2020-05-14 11:20:24 -04:00
committed by GitHub
parent 0630c4b1fd
commit 6dca3f7fc5

View File

@@ -1,4 +1,4 @@
from typing import Any, Dict, NamedTuple
from typing import Any, Dict, List, NamedTuple, Optional
from tornado.util import ObjectDict
@@ -29,19 +29,21 @@ class HTTPHeaders(Dict[Any, Any]):
def __deepcopy__(self, memo_dict): ...
class HTTPServerRequest:
method: Any
uri: Any
version: Any
headers: Any
body: Any
path: str
query: str
method: Optional[str]
uri: Optional[str]
version: str
headers: HTTPHeaders
body: bytes
remote_ip: Any
protocol: Any
host: Any
files: Any
connection: Any
arguments: Any
query_arguments: Any
body_arguments: Any
host: str
files: Dict[str, List[HTTPFile]]
connection: Optional[HTTPConnection]
arguments: Dict[str, List[bytes]]
query_arguments: Dict[str, List[bytes]]
body_arguments: Dict[str, List[bytes]]
def __init__(self, method=..., uri=..., version=..., headers=..., body=..., host=..., files=..., connection=...,
start_line=...) -> None: ...
def supports_http_1_1(self): ...