comparison Doc/library/basehttpserver.rst @ 47241:ba1fa511b72d legacy-trunk

socketserver renaming reversal part 3: move the module into the right place and fix all references to it. Closes #2926.
author Georg Brandl <georg@python.org>
date Sat, 24 May 2008 18:31:28 +0000
parents a375b1346eb3
children 662d15af52df
comparison
equal deleted inserted replaced
47240:05aa21d6dbeb 47241:ba1fa511b72d
19 This module defines two classes for implementing HTTP servers (Web servers). 19 This module defines two classes for implementing HTTP servers (Web servers).
20 Usually, this module isn't used directly, but is used as a basis for building 20 Usually, this module isn't used directly, but is used as a basis for building
21 functioning Web servers. See the :mod:`SimpleHTTPServer` and 21 functioning Web servers. See the :mod:`SimpleHTTPServer` and
22 :mod:`CGIHTTPServer` modules. 22 :mod:`CGIHTTPServer` modules.
23 23
24 The first class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer` 24 The first class, :class:`HTTPServer`, is a :class:`SocketServer.TCPServer`
25 subclass. It creates and listens at the HTTP socket, dispatching the requests 25 subclass. It creates and listens at the HTTP socket, dispatching the requests
26 to a handler. Code to create and run the server looks like this:: 26 to a handler. Code to create and run the server looks like this::
27 27
28 def run(server_class=BaseHTTPServer.HTTPServer, 28 def run(server_class=BaseHTTPServer.HTTPServer,
29 handler_class=BaseHTTPServer.BaseHTTPRequestHandler): 29 handler_class=BaseHTTPServer.BaseHTTPRequestHandler):