Session¶
aiosend uses aiohttp session by default.
You can implement your own session by inheriting BaseSession
and overriding request method.
- class aiosend.client.session.AiohttpSession(network, timeout=300)¶
Bases:
BaseSessionHttp session based on aiohttp.
This class is a wrapper of aiohttp.ClientSession.
- async request(token, client, method)¶
Make http request.
- Return type:
TypeVar(_CryptoPayType, bound= CryptoPayObject | list | bool)
- class aiosend.client.session.BaseSession(network, timeout=300)¶
Bases:
ABCAbstract session class.
If you want to implement your own session class, you should inherit this class.
- abstractmethod async request(token, client, method)¶
Make http request.
- Return type:
TypeVar(_CryptoPayType, bound= CryptoPayObject | list | bool)