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

Method http_error_407

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

Source from the content-addressed store, hash-verified

1035 auth_header = 'Proxy-authorization'
1036
1037 def http_error_407(self, req, fp, code, msg, headers):
1038 # http_error_auth_reqed requires that there is no userinfo component in
1039 # authority. Assume there isn't one, since urllib.request does not (and
1040 # should not, RFC 3986 s. 3.2.1) support requests for URLs containing
1041 # userinfo.
1042 authority = req.host
1043 response = self.http_error_auth_reqed('proxy-authenticate',
1044 authority, req, headers)
1045 return response
1046
1047
1048# Return n random bytes.

Callers

nothing calls this directly

Calls 1

http_error_auth_reqedMethod · 0.45

Tested by

no test coverage detected