MCPcopy Index your code
hub / github.com/RustPython/RustPython / http_error_401

Method http_error_401

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

Source from the content-addressed store, hash-verified

1207 handler_order = 490 # before Basic auth
1208
1209 def http_error_401(self, req, fp, code, msg, headers):
1210 host = urlparse(req.full_url)[1]
1211 retry = self.http_error_auth_reqed('www-authenticate',
1212 host, req, headers)
1213 self.reset_retry_count()
1214 return retry
1215
1216
1217class 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