from asyncio import Queue from typing import TypedDict, Optional class Config(TypedDict): subdomain: str class RequestData(TypedDict): method: str path: str headers: dict cookies: dict body: Optional[str] class ResponseData(TypedDict): status: int headers: dict cookies: dict body: Optional[str] class Connection(TypedDict): requests: Queue[RequestData] responses: Queue[ResponseData]