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

Method do_POST

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

Source from the content-addressed store, hash-verified

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

Callers 2

do_POSTMethod · 0.45
do_POSTMethod · 0.45

Calls 8

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

Tested by

no test coverage detected