New in version 2.2.
TheSimpleXMLRPCServer module provides a basic serverframework for XML-RPC servers written in Python. Servers can eitherbe free standing, usingSimpleXMLRPCServer, or embedded in aCGI environment, usingCGIXMLRPCRequestHandler.
| addr[, requestHandler[,logRequests[, allow_none[, encoding]]]]) |
Create a new server instance. This class provides methods for registration of functions that can be called by the XML-RPC protocol. TherequestHandler parameter should be a factory for request handler instances; it defaults toSimpleXMLRPCRequestHandler. Theaddr andrequestHandler parameters are passed to theSocketServer.TCPServer constructor. IflogRequests is true (the default), requests will be logged; setting this parameter to false will turn off logging. Theallow_none andencoding parameters are passed on toxmlrpclib and control the XML-RPC responses that will be returned from the server.Changed in version 2.5:Theallow_none andencoding parameters were added.
| [allow_none[, encoding]]) |
| ) |
POST requests and modifies logging so that thelogRequests parameter to theSimpleXMLRPCServer constructor parameter is honored.