nova-api/api/apihandler.py

14 lines
325 B
Python
Raw Normal View History

2023-07-25 19:45:21 +02:00
from typing import Union, Optional
class Request:
def __init__(self,
method: str,
url: str,
json_payload: Optional[Union[dict, list]]=None,
headers: dict=None
):
self.method = method
self.url = url
self.json = json_payload
self.headers = headers or {}