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

Method send_response

Lib/http/server.py:553–564  ·  view source on GitHub ↗

Add the response header to the headers buffer and log the response code. Also send two standard headers with the server software version and the current date.

(self, code, message=None)

Source from the content-addressed store, hash-verified

551 self.wfile.write(body)
552
553 def send_response(self, code, message=None):
554 """Add the response header to the headers buffer and log the
555 response code.
556
557 Also send two standard headers with the server software
558 version and the current date.
559
560 """
561 self.log_request(code)
562 self.send_response_only(code, message)
563 self.send_header('Server', self.version_string())
564 self.send_header('Date', self.date_time_string())
565
566 def send_response_only(self, code, message=None):
567 """Send the response header only."""

Callers 15

send_errorMethod · 0.95
do_GETMethod · 0.80
send_headMethod · 0.80
list_directoryMethod · 0.80
run_cgiMethod · 0.80
do_POSTMethod · 0.80
do_GETMethod · 0.80
do_TESTMethod · 0.80
do_KEEPMethod · 0.80
do_CUSTOMMethod · 0.80
do_LATINONEHEADERMethod · 0.80
do_GETMethod · 0.80

Calls 5

log_requestMethod · 0.95
send_response_onlyMethod · 0.95
send_headerMethod · 0.95
version_stringMethod · 0.95
date_time_stringMethod · 0.95

Tested by 15

do_POSTMethod · 0.64
do_GETMethod · 0.64
do_TESTMethod · 0.64
do_KEEPMethod · 0.64
do_CUSTOMMethod · 0.64
do_LATINONEHEADERMethod · 0.64
do_GETMethod · 0.64
do_GETMethod · 0.64
do_HEADMethod · 0.64
do_AUTHHEADMethod · 0.64
do_GETMethod · 0.64