Movatterモバイル変換


[0]ホーム

URL:


Up one LevelPython Library ReferenceContentsModule IndexIndex

18.25SimpleXMLRPCServer -- Basic XML-RPC server

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.

class SimpleXMLRPCServer(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.

class CGIXMLRPCRequestHandler([allow_none[, encoding]])
Create a new instance to handle XML-RPC requests in a CGI environment. Theallow_none andencoding parameters are passed on toxmlrpclib and control the XML-RPC responses that will be returned from the server.New in version 2.3.Changed in version 2.5:Theallow_none andencoding parameters were added.

class SimpleXMLRPCRequestHandler()
Create a new request handler instance. This request handler supportsPOST requests and modifies logging so that thelogRequests parameter to theSimpleXMLRPCServer constructor parameter is honored.



Subsections


Up one LevelPython Library ReferenceContentsModule IndexIndex

Release 2.5.2, documentation updated on 21st February, 2008.
SeeAbout this document... for information on suggesting changes.
[8]ページ先頭

©2009-2025 Movatter.jp