massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / werkzeug / contrib / sessions.pyi
1 from typing import Any\r
2 from werkzeug.datastructures import CallbackDict\r
3 \r
4 def generate_key(salt=None): ...\r
5 \r
6 class ModificationTrackingDict(CallbackDict):\r
7     modified = ...  # type: Any\r
8     def __init__(self, *args, **kwargs): ...\r
9     def copy(self): ...\r
10     def __copy__(self): ...\r
11 \r
12 class Session(ModificationTrackingDict):\r
13     sid = ...  # type: Any\r
14     new = ...  # type: Any\r
15     def __init__(self, data, sid, new=False): ...\r
16     @property\r
17     def should_save(self): ...\r
18 \r
19 class SessionStore:\r
20     session_class = ...  # type: Any\r
21     def __init__(self, session_class=None): ...\r
22     def is_valid_key(self, key): ...\r
23     def generate_key(self, salt=None): ...\r
24     def new(self): ...\r
25     def save(self, session): ...\r
26     def save_if_modified(self, session): ...\r
27     def delete(self, session): ...\r
28     def get(self, sid): ...\r
29 \r
30 class FilesystemSessionStore(SessionStore):\r
31     path = ...  # type: Any\r
32     filename_template = ...  # type: Any\r
33     renew_missing = ...  # type: Any\r
34     mode = ...  # type: Any\r
35     def __init__(self, path=None, filename_template='', session_class=None, renew_missing=False, mode=420): ...\r
36     def get_session_filename(self, sid): ...\r
37     def save(self, session): ...\r
38     def delete(self, session): ...\r
39     def get(self, sid): ...\r
40     def list(self): ...\r
41 \r
42 class SessionMiddleware:\r
43     app = ...  # type: Any\r
44     store = ...  # type: Any\r
45     cookie_name = ...  # type: Any\r
46     cookie_age = ...  # type: Any\r
47     cookie_expires = ...  # type: Any\r
48     cookie_path = ...  # type: Any\r
49     cookie_domain = ...  # type: Any\r
50     cookie_secure = ...  # type: Any\r
51     cookie_httponly = ...  # type: Any\r
52     environ_key = ...  # type: Any\r
53     def __init__(self, app, store, cookie_name='', cookie_age=None, cookie_expires=None, cookie_path='', cookie_domain=None, cookie_secure=None, cookie_httponly=False, environ_key=''): ...\r
54     def __call__(self, environ, start_response): ...\r