Searched refs:auth_handler (Results 1 – 2 of 2) sorted by relevance
| /third_party/python/Lib/test/ |
| D | test_urllib2.py | 1468 auth_handler = urllib.request.HTTPBasicAuthHandler(password_manager) 1471 opener.add_handler(auth_handler) 1473 self._test_basic_auth(opener, auth_handler, "Authorization", 1528 auth_handler = urllib.request.ProxyBasicAuthHandler(password_manager) 1532 opener.add_handler(auth_handler) 1534 self._test_basic_auth(opener, auth_handler, "Proxy-authorization", 1610 def _test_basic_auth(self, opener, auth_handler, auth_header, argument 1617 auth_handler.add_password(realm, request_url, user, password)
|
| /third_party/python/Doc/library/ |
| D | urllib.request.rst | 1253 auth_handler = urllib.request.HTTPBasicAuthHandler() 1254 auth_handler.add_password(realm='PDQ Application', 1258 opener = urllib.request.build_opener(auth_handler)
|