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
1 from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
2 from typing import Any, Iterable, Mapping, Text
3
4 from ..middleware.proxy_fix import ProxyFix as ProxyFix
5
6 class CGIRootFix(object):
7     app: WSGIApplication
8     app_root: Text
9     def __init__(self, app: WSGIApplication, app_root: Text = ...) -> None: ...
10     def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
11
12 class LighttpdCGIRootFix(CGIRootFix): ...
13
14 class PathInfoFromRequestUriFix(object):
15     app: WSGIApplication
16     def __init__(self, app: WSGIApplication) -> None: ...
17     def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
18
19 class HeaderRewriterFix(object):
20     app: WSGIApplication
21     remove_headers: set[Text]
22     add_headers: list[Text]
23     def __init__(
24         self, app: WSGIApplication, remove_headers: Iterable[Text] | None = ..., add_headers: Iterable[Text] | None = ...
25     ) -> None: ...
26     def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
27
28 class InternetExplorerFix(object):
29     app: WSGIApplication
30     fix_vary: bool
31     fix_attach: bool
32     def __init__(self, app: WSGIApplication, fix_vary: bool = ..., fix_attach: bool = ...) -> None: ...
33     def fix_headers(self, environ: WSGIEnvironment, headers: Mapping[str, str], status: Any | None = ...) -> None: ...
34     def run_fixed(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
35     def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...