MCPcopy Create free account
hub / github.com/RustPython/RustPython / log_request

Method log_request

Lib/http/server.py:605–614  ·  view source on GitHub ↗

Log an accepted request. This is called by send_response().

(self, code='-', size='-')

Source from the content-addressed store, hash-verified

603 self._headers_buffer = []
604
605 def log_request(self, code='-', size='-'):
606 """Log an accepted request.
607
608 This is called by send_response().
609
610 """
611 if isinstance(code, HTTPStatus):
612 code = code.value
613 self.log_message('"%s" %s %s',
614 self.requestline, str(code), str(size))
615
616 def log_error(self, format, *args):
617 """Log an error.

Callers 2

send_responseMethod · 0.95
closeMethod · 0.45

Calls 3

log_messageMethod · 0.95
isinstanceFunction · 0.85
strFunction · 0.85

Tested by

no test coverage detected