Mercurial > code > home > repos > light9
annotate stubs/cyclone/web.pyi @ 1898:d3091e6dd1a0
more initial data for 2019 show
Ignore-this: 1bf5c652531d8653ae74528414b772ef
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 30 May 2019 17:14:11 +0000 |
parents | f65ed3b2231b |
children |
rev | line source |
---|---|
1863
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 # Stubs for cyclone.web (Python 3) |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 # |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 # NOTE: This dynamically typed stub was automatically generated by stubgen. |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 from twisted.internet import protocol |
1896 | 6 from typing import Any, List, Optional |
1892 | 7 from .httpserver import HTTPRequest |
1863
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 class RequestHandler: |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
10 SUPPORTED_METHODS: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
11 serialize_lists: bool = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
12 no_keep_alive: bool = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
13 xsrf_cookie_name: str = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
14 application: Any = ... |
1892 | 15 request: HTTPRequest = ... |
1863
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 path_args: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 path_kwargs: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 ui: Any = ... |
1892 | 19 def __init__(self, application: Any, request: HTTPRequest, **kwargs: Any) -> None: ... |
1863
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
20 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 @property |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
22 def settings(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
23 def default(self, *args: Any, **kwargs: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
24 def prepare(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
25 def on_finish(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
26 def on_connection_close(self, *args: Any, **kwargs: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
27 def clear(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
28 def set_default_headers(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
29 def set_status(self, status_code: Any, reason: Optional[Any] = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
30 def get_status(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
31 def set_header(self, name: Any, value: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
32 def add_header(self, name: Any, value: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
33 def clear_header(self, name: Any) -> None: ... |
1871 | 34 def get_argument(self, name: Any, default: Any = ..., strip: bool = ...) -> str: ... |
35 def get_arguments(self, name: Any, strip: bool = ...) -> List[str]: ... | |
1863
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
36 def decode_argument(self, value: Any, name: Optional[Any] = ...): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
37 @property |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
38 def cookies(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
39 def get_cookie(self, name: Any, default: Optional[Any] = ...): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
40 def set_cookie(self, name: Any, value: Any, domain: Optional[Any] = ..., expires: Optional[Any] = ..., path: str = ..., expires_days: Optional[Any] = ..., **kwargs: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
41 def clear_cookie(self, name: Any, path: str = ..., domain: Optional[Any] = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
42 def clear_all_cookies(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
43 def set_secure_cookie(self, name: Any, value: Any, expires_days: int = ..., **kwargs: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
44 def create_signed_value(self, name: Any, value: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
45 def get_secure_cookie(self, name: Any, value: Optional[Any] = ..., max_age_days: int = ...): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
46 def redirect(self, url: Any, permanent: bool = ..., status: Optional[Any] = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
47 def write(self, chunk: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
48 def render(self, template_name: Any, **kwargs: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
49 def render_string(self, template_name: Any, **kwargs: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
50 def get_template_namespace(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
51 def create_template_loader(self, template_path: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
52 def flush(self, include_footers: bool = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
53 def notifyFinish(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
54 def finish(self, chunk: Optional[Any] = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
55 def send_error(self, status_code: int = ..., **kwargs: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
56 def write_error(self, status_code: Any, **kwargs: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
57 @property |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
58 def locale(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
59 def get_user_locale(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
60 def get_browser_locale(self, default: str = ...): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
61 @property |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
62 def current_user(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
63 def get_current_user(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
64 def get_login_url(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
65 def get_template_path(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
66 @property |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
67 def xsrf_token(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
68 def check_xsrf_cookie(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
69 def xsrf_form_html(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
70 def static_url(self, path: Any, include_host: Optional[Any] = ...): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
71 def async_callback(self, callback: Any, *args: Any, **kwargs: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
72 def require_setting(self, name: Any, feature: str = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
73 def reverse_url(self, name: Any, *args: Any, **kwargs: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
74 def compute_etag(self): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
75 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
76 def asynchronous(method: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
77 def removeslash(method: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
78 def addslash(method: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
79 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
80 class Application(protocol.ServerFactory): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
81 protocol: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
82 transforms: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
83 handlers: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
84 named_handlers: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
85 error_handler: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
86 default_host: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
87 settings: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
88 ui_modules: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
89 ui_methods: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
90 def __init__(self, handlers: Optional[Any] = ..., default_host: str = ..., transforms: Optional[Any] = ..., error_handler: Optional[Any] = ..., **settings: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
91 def add_handlers(self, host_pattern: Any, host_handlers: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
92 def add_transform(self, transform_class: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
93 def __call__(self, request: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
94 def reverse_url(self, name: Any, *args: Any, **kwargs: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
95 def log_request(self, handler: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
96 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
97 class HTTPError(Exception): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
98 status_code: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
99 log_message: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
100 args: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
101 reason: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
102 def __init__(self, status_code: Any, log_message: Optional[Any] = ..., *args: Any, **kwargs: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
103 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
104 class HTTPAuthenticationRequired(HTTPError): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
105 status_code: int = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
106 log_message: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
107 auth_type: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
108 kwargs: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
109 def __init__(self, log_message: Optional[Any] = ..., auth_type: str = ..., realm: str = ..., **kwargs: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
110 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
111 class ErrorHandler(RequestHandler): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
112 def initialize(self, status_code: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
113 def prepare(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
114 def check_xsrf_cookie(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
115 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
116 class RedirectHandler(RequestHandler): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
117 def initialize(self, url: Any, permanent: bool = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
118 def get(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
119 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
120 class StaticFileHandler(RequestHandler): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
121 CACHE_MAX_AGE: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
122 root: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
123 default_filename: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
124 def initialize(self, path: Any, default_filename: Optional[Any] = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
125 @classmethod |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
126 def reset(cls) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
127 def head(self, path: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
128 def get(self, path: Any, include_body: bool = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
129 def set_extra_headers(self, path: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
130 def get_cache_time(self, path: Any, modified: Any, mime_type: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
131 @classmethod |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
132 def make_static_url(cls, settings: Any, path: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
133 @classmethod |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
134 def get_version(cls, settings: Any, path: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
135 def parse_url_path(self, url_path: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
136 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
137 class FallbackHandler(RequestHandler): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
138 fallback: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
139 def initialize(self, fallback: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
140 def prepare(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
141 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
142 class OutputTransform: |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
143 def __init__(self, request: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
144 def transform_first_chunk(self, status_code: Any, headers: Any, chunk: Any, finishing: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
145 def transform_chunk(self, chunk: Any, finishing: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
146 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
147 class GZipContentEncoding(OutputTransform): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
148 CONTENT_TYPES: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
149 MIN_LENGTH: int = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
150 def __init__(self, request: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
151 def transform_first_chunk(self, status_code: Any, headers: Any, chunk: Any, finishing: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
152 def transform_chunk(self, chunk: Any, finishing: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
153 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
154 class ChunkedTransferEncoding(OutputTransform): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
155 def __init__(self, request: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
156 def transform_first_chunk(self, status_code: Any, headers: Any, chunk: Any, finishing: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
157 def transform_chunk(self, block: Any, finishing: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
158 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
159 def authenticated(method: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
160 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
161 class URLReverseError(Exception): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
162 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
163 class URLSpec: |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
164 regex: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
165 handler_class: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
166 kwargs: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
167 name: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
168 def __init__(self, pattern: Any, handler_class: Any, kwargs: Optional[Any] = ..., name: Optional[Any] = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
169 def reverse(self, *args: Any, **kwargs: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
170 url = URLSpec |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
171 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
172 def create_signed_value(secret: Any, name: Any, value: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
173 def decode_signed_value(secret: Any, name: Any, value: Any, max_age_days: int = ...): ... |