mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-21 22:10:49 +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
|