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

Method log_request

Lib/http/server.py:577–586  ·  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

575 self._headers_buffer = []
576
577 def log_request(self, code='-', size='-'):
578 """Log an accepted request.
579
580 This is called by send_response().
581
582 """
583 if isinstance(code, HTTPStatus):
584 code = code.value
585 self.log_message('"%s" %s %s',
586 self.requestline, str(code), str(size))
587
588 def log_error(self, format, *args):
589 """Log an error.

Callers 2

send_responseMethod · 0.95
closeMethod · 0.45

Calls 2

log_messageMethod · 0.95
strFunction · 0.85

Tested by

no test coverage detected