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
Connector has much more options than just proxy_auth. Moreover, params for TCPConnector and UnixConnector are ambiguous. Putting all together makes a mess. Recommended way to create session with proxy is ClientSession(connector=ProxyConnector(proxy, proxy_auth=BasicAuth(login, password)).
You still may use your own Client class provided above in your code.
Proposed timeout parameter works only for connection establishment and sending request headers.
It doesn't include time for sending request body and retrieving response back.
Most likely users need both.
The recommended way is using Timeout class:
with aiohttp.Timeout(0.001):
async with aiohttp.get('https://github.com') as r:
await r.text()
Like this, we will directly have the proxy and timeout parameters for the ClientSession, this will be very convenient in some situation.
The text was updated successfully, but these errors were encountered: