Shared servers state that is available between all protocol instances.
| 42 | |
| 43 | |
| 44 | class ServerState: |
| 45 | class="st">""" |
| 46 | Shared servers state that is available between all protocol instances. |
| 47 | class="st">""" |
| 48 | |
| 49 | def __init__(self) -> None: |
| 50 | self.total_requests = 0 |
| 51 | self.connections: set[Protocols] = set() |
| 52 | self.tasks: set[asyncio.Task[None]] = set() |
| 53 | self.default_headers: list[tuple[bytes, bytes]] = [] |
| 54 | |
| 55 | |
| 56 | class Server: |
no outgoing calls