This commit is contained in:
dj
2023-12-01 18:17:58 +03:00
parent e0fe8e392f
commit 2208bbf566
18 changed files with 353 additions and 190 deletions
+2 -2
View File
@@ -5,12 +5,12 @@ import aiohttp
# In handler
# session = await rSession.get_session()
# session = await arSession.get_session()
# response = await session.get(...)
# response = await session.post(...)
# Асинхронная сессия для запросов
class RequestSession:
class AsyncRequestSession:
def __init__(self) -> None:
self._session: Optional[aiohttp.ClientSession] = None