1from typing import Any, Text 2 3from . import cookies, models, utils 4 5extract_cookies_to_jar = cookies.extract_cookies_to_jar 6parse_dict_header = utils.parse_dict_header 7to_native_string = utils.to_native_string 8 9CONTENT_TYPE_FORM_URLENCODED: Any 10CONTENT_TYPE_MULTI_PART: Any 11 12def _basic_auth_str(username: bytes | Text, password: bytes | Text) -> str: ... 13 14class AuthBase: 15 def __call__(self, r: models.PreparedRequest) -> models.PreparedRequest: ... 16 17class HTTPBasicAuth(AuthBase): 18 username: Any 19 password: Any 20 def __init__(self, username, password) -> None: ... 21 def __call__(self, r): ... 22 23class HTTPProxyAuth(HTTPBasicAuth): 24 def __call__(self, r): ... 25 26class HTTPDigestAuth(AuthBase): 27 username: Any 28 password: Any 29 last_nonce: Any 30 nonce_count: Any 31 chal: Any 32 pos: Any 33 num_401_calls: Any 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: ... 40