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