massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2 / tornado / web.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2/tornado/web.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2/tornado/web.pyi
new file mode 100644 (file)
index 0000000..4cc5e81
--- /dev/null
@@ -0,0 +1,257 @@
+from typing import Any\r
+from tornado import httputil\r
+\r
+MIN_SUPPORTED_SIGNED_VALUE_VERSION = ...  # type: Any\r
+MAX_SUPPORTED_SIGNED_VALUE_VERSION = ...  # type: Any\r
+DEFAULT_SIGNED_VALUE_VERSION = ...  # type: Any\r
+DEFAULT_SIGNED_VALUE_MIN_VERSION = ...  # type: Any\r
+\r
+class RequestHandler:\r
+    SUPPORTED_METHODS = ...  # type: Any\r
+    application = ...  # type: Any\r
+    request = ...  # type: Any\r
+    path_args = ...  # type: Any\r
+    path_kwargs = ...  # type: Any\r
+    ui = ...  # type: Any\r
+    def __init__(self, application, request, **kwargs) -> None: ...\r
+    def initialize(self): ...\r
+    @property\r
+    def settings(self): ...\r
+    def head(self, *args, **kwargs): ...\r
+    def get(self, *args, **kwargs): ...\r
+    def post(self, *args, **kwargs): ...\r
+    def delete(self, *args, **kwargs): ...\r
+    def patch(self, *args, **kwargs): ...\r
+    def put(self, *args, **kwargs): ...\r
+    def options(self, *args, **kwargs): ...\r
+    def prepare(self): ...\r
+    def on_finish(self): ...\r
+    def on_connection_close(self): ...\r
+    def clear(self): ...\r
+    def set_default_headers(self): ...\r
+    def set_status(self, status_code, reason=...): ...\r
+    def get_status(self): ...\r
+    def set_header(self, name, value): ...\r
+    def add_header(self, name, value): ...\r
+    def clear_header(self, name): ...\r
+    def get_argument(self, name, default=..., strip=...): ...\r
+    def get_arguments(self, name, strip=...): ...\r
+    def get_body_argument(self, name, default=..., strip=...): ...\r
+    def get_body_arguments(self, name, strip=...): ...\r
+    def get_query_argument(self, name, default=..., strip=...): ...\r
+    def get_query_arguments(self, name, strip=...): ...\r
+    def decode_argument(self, value, name=...): ...\r
+    @property\r
+    def cookies(self): ...\r
+    def get_cookie(self, name, default=...): ...\r
+    def set_cookie(self, name, value, domain=..., expires=..., path=..., expires_days=..., **kwargs): ...\r
+    def clear_cookie(self, name, path=..., domain=...): ...\r
+    def clear_all_cookies(self, path=..., domain=...): ...\r
+    def set_secure_cookie(self, name, value, expires_days=..., version=..., **kwargs): ...\r
+    def create_signed_value(self, name, value, version=...): ...\r
+    def get_secure_cookie(self, name, value=..., max_age_days=..., min_version=...): ...\r
+    def get_secure_cookie_key_version(self, name, value=...): ...\r
+    def redirect(self, url, permanent=..., status=...): ...\r
+    def write(self, chunk): ...\r
+    def render(self, template_name, **kwargs): ...\r
+    def render_string(self, template_name, **kwargs): ...\r
+    def get_template_namespace(self): ...\r
+    def create_template_loader(self, template_path): ...\r
+    def flush(self, include_footers=..., callback=...): ...\r
+    def finish(self, chunk=...): ...\r
+    def send_error(self, status_code=..., **kwargs): ...\r
+    def write_error(self, status_code, **kwargs): ...\r
+    @property\r
+    def locale(self): ...\r
+    @locale.setter\r
+    def locale(self, value): ...\r
+    def get_user_locale(self): ...\r
+    def get_browser_locale(self, default=...): ...\r
+    @property\r
+    def current_user(self): ...\r
+    @current_user.setter\r
+    def current_user(self, value): ...\r
+    def get_current_user(self): ...\r
+    def get_login_url(self): ...\r
+    def get_template_path(self): ...\r
+    @property\r
+    def xsrf_token(self): ...\r
+    def check_xsrf_cookie(self): ...\r
+    def xsrf_form_html(self): ...\r
+    def static_url(self, path, include_host=..., **kwargs): ...\r
+    def require_setting(self, name, feature=...): ...\r
+    def reverse_url(self, name, *args): ...\r
+    def compute_etag(self): ...\r
+    def set_etag_header(self): ...\r
+    def check_etag_header(self): ...\r
+    def data_received(self, chunk): ...\r
+    def log_exception(self, typ, value, tb): ...\r
+\r
+def asynchronous(method): ...\r
+def stream_request_body(cls): ...\r
+def removeslash(method): ...\r
+def addslash(method): ...\r
+\r
+class Application(httputil.HTTPServerConnectionDelegate):\r
+    transforms = ...  # type: Any\r
+    handlers = ...  # type: Any\r
+    named_handlers = ...  # type: Any\r
+    default_host = ...  # type: Any\r
+    settings = ...  # type: Any\r
+    ui_modules = ...  # type: Any\r
+    ui_methods = ...  # type: Any\r
+    def __init__(self, handlers=..., default_host=..., transforms=..., **settings) -> None: ...\r
+    def listen(self, port, address=..., **kwargs): ...\r
+    def add_handlers(self, host_pattern, host_handlers): ...\r
+    def add_transform(self, transform_class): ...\r
+    def start_request(self, server_conn, request_conn): ...\r
+    def __call__(self, request): ...\r
+    def reverse_url(self, name, *args): ...\r
+    def log_request(self, handler): ...\r
+\r
+class _RequestDispatcher(httputil.HTTPMessageDelegate):\r
+    application = ...  # type: Any\r
+    connection = ...  # type: Any\r
+    request = ...  # type: Any\r
+    chunks = ...  # type: Any\r
+    handler_class = ...  # type: Any\r
+    handler_kwargs = ...  # type: Any\r
+    path_args = ...  # type: Any\r
+    path_kwargs = ...  # type: Any\r
+    def __init__(self, application, connection) -> None: ...\r
+    def headers_received(self, start_line, headers): ...\r
+    stream_request_body = ...  # type: Any\r
+    def set_request(self, request): ...\r
+    def data_received(self, data): ...\r
+    def finish(self): ...\r
+    def on_connection_close(self): ...\r
+    handler = ...  # type: Any\r
+    def execute(self): ...\r
+\r
+class HTTPError(Exception):\r
+    status_code = ...  # type: Any\r
+    log_message = ...  # type: Any\r
+    args = ...  # type: Any\r
+    reason = ...  # type: Any\r
+    def __init__(self, status_code, log_message=..., *args, **kwargs) -> None: ...\r
+\r
+class Finish(Exception): ...\r
+\r
+class MissingArgumentError(HTTPError):\r
+    arg_name = ...  # type: Any\r
+    def __init__(self, arg_name) -> None: ...\r
+\r
+class ErrorHandler(RequestHandler):\r
+    def initialize(self, status_code): ...\r
+    def prepare(self): ...\r
+    def check_xsrf_cookie(self): ...\r
+\r
+class RedirectHandler(RequestHandler):\r
+    def initialize(self, url, permanent=...): ...\r
+    def get(self): ...\r
+\r
+class StaticFileHandler(RequestHandler):\r
+    CACHE_MAX_AGE = ...  # type: Any\r
+    root = ...  # type: Any\r
+    default_filename = ...  # type: Any\r
+    def initialize(self, path, default_filename=...): ...\r
+    @classmethod\r
+    def reset(cls): ...\r
+    def head(self, path): ...\r
+    path = ...  # type: Any\r
+    absolute_path = ...  # type: Any\r
+    modified = ...  # type: Any\r
+    def get(self, path, include_body=...): ...\r
+    def compute_etag(self): ...\r
+    def set_headers(self): ...\r
+    def should_return_304(self): ...\r
+    @classmethod\r
+    def get_absolute_path(cls, root, path): ...\r
+    def validate_absolute_path(self, root, absolute_path): ...\r
+    @classmethod\r
+    def get_content(cls, abspath, start=..., end=...): ...\r
+    @classmethod\r
+    def get_content_version(cls, abspath): ...\r
+    def get_content_size(self): ...\r
+    def get_modified_time(self): ...\r
+    def get_content_type(self): ...\r
+    def set_extra_headers(self, path): ...\r
+    def get_cache_time(self, path, modified, mime_type): ...\r
+    @classmethod\r
+    def make_static_url(cls, settings, path, include_version=...): ...\r
+    def parse_url_path(self, url_path): ...\r
+    @classmethod\r
+    def get_version(cls, settings, path): ...\r
+\r
+class FallbackHandler(RequestHandler):\r
+    fallback = ...  # type: Any\r
+    def initialize(self, fallback): ...\r
+    def prepare(self): ...\r
+\r
+class OutputTransform:\r
+    def __init__(self, request) -> None: ...\r
+    def transform_first_chunk(self, status_code, headers, chunk, finishing): ...\r
+    def transform_chunk(self, chunk, finishing): ...\r
+\r
+class GZipContentEncoding(OutputTransform):\r
+    CONTENT_TYPES = ...  # type: Any\r
+    MIN_LENGTH = ...  # type: Any\r
+    def __init__(self, request) -> None: ...\r
+    def transform_first_chunk(self, status_code, headers, chunk, finishing): ...\r
+    def transform_chunk(self, chunk, finishing): ...\r
+\r
+def authenticated(method): ...\r
+\r
+class UIModule:\r
+    handler = ...  # type: Any\r
+    request = ...  # type: Any\r
+    ui = ...  # type: Any\r
+    locale = ...  # type: Any\r
+    def __init__(self, handler) -> None: ...\r
+    @property\r
+    def current_user(self): ...\r
+    def render(self, *args, **kwargs): ...\r
+    def embedded_javascript(self): ...\r
+    def javascript_files(self): ...\r
+    def embedded_css(self): ...\r
+    def css_files(self): ...\r
+    def html_head(self): ...\r
+    def html_body(self): ...\r
+    def render_string(self, path, **kwargs): ...\r
+\r
+class _linkify(UIModule):\r
+    def render(self, text, **kwargs): ...\r
+\r
+class _xsrf_form_html(UIModule):\r
+    def render(self): ...\r
+\r
+class TemplateModule(UIModule):\r
+    def __init__(self, handler) -> None: ...\r
+    def render(self, path, **kwargs): ...\r
+    def embedded_javascript(self): ...\r
+    def javascript_files(self): ...\r
+    def embedded_css(self): ...\r
+    def css_files(self): ...\r
+    def html_head(self): ...\r
+    def html_body(self): ...\r
+\r
+class _UIModuleNamespace:\r
+    handler = ...  # type: Any\r
+    ui_modules = ...  # type: Any\r
+    def __init__(self, handler, ui_modules) -> None: ...\r
+    def __getitem__(self, key): ...\r
+    def __getattr__(self, key): ...\r
+\r
+class URLSpec:\r
+    regex = ...  # type: Any\r
+    handler_class = ...  # type: Any\r
+    kwargs = ...  # type: Any\r
+    name = ...  # type: Any\r
+    def __init__(self, pattern, handler, kwargs=..., name=...) -> None: ...\r
+    def reverse(self, *args): ...\r
+\r
+url = ...  # type: Any\r
+\r
+def create_signed_value(secret, name, value, version=..., clock=..., key_version=...): ...\r
+def decode_signed_value(secret, name, value, max_age_days=..., clock=..., min_version=...): ...\r
+def get_signature_key_version(value): ...\r