massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / requests / auth.pyi
1 # Stubs for requests.auth (Python 3)\r
2 \r
3 from typing import Any, Text, Union\r
4 from . import compat\r
5 from . import cookies\r
6 from . import models\r
7 from . import utils\r
8 from . import status_codes\r
9 \r
10 extract_cookies_to_jar = cookies.extract_cookies_to_jar\r
11 parse_dict_header = utils.parse_dict_header\r
12 to_native_string = utils.to_native_string\r
13 codes = status_codes.codes\r
14 \r
15 CONTENT_TYPE_FORM_URLENCODED = ...  # type: Any\r
16 CONTENT_TYPE_MULTI_PART = ...  # type: Any\r
17 \r
18 def _basic_auth_str(username: Union[bytes, Text], password: Union[bytes, Text]) -> str: ...\r
19 \r
20 class AuthBase:\r
21     def __call__(self, r: models.Request) -> models.Request: ...\r
22 \r
23 class HTTPBasicAuth(AuthBase):\r
24     username = ...  # type: Any\r
25     password = ...  # type: Any\r
26     def __init__(self, username, password) -> None: ...\r
27     def __call__(self, r): ...\r
28 \r
29 class HTTPProxyAuth(HTTPBasicAuth):\r
30     def __call__(self, r): ...\r
31 \r
32 class HTTPDigestAuth(AuthBase):\r
33     username = ...  # type: Any\r
34     password = ...  # type: Any\r
35     last_nonce = ...  # type: Any\r
36     nonce_count = ...  # type: Any\r
37     chal = ...  # type: Any\r
38     pos = ...  # type: Any\r
39     num_401_calls = ...  # type: Any\r
40     def __init__(self, username, password) -> None: ...\r
41     def build_digest_header(self, method, url): ...\r
42     def handle_redirect(self, r, **kwargs): ...\r
43     def handle_401(self, r, **kwargs): ...\r
44     def __call__(self, r): ...\r