Browse Source

SocksConnector renamed

main
nibrag 7 years ago
parent
commit
e7f150d2a1
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      README.rst

+ 3
- 3
README.rst View File

@@ -20,7 +20,7 @@ aiohttp 2.0+
Features Features
-------- --------
- SOCKS4, SOCKS4a and SOCKS5 version - SOCKS4, SOCKS4a and SOCKS5 version
- SocksConnector for aiohttp
- ProxyConnector for aiohttp
- SOCKS "CONNECT" command - SOCKS "CONNECT" command


TODO TODO
@@ -152,10 +152,10 @@ aiohttp usage
ba = aiohttp.BasicAuth('login') ba = aiohttp.BasicAuth('login')


# remote resolve # remote resolve
conn = ProxyConnecotr(remote_resolve=True)
conn = ProxyConnector(remote_resolve=True)


# or locale resolve # or locale resolve
conn = SocksConnector(remote_resolve=False)
conn = ProxyConnector(remote_resolve=False)


try: try:
with aiohttp.ClientSession(connector=conn, request_class=ProxyClientRequest) as session: with aiohttp.ClientSession(connector=conn, request_class=ProxyClientRequest) as session:


Loading…
Cancel
Save