massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2 / tornado / httputil.pyi
1 from typing import Any\r
2 from tornado.util import ObjectDict\r
3 from collections import namedtuple\r
4 \r
5 class SSLError(Exception): ...\r
6 \r
7 class _NormalizedHeaderCache(dict):\r
8     size = ...  # type: Any\r
9     queue = ...  # type: Any\r
10     def __init__(self, size) -> None: ...\r
11     def __missing__(self, key): ...\r
12 \r
13 class HTTPHeaders(dict):\r
14     def __init__(self, *args, **kwargs) -> None: ...\r
15     def add(self, name, value): ...\r
16     def get_list(self, name): ...\r
17     def get_all(self): ...\r
18     def parse_line(self, line): ...\r
19     @classmethod\r
20     def parse(cls, headers): ...\r
21     def __setitem__(self, name, value): ...\r
22     def __getitem__(self, name): ...\r
23     def __delitem__(self, name): ...\r
24     def __contains__(self, name): ...\r
25     def get(self, name, default=...): ...\r
26     def update(self, *args, **kwargs): ...\r
27     def copy(self): ...\r
28     __copy__ = ...  # type: Any\r
29     def __deepcopy__(self, memo_dict): ...\r
30 \r
31 class HTTPServerRequest:\r
32     method = ...  # type: Any\r
33     uri = ...  # type: Any\r
34     version = ...  # type: Any\r
35     headers = ...  # type: Any\r
36     body = ...  # type: Any\r
37     remote_ip = ...  # type: Any\r
38     protocol = ...  # type: Any\r
39     host = ...  # type: Any\r
40     files = ...  # type: Any\r
41     connection = ...  # type: Any\r
42     arguments = ...  # type: Any\r
43     query_arguments = ...  # type: Any\r
44     body_arguments = ...  # type: Any\r
45     def __init__(self, method=..., uri=..., version=..., headers=..., body=..., host=..., files=..., connection=..., start_line=...) -> None: ...\r
46     def supports_http_1_1(self): ...\r
47     @property\r
48     def cookies(self): ...\r
49     def write(self, chunk, callback=...): ...\r
50     def finish(self): ...\r
51     def full_url(self): ...\r
52     def request_time(self): ...\r
53     def get_ssl_certificate(self, binary_form=...): ...\r
54 \r
55 class HTTPInputError(Exception): ...\r
56 class HTTPOutputError(Exception): ...\r
57 \r
58 class HTTPServerConnectionDelegate:\r
59     def start_request(self, server_conn, request_conn): ...\r
60     def on_close(self, server_conn): ...\r
61 \r
62 class HTTPMessageDelegate:\r
63     def headers_received(self, start_line, headers): ...\r
64     def data_received(self, chunk): ...\r
65     def finish(self): ...\r
66     def on_connection_close(self): ...\r
67 \r
68 class HTTPConnection:\r
69     def write_headers(self, start_line, headers, chunk=..., callback=...): ...\r
70     def write(self, chunk, callback=...): ...\r
71     def finish(self): ...\r
72 \r
73 def url_concat(url, args): ...\r
74 \r
75 class HTTPFile(ObjectDict): ...\r
76 \r
77 def parse_body_arguments(content_type, body, arguments, files, headers=...): ...\r
78 def parse_multipart_form_data(boundary, data, arguments, files): ...\r
79 def format_timestamp(ts): ...\r
80 \r
81 RequestStartLine = namedtuple('RequestStartLine', ['method', 'path', 'version'])\r
82 \r
83 def parse_request_start_line(line): ...\r
84 \r
85 ResponseStartLine = namedtuple('ResponseStartLine', ['version', 'code', 'reason'])\r
86 \r
87 def parse_response_start_line(line): ...\r
88 def doctests(): ...\r
89 def split_host_and_port(netloc): ...\r