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

Method http_error_401

Lib/urllib/request.py:1211–1216  ·  view source on GitHub ↗
(self, req, fp, code, msg, headers)

Source from the content-addressed store, hash-verified

1209 handler_order = 490 # before Basic auth
1210
1211 def http_error_401(self, req, fp, code, msg, headers):
1212 host = urlparse(req.full_url)[1]
1213 retry = self.http_error_auth_reqed('www-authenticate',
1214 host, req, headers)
1215 self.reset_retry_count()
1216 return retry
1217
1218
1219class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):

Callers

nothing calls this directly

Calls 3

urlparseFunction · 0.90
reset_retry_countMethod · 0.80
http_error_auth_reqedMethod · 0.45

Tested by

no test coverage detected