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

Method http_response

Lib/urllib/request.py:598–607  ·  view source on GitHub ↗
(self, request, response)

Source from the content-addressed store, hash-verified

596 handler_order = 1000 # after all other processing
597
598 def http_response(self, request, response):
599 code, msg, hdrs = response.code, response.msg, response.info()
600
601 # According to RFC 2616, "2xx" code indicates that the client's
602 # request was successfully received, understood, and accepted.
603 if not (200 <= code < 300):
604 response = self.parent.error(
605 'http', request, response, code, msg, hdrs)
606
607 return response
608
609 https_response = http_response
610

Callers 1

test_errorsMethod · 0.95

Calls 2

infoMethod · 0.45
errorMethod · 0.45

Tested by 1

test_errorsMethod · 0.76