diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-16 17:37:32 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-16 17:37:32 (GMT) |
commit | a3e3e36de751607cd2d7f1eaa6ae93cf123c3c8a (patch) | |
tree | 371feb6408a0ff001c74305d2e25dbf0b281d173 /Doc | |
parent | e55a20525e6c32c7d1361e9a61f51c96c366d2ce (diff) | |
download | cpython-a3e3e36de751607cd2d7f1eaa6ae93cf123c3c8a.zip cpython-a3e3e36de751607cd2d7f1eaa6ae93cf123c3c8a.tar.gz cpython-a3e3e36de751607cd2d7f1eaa6ae93cf123c3c8a.tar.bz2 |
Addressing RDM's review comments on the doc change.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/simplehttpserver.rst | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/library/simplehttpserver.rst b/Doc/library/simplehttpserver.rst index 79e01d0..ecb9340 100644 --- a/Doc/library/simplehttpserver.rst +++ b/Doc/library/simplehttpserver.rst @@ -82,15 +82,16 @@ The :mod:`SimpleHTTPServer` module defines the following class: ``text/`` the file is opened in text mode; otherwise binary mode is used. The :func:`test` function in the :mod:`SimpleHTTPServer` module is an - example which interfaces the :class:`SimpleHTTPRequestHandler` as a - Handler to the :mod:`BaseHTTPServer` module. + example which creates a server using the + :class:`SimpleHTTPRequestHandler` as the Handler. .. versionadded:: 2.5 The ``'Last-Modified'`` header. The :mod:`SimpleHTTPServer` module can be used the following manner in order to -setup a very basic web server serving files relative to the current directory.:: +set up a very basic web server serving files relative to the current +directory.:: import SimpleHTTPServer import SocketServer @@ -104,8 +105,9 @@ setup a very basic web server serving files relative to the current directory.:: print "serving at port", PORT httpd.serve_forever() -It can also be invoked directly using the ``-m`` switch of interpreter a with -``port number`` argument.:: +:mod:`SimpleHTTPServer` module can also be invoked directly using the ``-m`` +switch of interpreter with a ``port number`` argument. Similar to previous +example, this serves the files relative to the current directory.:: python -m SimpleHTTPServer 8000 |