massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / wsgiref / util.pyi
1 import sys\r
2 from typing import IO, Any, Optional\r
3 \r
4 from .types import WSGIEnvironment\r
5 \r
6 class FileWrapper:\r
7     filelike: IO[bytes]\r
8     blksize: int\r
9     def __init__(self, filelike: IO[bytes], bklsize: int = ...) -> None: ...\r
10     def __getitem__(self, key: Any) -> bytes: ...\r
11     def __iter__(self) -> FileWrapper: ...\r
12     if sys.version_info < (3,):\r
13         def next(self) -> bytes: ...\r
14     else:\r
15         def __next__(self) -> bytes: ...\r
16     def close(self) -> None: ...  # only exists if filelike.close exists\r
17 \r
18 def guess_scheme(environ: WSGIEnvironment) -> str: ...\r
19 def application_uri(environ: WSGIEnvironment) -> str: ...\r
20 def request_uri(environ: WSGIEnvironment, include_query: bool = ...) -> str: ...\r
21 def shift_path_info(environ: WSGIEnvironment) -> Optional[str]: ...\r
22 def setup_testing_defaults(environ: WSGIEnvironment) -> None: ...\r
23 def is_hop_by_hop(header_name: str) -> bool: ...\r