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

Method http_response

Lib/urllib/request.py:1009–1015  ·  view source on GitHub ↗
(self, req, response)

Source from the content-addressed store, hash-verified

1007 return req
1008
1009 def http_response(self, req, response):
1010 if hasattr(self.passwd, 'is_authenticated'):
1011 if 200 <= response.code < 300:
1012 self.passwd.update_authenticated(req.full_url, True)
1013 else:
1014 self.passwd.update_authenticated(req.full_url, False)
1015 return response
1016
1017 https_request = http_request
1018 https_response = http_response

Callers

nothing calls this directly

Calls 1

update_authenticatedMethod · 0.80

Tested by

no test coverage detected