mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 20:33:58 +01:00
14 lines
325 B
Python
14 lines
325 B
Python
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 {}
|