Skip to content

Commit

Permalink
feat: sessionを取得できるように
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Apr 27, 2022
1 parent 759476d commit 133f0fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mipac/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def __init__(self, url: str, token: str) -> None:
self.__url: str = url
self.__token: str = token

@property
def session(self) -> aiohttp.ClientSession:
return self.__session

async def request(self, route: Route, **kwargs) -> Any:
headers: Dict[str, str] = {
'User-Agent': self.user_agent,
Expand Down

0 comments on commit 133f0fb

Please sign in to comment.