summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ATRI/utils/request.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ATRI/utils/request.py b/ATRI/utils/request.py
index 8310116..28640c6 100644
--- a/ATRI/utils/request.py
+++ b/ATRI/utils/request.py
@@ -23,3 +23,9 @@ async def post(url: str, **kwargs):
log.debug(f"POST {url} by {proxy if proxy else 'No proxy'} | MORE: \n {kwargs}")
async with httpx.AsyncClient(proxies=proxy, timeout=timeout) as client: # type: ignore
return await client.post(url, **kwargs)
+
+
+async def delete(url: str, **kwargs):
+ log.debug(f"DELETE {url} by {proxy if proxy else 'No proxy'} | MORE: \n {kwargs}")
+ async with httpx.AsyncClient(proxies=proxy, timeout=timeout) as client: # type: ignore
+ return await client.delete(url, **kwargs)