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

Method handle_request

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

Source from the content-addressed store, hash-verified

2141 self.handled = threading.Event()
2142
2143 def handle_request(self, request):
2144 self.command = request.command
2145 self.log_data = urlparse(request.path)
2146 if self.command == 'POST':
2147 try:
2148 rlen = int(request.headers['Content-Length'])
2149 self.post_data = request.rfile.read(rlen)
2150 except:
2151 self.post_data = None
2152 request.send_response(200)
2153 request.end_headers()
2154 self.handled.set()
2155
2156 def test_output(self):
2157 # 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
end_headersMethod · 0.80
readMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected