MCPcopy Index your code
hub / github.com/python/cpython / HTTPBasicAuthHandler

Class HTTPBasicAuthHandler

Lib/urllib/request.py:1022–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020
1021
1022class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
1023
1024 auth_header = 'Authorization'
1025
1026 def http_error_401(self, req, fp, code, msg, headers):
1027 url = req.full_url
1028 response = self.http_error_auth_reqed('www-authenticate',
1029 url, req, headers)
1030 return response
1031
1032
1033class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…