diff options
author | Fred Drake <fdrake@acm.org> | 1998-02-13 06:58:54 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-02-13 06:58:54 (GMT) |
commit | 1947991c2f85db781fb3fcdc9e3bcfe2905e58e2 (patch) | |
tree | 260789493c7151408f009eaa84a7815ce4d28246 /Doc/lib/libbasehttp.tex | |
parent | dc8af0acc1fbeec89e43f1ea43bf1a4d016f4fc6 (diff) | |
download | cpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.zip cpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.tar.gz cpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.tar.bz2 |
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
checkin of myformat.sty.
Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}"
everywhere.
Some other minor nits that I happened to come across.
Diffstat (limited to 'Doc/lib/libbasehttp.tex')
-rw-r--r-- | Doc/lib/libbasehttp.tex | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/lib/libbasehttp.tex b/Doc/lib/libbasehttp.tex index 1f7b6da..c28b0b8 100644 --- a/Doc/lib/libbasehttp.tex +++ b/Doc/lib/libbasehttp.tex @@ -7,7 +7,7 @@ \index{URL} \index{httpd} -\renewcommand{\indexsubitem}{(in module BaseHTTPServer)} +\setindexsubitem{(in module BaseHTTPServer)} This module defines two classes for implementing HTTP servers (web servers). Usually, this module isn't used directly, but is used @@ -21,13 +21,13 @@ subclass. It creates and listens at the web socket, dispatching the requests to a handler. Code to create and run the server looks like this: -\bcode\begin{verbatim} +\begin{verbatim} def run(server_class=BaseHTTPServer.HTTPServer, handler_class=BaseHTTPServer.BaseHTTPRequestHandler): server_address = ('', 8000) httpd = server_class(server_address, handler_class) httpd.serve_forever() -\end{verbatim}\ecode +\end{verbatim} % The \code{HTTPServer} class builds on the \code{TCPServer} class by storing the server address as instance @@ -49,7 +49,7 @@ from the request. For example, for the request \code{SPAM}, the the relevant information is stored into instance variables of the handler. -\renewcommand{\indexsubitem}{(BaseHTTPRequestHandler instance variable)} +\setindexsubitem{(BaseHTTPRequestHandler instance variable)} \code{BaseHTTPRequestHandler} has the following instance variables: @@ -88,7 +88,7 @@ Proper adherance to the HTTP protocol must be used when writing to this stream. \end{datadesc} -\renewcommand{\indexsubitem}{(BaseHTTPRequestHandler class variable)} +\setindexsubitem{(BaseHTTPRequestHandler class variable)} \code{BaseHTTPRequestHandler} has the following class variables: @@ -138,7 +138,7 @@ error response, and \var{longmessage} as the \var{explain} key (see the \code{error_message_format} class variable). \end{datadesc} -\renewcommand{\indexsubitem}{(BaseHTTPRequestHandler method)} +\setindexsubitem{(BaseHTTPRequestHandler method)} A \code{BaseHTTPRequestHandler} instance has the following methods: |