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:
1 parent
8e68fb9008
commit
bfd6c6d961
1 file changed
+10
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user