massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Werkzeug / werkzeug / middleware / proxy_fix.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/Werkzeug/werkzeug/middleware/proxy_fix.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/Werkzeug/werkzeug/middleware/proxy_fix.pyi
new file mode 100644 (file)
index 0000000..3d166e6
--- /dev/null
@@ -0,0 +1,23 @@
+from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
+from typing import Iterable
+
+class ProxyFix(object):
+    app: WSGIApplication
+    x_for: int
+    x_proto: int
+    x_host: int
+    x_port: int
+    x_prefix: int
+    num_proxies: int
+    def __init__(
+        self,
+        app: WSGIApplication,
+        num_proxies: int | None = ...,
+        x_for: int = ...,
+        x_proto: int = ...,
+        x_host: int = ...,
+        x_port: int = ...,
+        x_prefix: int = ...,
+    ) -> None: ...
+    def get_remote_addr(self, forwarded_for: Iterable[str]) -> str | None: ...
+    def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...