Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-26 15:07:43 +00:00
Update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user