http_utils Module

Functions

delete_async_request

Delete the data from the url provided.

async delete_async_request(url: str) -> List[Union[int, Any]]

Parameters

url
str
Required

url to delete the data from

Returns

Tuple with the Response status code and the data returned from the request

Return type

[int, <xref:Any>]

get_async_request

Get the data from the url provided.

async get_async_request(url: str) -> List[Any]

Parameters

url
str
Required

url to get the data from

Returns

Tuple with the Response status code and the data returned from the request

Return type

[int, <xref:Any>]

post_async_request

Post request with the data provided to the url provided.

async post_async_request(url: str, data: Optional[Any] = None) -> List[Union[int, Any]]

Parameters

url
str
Required

url to make the post to

data
<xref:Any>
default value: None

object to post

Returns

Tuple with the Response status code and the data returned from the request

Return type

[int, <xref:Any>]