feat(models): Added RequestModel

RequestModel consists of http response data
class RequestModel:
    method: str     # http method
    path: str       # url path
    headers: dict   # type of info to send
    body: dict      # request body data
    timeout: int    # timeout
This commit is contained in:
Black_Raven committed 2026-08-24 15:26:32 +03:00
1 parent 8e68fb9008
commit bfd6c6d961
1 file changed
+10
+10
View File
@@ -1,3 +1,13 @@
class RequestModel(BaseModel):
method: str = "GET"
path: str = "/"
headers: dict[str, str] = {}
query: dict[str, str] = {}
body: dict[str, Any] | str | None = None
body_type: str = "json"
timeout: int = 30
class StepModel(BaseModel): class StepModel(BaseModel):
name: str name: str
request: RequestModel request: RequestModel