From b104bb54714fa594be8aec3cb3bfda6a062eb15b Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Mon, 7 Feb 2022 21:44:48 +0100 Subject: Headers are now a list of tuples --- ttun_server/types.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ttun_server/types.py') diff --git a/ttun_server/types.py b/ttun_server/types.py index 9052a0e..643ff21 100644 --- a/ttun_server/types.py +++ b/ttun_server/types.py @@ -8,15 +8,13 @@ class Config(TypedDict): class RequestData(TypedDict): method: str path: str - headers: dict - cookies: dict + headers: list[tuple[str, str]] body: Optional[str] class ResponseData(TypedDict): status: int - headers: dict - cookies: dict + headers: list[tuple[str, str]] body: Optional[str] -- cgit v1.2.3