SlyAPI.web#
Functions
|
Classes
Exceptions
|
- class SlyAPI.web.Method(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
- GET = 'GET'#
- POST = 'POST'#
- PUT = 'PUT'#
- DELETE = 'DELETE'#
- PATCH = 'PATCH'#
- class SlyAPI.web.Request(method: SlyAPI.web.Method, url: str, query_params: dict[str, str | int] = <factory>, headers: dict[str, str] = <factory>, data: dict[str, int | float | bool | str | None | list['JsonType'] | dict[str, 'JsonType']] | aiohttp.formdata.FormData = <factory>, data_is_json: bool = False)[source]#
Bases:
object
- Parameters:
method (Method) –
url (str) –
data (dict[str, int | float | bool | str | None | list[int | float | bool | str | None | list[ForwardRef('JsonType')] | dict[str, ForwardRef('JsonType')]] | dict[str, int | float | bool | str | None | list[ForwardRef('JsonType')] | dict[str, ForwardRef('JsonType')]]] | FormData) –
data_is_json (bool) –
- data: dict[str, int | float | bool | str | None | list[int | float | bool | str | None | list[ForwardRef('JsonType')] | dict[str, ForwardRef('JsonType')]] | dict[str, int | float | bool | str | None | list[ForwardRef('JsonType')] | dict[str, ForwardRef('JsonType')]]] | ~aiohttp.formdata.FormData#