mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-22 14:40:50 +03:00
12 lines
312 B
Python
12 lines
312 B
Python
|
"""Http client module."""
|
||
|
|
||
|
from aiohttp import ClientSession, ClientResponse
|
||
|
|
||
|
|
||
|
class HttpClient:
|
||
|
|
||
|
async def request(self, method: str, url: str) -> ClientResponse:
|
||
|
async with ClientSession() as session:
|
||
|
async with session.request(method, url) as response:
|
||
|
return response
|