REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.68 KB
Close
//lib64/python3.12/wsgiref/types.py
Text
Base64
"""WSGI-related types for static type checking""" from collections.abc import Callable, Iterable, Iterator from types import TracebackType from typing import Any, Protocol, TypeAlias __all__ = [ "StartResponse", "WSGIEnvironment", "WSGIApplication", "InputStream", "ErrorStream", "FileWrapper", ] _ExcInfo: TypeAlias = tuple[type[BaseException], BaseException, TracebackType] _OptExcInfo: TypeAlias = _ExcInfo | tuple[None, None, None] class StartResponse(Protocol): """start_response() callable as defined in PEP 3333""" def __call__( self, status: str, headers: list[tuple[str, str]], exc_info: _OptExcInfo | None = ..., /, ) -> Callable[[bytes], object]: ... WSGIEnvironment: TypeAlias = dict[str, Any] WSGIApplication: TypeAlias = Callable[[WSGIEnvironment, StartResponse], Iterable[bytes]] class InputStream(Protocol): """WSGI input stream as defined in PEP 3333""" def read(self, size: int = ..., /) -> bytes: ... def readline(self, size: int = ..., /) -> bytes: ... def readlines(self, hint: int = ..., /) -> list[bytes]: ... def __iter__(self) -> Iterator[bytes]: ... class ErrorStream(Protocol): """WSGI error stream as defined in PEP 3333""" def flush(self) -> object: ... def write(self, s: str, /) -> object: ... def writelines(self, seq: list[str], /) -> object: ... class _Readable(Protocol): def read(self, size: int = ..., /) -> bytes: ... # Optional: def close(self) -> object: ... class FileWrapper(Protocol): """WSGI file wrapper as defined in PEP 3333""" def __call__( self, file: _Readable, block_size: int = ..., /, ) -> Iterable[bytes]: ...
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__pycache__
DIR
-
drwxr-xr-x
2026-07-17 02:18:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
handlers.py
21.16 KB
lrw-r--r--
2026-03-03 12:39:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
headers.py
7.20 KB
lrw-r--r--
2026-03-03 12:39:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
simple_server.py
5.05 KB
lrw-r--r--
2026-03-03 12:39:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
types.py
1.68 KB
lrw-r--r--
2026-03-03 12:39:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
util.py
5.34 KB
lrw-r--r--
2026-03-03 12:39:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
validate.py
14.68 KB
lrw-r--r--
2026-03-03 12:39:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
657 B
lrw-r--r--
2026-03-03 12:39:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).