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

Method handle_request

Lib/test/test_logging.py:2169–2180  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

2167 self.handled = threading.Event()
2168
2169 def handle_request(self, request):
2170 self.command = request.command
2171 self.log_data = urlparse(request.path)
2172 if self.command == 'POST':
2173 try:
2174 rlen = int(request.headers['Content-Length'])
2175 self.post_data = request.rfile.read(rlen)
2176 except:
2177 self.post_data = None
2178 request.send_response(200)
2179 request.end_headers()
2180 self.handled.set()
2181
2182 def test_output(self):
2183 # The log message sent to the HTTPHandler is properly received.

Callers 11

run_serverMethod · 0.45
http_serverFunction · 0.45
http_multi_serverFunction · 0.45
test_cgi_getMethod · 0.45
__init__Method · 0.45
test_basicsMethod · 0.45
test_writeMethod · 0.45
test_threads_reapedMethod · 0.45

Calls 5

urlparseFunction · 0.90
send_responseMethod · 0.80
readMethod · 0.45
end_headersMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected