diff Doc/lib/libsimplehttp.tex @ 36555:4668df450672 legacy-trunk

Patch #1417555: SimpleHTTPServer now returns Last-Modified headers.
author Georg Brandl <georg@python.org>
date Fri, 17 Feb 2006 13:34:16 +0000
parents 5c940f98e465
children
line wrap: on
line diff
--- a/Doc/lib/libsimplehttp.tex	Fri Feb 17 11:51:41 2006 +0000
+++ b/Doc/lib/libsimplehttp.tex	Fri Feb 17 13:34:16 2006 +0000
@@ -65,13 +65,18 @@
 \var{extensions_map} variable.
 
 A \code{'Content-type:'} header with the guessed content type is
-output, followed by a blank line signifying the end of the headers,
+output, followed by a \code{'Content-Length:'} header with the file's
+size and a \code{'Last-Modified:'} header with the file's modification
+time.
+
+Then follows a blank line signifying the end of the headers,
 and then the contents of the file are output. If the file's MIME type
 starts with \code{text/} the file is opened in text mode; otherwise
 binary mode is used.
 
 For example usage, see the implementation of the \function{test()}
 function.
+\versionadded[The \code{'Last-Modified'} header]{2.5}
 \end{methoddesc}