blob: 8dec9c767587a5aa8eeb384498dadcb5b6ece3e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import httpx
async def get(url: str, **kwargs):
async with httpx.AsyncClient() as client:
return await client.get(url, **kwargs)
async def post(url: str, **kwargs):
async with httpx.AsyncClient() as client:
return await client.post(url, **kwargs)
|