massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Werkzeug / werkzeug / contrib / fixers.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/Werkzeug/werkzeug/contrib/fixers.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/Werkzeug/werkzeug/contrib/fixers.pyi
new file mode 100644 (file)
index 0000000..17912b8
--- /dev/null
@@ -0,0 +1,35 @@
+from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
+from typing import Any, Iterable, Mapping, Text
+
+from ..middleware.proxy_fix import ProxyFix as ProxyFix
+
+class CGIRootFix(object):
+    app: WSGIApplication
+    app_root: Text
+    def __init__(self, app: WSGIApplication, app_root: Text = ...) -> None: ...
+    def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
+
+class LighttpdCGIRootFix(CGIRootFix): ...
+
+class PathInfoFromRequestUriFix(object):
+    app: WSGIApplication
+    def __init__(self, app: WSGIApplication) -> None: ...
+    def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
+
+class HeaderRewriterFix(object):
+    app: WSGIApplication
+    remove_headers: set[Text]
+    add_headers: list[Text]
+    def __init__(
+        self, app: WSGIApplication, remove_headers: Iterable[Text] | None = ..., add_headers: Iterable[Text] | None = ...
+    ) -> None: ...
+    def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
+
+class InternetExplorerFix(object):
+    app: WSGIApplication
+    fix_vary: bool
+    fix_attach: bool
+    def __init__(self, app: WSGIApplication, fix_vary: bool = ..., fix_attach: bool = ...) -> None: ...
+    def fix_headers(self, environ: WSGIEnvironment, headers: Mapping[str, str], status: Any | None = ...) -> None: ...
+    def run_fixed(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
+    def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...