massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / requests / requests / auth.pyi
1 from typing import Any, Text
2
3 from . import cookies, models, utils
4
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
8
9 CONTENT_TYPE_FORM_URLENCODED: Any
10 CONTENT_TYPE_MULTI_PART: Any
11
12 def _basic_auth_str(username: bytes | Text, password: bytes | Text) -> str: ...
13
14 class AuthBase:
15     def __call__(self, r: models.PreparedRequest) -> models.PreparedRequest: ...
16
17 class HTTPBasicAuth(AuthBase):
18     username: Any
19     password: Any
20     def __init__(self, username, password) -> None: ...
21     def __call__(self, r): ...
22
23 class HTTPProxyAuth(HTTPBasicAuth):
24     def __call__(self, r): ...
25
26 class 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: ...