1 from typing import Any, Text
3 from . import cookies, models, utils
5 extract_cookies_to_jar = cookies.extract_cookies_to_jar
6 parse_dict_header = utils.parse_dict_header
7 to_native_string = utils.to_native_string
9 CONTENT_TYPE_FORM_URLENCODED: Any
10 CONTENT_TYPE_MULTI_PART: Any
12 def _basic_auth_str(username: bytes | Text, password: bytes | Text) -> str: ...
15 def __call__(self, r: models.PreparedRequest) -> models.PreparedRequest: ...
17 class HTTPBasicAuth(AuthBase):
20 def __init__(self, username, password) -> None: ...
21 def __call__(self, r): ...
23 class HTTPProxyAuth(HTTPBasicAuth):
24 def __call__(self, r): ...
26 class HTTPDigestAuth(AuthBase):
34 def __init__(self, username, password) -> None: ...
35 def build_digest_header(self, method, url): ...
36 def handle_redirect(self, r, **kwargs): ...
37 def handle_401(self, r, **kwargs): ...
38 def __call__(self, r): ...
39 def init_per_thread_state(self) -> None: ...