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

Method do_POST

Lib/test/test_xmlrpc.py:331–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

329 handled = False
330
331 def do_POST(self):
332 length = int(self.headers.get("Content-Length"))
333 self.rfile.read(length)
334 if self.handled:
335 self.close_connection = True
336 return
337 response = xmlrpclib.dumps((5,), methodresponse=True)
338 response = response.encode()
339 self.send_response(http.HTTPStatus.OK)
340 self.send_header("Content-Length", len(response))
341 self.end_headers()
342 self.wfile.write(response)
343 self.handled = True
344 self.close_connection = False
345
346 def log_message(self, format, *args):
347 # don't clobber sys.stderr

Callers 2

do_POSTMethod · 0.45
do_POSTMethod · 0.45

Calls 9

lenFunction · 0.85
send_responseMethod · 0.80
send_headerMethod · 0.80
end_headersMethod · 0.80
getMethod · 0.45
readMethod · 0.45
dumpsMethod · 0.45
encodeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected