massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Werkzeug / werkzeug / middleware / http_proxy.pyi
1 from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
2 from typing import Any, Iterable, Mapping, MutableMapping, Text
3
4 _Opts = Mapping[Text, Any]
5 _MutableOpts = MutableMapping[Text, Any]
6
7 class ProxyMiddleware(object):
8     app: WSGIApplication
9     targets: dict[Text, _MutableOpts]
10     def __init__(
11         self, app: WSGIApplication, targets: Mapping[Text, _MutableOpts], chunk_size: int = ..., timeout: int = ...
12     ) -> None: ...
13     def proxy_to(self, opts: _Opts, path: Text, prefix: Text) -> WSGIApplication: ...
14     def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...