http_utils Module

Functions

delete_async_request

Delete the data from the url provided.

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

Parameters

Name Description
url
Required
str

url to delete the data from

Returns

Type Description
[int, Any]

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

get_async_request

Get the data from the url provided.

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

Parameters

Name Description
url
Required
str

url to get the data from

Returns

Type Description
[int, Any]

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

post_async_request

Post request with the data provided to the url provided.

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

Parameters

Name Description
url
Required
str

url to make the post to

data
Any

object to post

Default value: None

Returns

Type Description
[int, Any]

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