blob: 9052a0e8bcd6d623e43981bab27044f18a70b62d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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 MemoryConnection(TypedDict):
requests: Queue[RequestData]
responses: Queue[ResponseData]
|