--- /dev/null
+from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
+from typing import Any, Iterable, Mapping, MutableMapping, Text
+
+_Opts = Mapping[Text, Any]
+_MutableOpts = MutableMapping[Text, Any]
+
+class ProxyMiddleware(object):
+ app: WSGIApplication
+ targets: dict[Text, _MutableOpts]
+ def __init__(
+ self, app: WSGIApplication, targets: Mapping[Text, _MutableOpts], chunk_size: int = ..., timeout: int = ...
+ ) -> None: ...
+ def proxy_to(self, opts: _Opts, path: Text, prefix: Text) -> WSGIApplication: ...
+ def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...