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

Method report_404

Lib/xmlrpc/server.py:554–561  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

552 self.end_headers()
553
554 def report_404 (self):
555 # Report a 404 error
556 self.send_response(404)
557 response = b'No such page'
558 self.send_header("Content-type", "text/plain")
559 self.send_header("Content-length", str(len(response)))
560 self.end_headers()
561 self.wfile.write(response)
562
563 def log_request(self, code='-', size='-'):
564 """Selectively log an accepted request."""

Callers 2

do_POSTMethod · 0.95
do_GETMethod · 0.80

Calls 5

strFunction · 0.85
send_responseMethod · 0.80
send_headerMethod · 0.80
end_headersMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected