You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module wraps aiohttp.ClientSession so that it can be used with APIs such as:
HTTP request
importaiohttp_clientasyncwithaiohttp_client.Client() asclient:
r=awaitclient.get("https://httpbin.org/get") # without "async with"print(r.json()) # without "await"
1. and 2. aim to provide an API similar to httpx (AsyncClient). When you make HTTP requests in Python, isn't it mostly to get the HTTP (REST) API? In that case, this API makes sense.
Summary
This module wraps
aiohttp.ClientSession
so that it can be used with APIs such as:The purpose of this API is to...
httpx
(AsyncClient
). When you make HTTP requests in Python, isn't it mostly to get the HTTP (REST) API? In that case, this API makes sense.websockets
. Users often want to be able to easily reconnect to WebSocket connections.The text was updated successfully, but these errors were encountered: