Lines Matching defs:server

4 by creating a server and either installing functions, a
15 server.
21 server = SimpleXMLRPCServer(("localhost", 8000))
22 server.register_function(pow)
23 server.register_function(lambda x,y: x+y, 'add')
24 server.serve_forever()
41 server = SimpleXMLRPCServer(("localhost", 8000))
42 server.register_introspection_functions()
43 server.register_instance(MyFuncs())
44 server.serve_forever()
72 server = SimpleXMLRPCServer(("localhost", 8000))
73 server.register_introspection_functions()
74 server.register_instance(Math())
75 server.serve_forever()
94 server = MathServer(("localhost", 8000))
95 server.serve_forever()
99 server = CGIXMLRPCRequestHandler()
100 server.register_function(pow)
101 server.handle_request()
108 from http.server import BaseHTTPRequestHandler
112 import http.server
282 Returns a list of the methods supported by the server."""
304 This server does NOT support system.methodSignature."""
470 which are forwarded to the server's _dispatch method for handling.
504 response = self.server._marshaled_dispatch(
508 # internal error, report as HTTP server error
512 if hasattr(self.server, '_send_traceback_header') and \
513 self.server._send_traceback_header:
566 if self.server.logRequests:
571 """Simple XML-RPC server.
573 Simple XML-RPC server that allows functions and a single instance
576 installed in the server. Override the _dispatch method inherited
627 # report low level exception back to server
664 response = http.server.DEFAULT_ERROR_MESSAGE % \
672 print('Content-Type: %s' % http.server.DEFAULT_ERROR_CONTENT_TYPE)
706 """Class used to generate pydoc HTML document for a server"""
779 """Produce HTML documentation for an XML-RPC server."""
819 """Generates documentation for an XML-RPC server.
829 "This server exports the following methods through the XML-RPC "\
834 """Set the HTML title of the generated server documentation"""
839 """Set the name of the generated HTML server documentation"""
844 """Set the documentation string for the entire server."""
849 """generate_html_documentation() => html documentation for the server
851 Generates HTML documentation for the server using introspection for
918 Interpret all HTTP GET requests as requests for server
931 response = self.server.generate_html_documentation().encode('utf-8')
941 """XML-RPC and HTML documentation server.
943 Adds the ability to serve server documentation to the capabilities
963 Interpret all HTTP GET requests as requests for server
993 with SimpleXMLRPCServer(("localhost", 8000)) as server:
994 server.register_function(pow)
995 server.register_function(lambda x,y: x+y, 'add')
996 server.register_instance(ExampleService(), allow_dotted_names=True)
997 server.register_multicall_functions()
999 print('It is advisable to run this example server within a secure, closed network.')
1001 server.serve_forever()