1 from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
2 from typing import Any, Iterable, Mapping, MutableMapping, Text
4 _Opts = Mapping[Text, Any]
5 _MutableOpts = MutableMapping[Text, Any]
7 class ProxyMiddleware(object):
9 targets: dict[Text, _MutableOpts]
11 self, app: WSGIApplication, targets: Mapping[Text, _MutableOpts], chunk_size: int = ..., timeout: int = ...
13 def proxy_to(self, opts: _Opts, path: Text, prefix: Text) -> WSGIApplication: ...
14 def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...