@@ -5,7 +5,7 @@ async def get(self, endpoint, *args, **kwargs):
55 await self .validate_session_async ()
66 auth = (self .email , self .password ) if self .auth else None
77
8- async with httpx .AsyncClient () as client :
8+ async with httpx .AsyncClient (timeout = self . timeout ) as client :
99 res = await client .get (
1010 self .domain + endpoint ,
1111 headers = self .header ,
@@ -22,7 +22,7 @@ async def post(self, endpoint, *args, **kwargs):
2222 await self .validate_session_async ()
2323 auth = (self .email , self .password ) if self .auth else None
2424
25- async with httpx .AsyncClient () as client :
25+ async with httpx .AsyncClient (timeout = self . timeout ) as client :
2626 res = await client .post (
2727 self .domain + endpoint ,
2828 headers = self .header ,
@@ -39,7 +39,7 @@ async def put(self, endpoint, *args, **kwargs):
3939 await self .validate_session_async ()
4040 auth = (self .email , self .password ) if self .auth else None
4141
42- async with httpx .AsyncClient () as client :
42+ async with httpx .AsyncClient (timeout = self . timeout ) as client :
4343 res = await client .put (
4444 self .domain + endpoint ,
4545 headers = self .header ,
@@ -56,7 +56,7 @@ async def delete(self, endpoint, *args, **kwargs):
5656 await self .validate_session_async ()
5757 auth = (self .email , self .password ) if self .auth else None
5858
59- async with httpx .AsyncClient () as client :
59+ async with httpx .AsyncClient (timeout = self . timeout ) as client :
6060 res = await client .delete (
6161 self .domain + endpoint ,
6262 headers = self .header ,
0 commit comments