--- /dev/null
+from typing import Any\r
+from tornado.util import ObjectDict\r
+from collections import namedtuple\r
+\r
+class SSLError(Exception): ...\r
+\r
+class _NormalizedHeaderCache(dict):\r
+ size = ... # type: Any\r
+ queue = ... # type: Any\r
+ def __init__(self, size) -> None: ...\r
+ def __missing__(self, key): ...\r
+\r
+class HTTPHeaders(dict):\r
+ def __init__(self, *args, **kwargs) -> None: ...\r
+ def add(self, name, value): ...\r
+ def get_list(self, name): ...\r
+ def get_all(self): ...\r
+ def parse_line(self, line): ...\r
+ @classmethod\r
+ def parse(cls, headers): ...\r
+ def __setitem__(self, name, value): ...\r
+ def __getitem__(self, name): ...\r
+ def __delitem__(self, name): ...\r
+ def __contains__(self, name): ...\r
+ def get(self, name, default=...): ...\r
+ def update(self, *args, **kwargs): ...\r
+ def copy(self): ...\r
+ __copy__ = ... # type: Any\r
+ def __deepcopy__(self, memo_dict): ...\r
+\r
+class HTTPServerRequest:\r
+ method = ... # type: Any\r
+ uri = ... # type: Any\r
+ version = ... # type: Any\r
+ headers = ... # type: Any\r
+ body = ... # type: Any\r
+ remote_ip = ... # type: Any\r
+ protocol = ... # type: Any\r
+ host = ... # type: Any\r
+ files = ... # type: Any\r
+ connection = ... # type: Any\r
+ arguments = ... # type: Any\r
+ query_arguments = ... # type: Any\r
+ body_arguments = ... # type: Any\r
+ def __init__(self, method=..., uri=..., version=..., headers=..., body=..., host=..., files=..., connection=..., start_line=...) -> None: ...\r
+ def supports_http_1_1(self): ...\r
+ @property\r
+ def cookies(self): ...\r
+ def write(self, chunk, callback=...): ...\r
+ def finish(self): ...\r
+ def full_url(self): ...\r
+ def request_time(self): ...\r
+ def get_ssl_certificate(self, binary_form=...): ...\r
+\r
+class HTTPInputError(Exception): ...\r
+class HTTPOutputError(Exception): ...\r
+\r
+class HTTPServerConnectionDelegate:\r
+ def start_request(self, server_conn, request_conn): ...\r
+ def on_close(self, server_conn): ...\r
+\r
+class HTTPMessageDelegate:\r
+ def headers_received(self, start_line, headers): ...\r
+ def data_received(self, chunk): ...\r
+ def finish(self): ...\r
+ def on_connection_close(self): ...\r
+\r
+class HTTPConnection:\r
+ def write_headers(self, start_line, headers, chunk=..., callback=...): ...\r
+ def write(self, chunk, callback=...): ...\r
+ def finish(self): ...\r
+\r
+def url_concat(url, args): ...\r
+\r
+class HTTPFile(ObjectDict): ...\r
+\r
+def parse_body_arguments(content_type, body, arguments, files, headers=...): ...\r
+def parse_multipart_form_data(boundary, data, arguments, files): ...\r
+def format_timestamp(ts): ...\r
+\r
+RequestStartLine = namedtuple('RequestStartLine', ['method', 'path', 'version'])\r
+\r
+def parse_request_start_line(line): ...\r
+\r
+ResponseStartLine = namedtuple('ResponseStartLine', ['version', 'code', 'reason'])\r
+\r
+def parse_response_start_line(line): ...\r
+def doctests(): ...\r
+def split_host_and_port(netloc): ...\r