mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
Grammar and markup fixes.
This commit is contained in:
parent
8a08ce25e2
commit
0ada39cd8b
1 changed files with 17 additions and 16 deletions
|
@ -82,15 +82,15 @@ 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 creates a server using the
|
||||
:class:`SimpleHTTPRequestHandler` as the Handler.
|
||||
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
|
||||
set up a very basic web server serving files relative to the current
|
||||
The :mod:`SimpleHTTPServer` module can be used in the following manner in order
|
||||
to set up a very basic web server serving files relative to the current
|
||||
directory. ::
|
||||
|
||||
import SimpleHTTPServer
|
||||
|
@ -105,9 +105,10 @@ directory.::
|
|||
print "serving at port", PORT
|
||||
httpd.serve_forever()
|
||||
|
||||
: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.::
|
||||
The :mod:`SimpleHTTPServer` module can also be invoked directly using the
|
||||
:cmdoption:`-m` switch of the interpreter with a ``port number`` argument.
|
||||
Similar to the previous example, this serves the files relative to the
|
||||
current directory. ::
|
||||
|
||||
python -m SimpleHTTPServer 8000
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue