1 from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
2 from typing import Any, Iterable, Mapping, Text
4 from ..middleware.proxy_fix import ProxyFix as ProxyFix
6 class CGIRootFix(object):
9 def __init__(self, app: WSGIApplication, app_root: Text = ...) -> None: ...
10 def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
12 class LighttpdCGIRootFix(CGIRootFix): ...
14 class PathInfoFromRequestUriFix(object):
16 def __init__(self, app: WSGIApplication) -> None: ...
17 def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
19 class HeaderRewriterFix(object):
21 remove_headers: set[Text]
22 add_headers: list[Text]
24 self, app: WSGIApplication, remove_headers: Iterable[Text] | None = ..., add_headers: Iterable[Text] | None = ...
26 def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
28 class InternetExplorerFix(object):
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]: ...