/usr/share/doc/python-weblib-doc/pydoc/pyweblib.httphelper.html is in python-weblib-doc 1.3.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pyweblib.httphelper</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="pyweblib.html"><font color="#ffffff">pyweblib</font></a>.httphelper</strong></big></big> (version 0.0.4)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/lib/python2.3/site-packages/pyweblib/httphelper.py">/usr/lib/python2.3/site-packages/pyweblib/httphelper.py</a></font></td></tr></table>
<p><tt>httphelper.py - basic HTTP-related functions<br>
(c) by Michael Stroeder <michael@stroeder.com><br>
<br>
This module is distributed under the terms of the<br>
GPL (GNU GENERAL PUBLIC LICENSE) Version 2<br>
(see <a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)<br>
<br>
$Id: pyweblib.httphelper.html,v 1.12 2004/08/24 10:26:30 michael Exp $</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td><td width="25%" valign=top><a href="time.html">time</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-DateTimeRFC1123"><strong>DateTimeRFC1123</strong></a>(secs<font color="#909090">=0</font>)</dt><dd><tt>Return seconds as <a href="http://www.rfc-editor.org/rfc/rfc1123.txt">RFC1123</a> date/time format preferred<br>
for HTTP 1.1 (see <a href="http://www.rfc-editor.org/rfc/rfc2616.txt">RFC2616</a>)</tt></dd></dl>
<dl><dt><a name="-SendHeader"><strong>SendHeader</strong></a>(outf<font color="#909090">=<open file '<stdout>', mode 'w'></font>, contenttype<font color="#909090">='text/html'</font>, charset<font color="#909090">='ISO-8859-1'</font>, contentlength<font color="#909090">=None</font>, expires_offset<font color="#909090">=0</font>, current_datetime<font color="#909090">=None</font>, additional_header<font color="#909090">=None</font>)</dt><dd><tt>Generate HTTP header<br>
<br>
outf<br>
File object used for sending to client.<br>
contenttype<br>
MIME type of object in HTTP body. Default is 'text/html'.<br>
charset<br>
Character set used. Default is 'ISO-8859-1'.<br>
contentlength<br>
Content-Length if known and gzip-encoding is not used.<br>
Default is None indicating unknown length.<br>
expires_offset=0,<br>
Expiry time from current time in seconds. Default is 0.<br>
current_datetime<br>
Last modification time in seconds.<br>
If zero (default) 'Last-modified' header will be omitted.<br>
additional_header<br>
Dictionary containing arbitrary additional HTTP header fields<br>
as key/value-pairs.</tt></dd></dl>
<dl><dt><a name="-SimpleMsg"><strong>SimpleMsg</strong></a>(outf, msg)</dt><dd><tt>Output HTML text.</tt></dd></dl>
<dl><dt><a name="-URLRedirect"><strong>URLRedirect</strong></a>(outf, url, refreshtime<font color="#909090">=0</font>, msg<font color="#909090">='Redirecting...'</font>)</dt><dd><tt>Output HTML text with redirecting <head> section.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>HTTP_LINESEP</strong> = '<font color="#c040c0">\r\n</font>'<br>
<strong>__version__</strong> = '0.0.4'</td></tr></table>
</body></html>
|