4 from . import _collections, exceptions
5 from .connection import BaseSSLError as BaseSSLError, HTTPException as HTTPException
6 from .util import response
8 HTTPHeaderDict = _collections.HTTPHeaderDict
9 ProtocolError = exceptions.ProtocolError
10 DecodeError = exceptions.DecodeError
11 ReadTimeoutError = exceptions.ReadTimeoutError
12 binary_type = bytes # six.binary_type
14 is_fp_closed = response.is_fp_closed
17 def __init__(self) -> None: ...
18 def __getattr__(self, name): ...
19 def decompress(self, data): ...
22 def __init__(self) -> None: ...
23 def __getattr__(self, name): ...
24 def decompress(self, data): ...
26 class HTTPResponse(io.IOBase):
28 REDIRECT_STATUSES: Any
45 original_response=...,
49 def get_redirect_location(self): ...
50 def release_conn(self): ...
54 def read(self, amt=..., decode_content=..., cache_content=...): ...
55 def stream(self, amt=..., decode_content=...): ...
57 def from_httplib(cls, r, **response_kw): ...
58 def getheaders(self): ...
59 def getheader(self, name, default=...): ...
65 def readable(self): ...
66 def readinto(self, b): ...