diff options
author | 0w0 <[email protected]> | 2022-12-29 16:39:00 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-29 16:39:00 +0800 |
commit | 5e63be78aabb6feda2bf92b9db2264aac2721641 (patch) | |
tree | d90bc810150d859c76e64f6e71d8524478014f31 /ATRI/utils | |
parent | bb13b38f862d859007d1d37941f5b5c9d5f38cbc (diff) | |
parent | c0e5f0398bd4c3c55378cff303f31ff968822346 (diff) | |
download | ATRI-5e63be78aabb6feda2bf92b9db2264aac2721641.tar.gz ATRI-5e63be78aabb6feda2bf92b9db2264aac2721641.tar.bz2 ATRI-5e63be78aabb6feda2bf92b9db2264aac2721641.zip |
🔀 Merge pull request #66 from yangrq1018/main
Feature add + bug fix
Diffstat (limited to 'ATRI/utils')
-rw-r--r-- | ATRI/utils/request.py | 6 |
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) |