We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27bb8f3 commit 7876eb8Copy full SHA for 7876eb8
1 file changed
Anime_Inline/helper/aiohttp_class.py
@@ -0,0 +1,22 @@
1
+import aiohttp
2
+
3
4
+class AioHttp:
5
+ @staticmethod
6
+ async def get_json(link):
7
+ async with aiohttp.ClientSession() as session:
8
+ async with session.get(link) as resp:
9
+ return await resp.json()
10
11
12
+ async def get_text(link):
13
14
15
+ return await resp.text()
16
17
18
+ async def get_raw(link):
19
20
21
+ return await resp.read()
22
0 commit comments