diff options
| author | 2022-02-07 21:44:48 +0100 | |
|---|---|---|
| committer | 2022-02-07 21:44:48 +0100 | |
| commit | b104bb54714fa594be8aec3cb3bfda6a062eb15b (patch) | |
| tree | 471c7d5d5b59b8fb6a5cb5fc8c7e81f38f9e51e0 /ttun_server/types.py | |
| parent | e2843181eb5b6d5594d8e63a8406e8509b1dfbfe (diff) | |
| download | server-1.1.1.tar.gz server-1.1.1.tar.bz2 server-1.1.1.zip | |
Headers are now a list of tuplesv1.1.1
Diffstat (limited to 'ttun_server/types.py')
| -rw-r--r-- | ttun_server/types.py | 6 |
1 files changed, 2 insertions, 4 deletions
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): | |||
| 8 | class RequestData(TypedDict): | 8 | class RequestData(TypedDict): |
| 9 | method: str | 9 | method: str |
| 10 | path: str | 10 | path: str |
| 11 | headers: dict | 11 | headers: list[tuple[str, str]] |
| 12 | cookies: dict | ||
| 13 | body: Optional[str] | 12 | body: Optional[str] |
| 14 | 13 | ||
| 15 | 14 | ||
| 16 | class ResponseData(TypedDict): | 15 | class ResponseData(TypedDict): |
| 17 | status: int | 16 | status: int |
| 18 | headers: dict | 17 | headers: list[tuple[str, str]] |
| 19 | cookies: dict | ||
| 20 | body: Optional[str] | 18 | body: Optional[str] |
| 21 | 19 | ||
| 22 | 20 | ||
