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

Method http_response

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

Source from the content-addressed store, hash-verified

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

Callers 1

test_errorsMethod · 0.95

Calls 2

infoMethod · 0.45
errorMethod · 0.45

Tested by 1

test_errorsMethod · 0.76