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

Method handle_xmlrpc

Lib/xmlrpc/server.py:643–653  ·  view source on GitHub ↗

Handle a single XML-RPC request

(self, request_text)

Source from the content-addressed store, hash-verified

641 SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding, use_builtin_types)
642
643 def handle_xmlrpc(self, request_text):
644 """Handle a single XML-RPC request"""
645
646 response = self._marshaled_dispatch(request_text)
647
648 print('Content-Type: text/xml')
649 print('Content-Length: %d' % len(response))
650 print()
651 sys.stdout.flush()
652 sys.stdout.buffer.write(response)
653 sys.stdout.buffer.flush()
654
655 def handle_get(self):
656 """Handle a single HTTP GET request.

Callers 1

handle_requestMethod · 0.95

Calls 3

_marshaled_dispatchMethod · 0.45
flushMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected