massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / requests / requests / packages / urllib3 / response.pyi
1 import io
2 from typing import Any
3
4 from . import _collections, exceptions
5 from .connection import BaseSSLError as BaseSSLError, HTTPException as HTTPException
6 from .util import response
7
8 HTTPHeaderDict = _collections.HTTPHeaderDict
9 ProtocolError = exceptions.ProtocolError
10 DecodeError = exceptions.DecodeError
11 ReadTimeoutError = exceptions.ReadTimeoutError
12 binary_type = bytes  # six.binary_type
13 PY3 = True  # six.PY3
14 is_fp_closed = response.is_fp_closed
15
16 class DeflateDecoder:
17     def __init__(self) -> None: ...
18     def __getattr__(self, name): ...
19     def decompress(self, data): ...
20
21 class GzipDecoder:
22     def __init__(self) -> None: ...
23     def __getattr__(self, name): ...
24     def decompress(self, data): ...
25
26 class HTTPResponse(io.IOBase):
27     CONTENT_DECODERS: Any
28     REDIRECT_STATUSES: Any
29     headers: Any
30     status: Any
31     version: Any
32     reason: Any
33     strict: Any
34     decode_content: Any
35     def __init__(
36         self,
37         body=...,
38         headers=...,
39         status=...,
40         version=...,
41         reason=...,
42         strict=...,
43         preload_content=...,
44         decode_content=...,
45         original_response=...,
46         pool=...,
47         connection=...,
48     ) -> None: ...
49     def get_redirect_location(self): ...
50     def release_conn(self): ...
51     @property
52     def data(self): ...
53     def tell(self): ...
54     def read(self, amt=..., decode_content=..., cache_content=...): ...
55     def stream(self, amt=..., decode_content=...): ...
56     @classmethod
57     def from_httplib(cls, r, **response_kw): ...
58     def getheaders(self): ...
59     def getheader(self, name, default=...): ...
60     def close(self): ...
61     @property
62     def closed(self): ...
63     def fileno(self): ...
64     def flush(self): ...
65     def readable(self): ...
66     def readinto(self, b): ...