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
1 from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
2 from typing import Iterable
3
4 class ProxyFix(object):
5     app: WSGIApplication
6     x_for: int
7     x_proto: int
8     x_host: int
9     x_port: int
10     x_prefix: int
11     num_proxies: int
12     def __init__(
13         self,
14         app: WSGIApplication,
15         num_proxies: int | None = ...,
16         x_for: int = ...,
17         x_proto: int = ...,
18         x_host: int = ...,
19         x_port: int = ...,
20         x_prefix: int = ...,
21     ) -> None: ...
22     def get_remote_addr(self, forwarded_for: Iterable[str]) -> str | None: ...
23     def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...