Refactor request data handling and update unit tests

This commit is contained in:
sHa
2024-03-22 09:26:15 +02:00
parent 367603a0d6
commit 81bb8398f0
4 changed files with 47 additions and 18 deletions

View File

@@ -3,8 +3,12 @@ from schema.methods import Methods
class RequestData(BaseModel):
data: dict
method: Methods = Methods.GET
data: dict = {}
params: dict = {}
form: dict = {}
url: str
headers: dict
headers: dict = {}
cookies: dict = {}
http_version: str = ""
time: str