mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 21:01:52 +08:00
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:
26
third_party/2and3/tornado/httputil.pyi
vendored
26
third_party/2and3/tornado/httputil.pyi
vendored
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user