~pythonregexp2.7/python/issue2636-01

« back to all changes in this revision

Viewing changes to Doc/library/basehttpserver.rst

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:37:21 UTC
  • mfrom: (39022.1.14 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609143721-bj0g1mwta28038da
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
1
:mod:`BaseHTTPServer` --- Basic HTTP server
3
2
===========================================
4
3
 
5
4
.. module:: BaseHTTPServer
6
5
   :synopsis: Basic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer).
7
6
 
 
7
.. note::
 
8
   The :mod:`BaseHTTPServer` module has been merged into :mod:`http.server` in
 
9
   Python 3.0.  The :term:`2to3` tool will automatically adapt imports when
 
10
   converting your sources to 3.0.
 
11
 
8
12
 
9
13
.. index::
10
14
   pair: WWW; server
21
25
functioning Web servers. See the :mod:`SimpleHTTPServer` and
22
26
:mod:`CGIHTTPServer` modules.
23
27
 
24
 
The first class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer`
 
28
The first class, :class:`HTTPServer`, is a :class:`SocketServer.TCPServer`
25
29
subclass.  It creates and listens at the HTTP socket, dispatching the requests
26
30
to a handler.  Code to create and run the server looks like this::
27
31