source: TI12-security/trunk/documentation/epydoc/httplib.HTTPResponse-class.html @ 4245

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/documentation/epydoc/httplib.HTTPResponse-class.html@4245
Revision 4245, 12.8 KB checked in by pjkersha, 11 years ago (diff)

Working unit tests for WSGI based Attribute Authority.

  • Altered so that all Attribute Config is picked up from the Paste ini file. Separate cfg or xml based config file is still supported.

TODO:

  • Simplify unit test config for client.
Line 
1<?xml version="1.0" encoding="ascii"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3          "DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
6  <title>httplib.HTTPResponse</title>
7  <link rel="stylesheet" href="epydoc.css" type="text/css" />
8  <script type="text/javascript" src="epydoc.js"></script>
9</head>
10
11<body bgcolor="white" text="black" link="blue" vlink="#204080"
12      alink="#204080">
13<!-- ==================== NAVIGATION BAR ==================== -->
14<table class="navbar" border="0" width="100%" cellpadding="0"
15       bgcolor="#a0c0ff" cellspacing="0">
16  <tr valign="middle">
17  <!-- Home link -->
18      <th>&nbsp;&nbsp;&nbsp;<a
19        href="ndg-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
20
21  <!-- Tree link -->
22      <th>&nbsp;&nbsp;&nbsp;<a
23        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
24
25  <!-- Index link -->
26      <th>&nbsp;&nbsp;&nbsp;<a
27        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
28
29  <!-- Help link -->
30      <th>&nbsp;&nbsp;&nbsp;<a
31        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
32
33  <!-- Project homepage -->
34      <th class="navbar" align="right" width="100%">
35        <table border="0" cellpadding="0" cellspacing="0">
36          <tr><th class="navbar" align="center"
37            >NDG Security</th>
38          </tr></table></th>
39  </tr>
40</table>
41<table width="100%" cellpadding="0" cellspacing="0">
42  <tr valign="top">
43    <td width="100%">
44      <span class="breadcrumbs">
45        httplib ::
46        HTTPResponse ::
47        Class&nbsp;HTTPResponse
48      </span>
49    </td>
50    <td>
51      <table cellpadding="0" cellspacing="0">
52        <!-- hide/show private -->
53        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
54    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
55      </table>
56    </td>
57  </tr>
58</table>
59<!-- ==================== CLASS DESCRIPTION ==================== -->
60<h1 class="epydoc">Class HTTPResponse</h1><p class="nomargin-top"></p>
61<!-- ==================== INSTANCE METHODS ==================== -->
62<a name="section-InstanceMethods"></a>
63<table class="summary" border="1" cellpadding="3"
64       cellspacing="0" width="100%" bgcolor="white">
65<tr bgcolor="#70b0f0" class="table-header">
66  <td colspan="2" class="table-header">
67    <table border="0" cellpadding="0" cellspacing="0" width="100%">
68      <tr valign="top">
69        <td align="left"><span class="table-header">Instance Methods</span></td>
70        <td align="right" valign="top"
71         ><span class="options">[<a href="#section-InstanceMethods"
72         class="privatelink" onclick="toggle_private();"
73         >hide private</a>]</span></td>
74      </tr>
75    </table>
76  </td>
77</tr>
78<tr>
79    <td width="15%" align="right" valign="top" class="summary">
80      <span class="summary-type">&nbsp;</span>
81    </td><td class="summary">
82      <table width="100%" cellpadding="0" cellspacing="0" border="0">
83        <tr>
84          <td><span class="summary-sig"><a name="__init__"></a><span class="summary-sig-name">__init__</span>(<span class="summary-sig-arg">self</span>,
85        <span class="summary-sig-arg">sock</span>,
86        <span class="summary-sig-arg">debuglevel</span>=<span class="summary-sig-default">0</span>,
87        <span class="summary-sig-arg">strict</span>=<span class="summary-sig-default">0</span>,
88        <span class="summary-sig-arg">method</span>=<span class="summary-sig-default">None</span>)</span></td>
89          <td align="right" valign="top">
90           
91           
92          </td>
93        </tr>
94      </table>
95     
96    </td>
97  </tr>
98<tr class="private">
99    <td width="15%" align="right" valign="top" class="summary">
100      <span class="summary-type">&nbsp;</span>
101    </td><td class="summary">
102      <table width="100%" cellpadding="0" cellspacing="0" border="0">
103        <tr>
104          <td><span class="summary-sig"><a name="_read_status"></a><span class="summary-sig-name">_read_status</span>(<span class="summary-sig-arg">self</span>)</span></td>
105          <td align="right" valign="top">
106           
107           
108          </td>
109        </tr>
110      </table>
111     
112    </td>
113  </tr>
114<tr>
115    <td width="15%" align="right" valign="top" class="summary">
116      <span class="summary-type">&nbsp;</span>
117    </td><td class="summary">
118      <table width="100%" cellpadding="0" cellspacing="0" border="0">
119        <tr>
120          <td><span class="summary-sig"><a name="begin"></a><span class="summary-sig-name">begin</span>(<span class="summary-sig-arg">self</span>)</span></td>
121          <td align="right" valign="top">
122           
123           
124          </td>
125        </tr>
126      </table>
127     
128    </td>
129  </tr>
130<tr class="private">
131    <td width="15%" align="right" valign="top" class="summary">
132      <span class="summary-type">&nbsp;</span>
133    </td><td class="summary">
134      <table width="100%" cellpadding="0" cellspacing="0" border="0">
135        <tr>
136          <td><span class="summary-sig"><a name="_check_close"></a><span class="summary-sig-name">_check_close</span>(<span class="summary-sig-arg">self</span>)</span></td>
137          <td align="right" valign="top">
138           
139           
140          </td>
141        </tr>
142      </table>
143     
144    </td>
145  </tr>
146<tr>
147    <td width="15%" align="right" valign="top" class="summary">
148      <span class="summary-type">&nbsp;</span>
149    </td><td class="summary">
150      <table width="100%" cellpadding="0" cellspacing="0" border="0">
151        <tr>
152          <td><span class="summary-sig"><a name="close"></a><span class="summary-sig-name">close</span>(<span class="summary-sig-arg">self</span>)</span></td>
153          <td align="right" valign="top">
154           
155           
156          </td>
157        </tr>
158      </table>
159     
160    </td>
161  </tr>
162<tr>
163    <td width="15%" align="right" valign="top" class="summary">
164      <span class="summary-type">&nbsp;</span>
165    </td><td class="summary">
166      <table width="100%" cellpadding="0" cellspacing="0" border="0">
167        <tr>
168          <td><span class="summary-sig"><a name="isclosed"></a><span class="summary-sig-name">isclosed</span>(<span class="summary-sig-arg">self</span>)</span></td>
169          <td align="right" valign="top">
170           
171           
172          </td>
173        </tr>
174      </table>
175     
176    </td>
177  </tr>
178<tr>
179    <td width="15%" align="right" valign="top" class="summary">
180      <span class="summary-type">&nbsp;</span>
181    </td><td class="summary">
182      <table width="100%" cellpadding="0" cellspacing="0" border="0">
183        <tr>
184          <td><span class="summary-sig"><a name="read"></a><span class="summary-sig-name">read</span>(<span class="summary-sig-arg">self</span>,
185        <span class="summary-sig-arg">amt</span>=<span class="summary-sig-default">None</span>)</span></td>
186          <td align="right" valign="top">
187           
188           
189          </td>
190        </tr>
191      </table>
192     
193    </td>
194  </tr>
195<tr class="private">
196    <td width="15%" align="right" valign="top" class="summary">
197      <span class="summary-type">&nbsp;</span>
198    </td><td class="summary">
199      <table width="100%" cellpadding="0" cellspacing="0" border="0">
200        <tr>
201          <td><span class="summary-sig"><a name="_read_chunked"></a><span class="summary-sig-name">_read_chunked</span>(<span class="summary-sig-arg">self</span>,
202        <span class="summary-sig-arg">amt</span>)</span></td>
203          <td align="right" valign="top">
204           
205           
206          </td>
207        </tr>
208      </table>
209     
210    </td>
211  </tr>
212<tr class="private">
213    <td width="15%" align="right" valign="top" class="summary">
214      <span class="summary-type">&nbsp;</span>
215    </td><td class="summary">
216      <table width="100%" cellpadding="0" cellspacing="0" border="0">
217        <tr>
218          <td><span class="summary-sig"><a href="httplib.HTTPResponse-class.html#_safe_read" class="summary-sig-name" onclick="show_private();">_safe_read</a>(<span class="summary-sig-arg">self</span>,
219        <span class="summary-sig-arg">amt</span>)</span><br />
220      Read the number of bytes requested, compensating for partial reads.</td>
221          <td align="right" valign="top">
222           
223           
224          </td>
225        </tr>
226      </table>
227     
228    </td>
229  </tr>
230<tr>
231    <td width="15%" align="right" valign="top" class="summary">
232      <span class="summary-type">&nbsp;</span>
233    </td><td class="summary">
234      <table width="100%" cellpadding="0" cellspacing="0" border="0">
235        <tr>
236          <td><span class="summary-sig"><a name="getheader"></a><span class="summary-sig-name">getheader</span>(<span class="summary-sig-arg">self</span>,
237        <span class="summary-sig-arg">name</span>,
238        <span class="summary-sig-arg">default</span>=<span class="summary-sig-default">None</span>)</span></td>
239          <td align="right" valign="top">
240           
241           
242          </td>
243        </tr>
244      </table>
245     
246    </td>
247  </tr>
248<tr>
249    <td width="15%" align="right" valign="top" class="summary">
250      <span class="summary-type">&nbsp;</span>
251    </td><td class="summary">
252      <table width="100%" cellpadding="0" cellspacing="0" border="0">
253        <tr>
254          <td><span class="summary-sig"><a name="getheaders"></a><span class="summary-sig-name">getheaders</span>(<span class="summary-sig-arg">self</span>)</span><br />
255      Return list of (header, value) tuples.</td>
256          <td align="right" valign="top">
257           
258           
259          </td>
260        </tr>
261      </table>
262     
263    </td>
264  </tr>
265</table>
266<!-- ==================== METHOD DETAILS ==================== -->
267<a name="section-MethodDetails"></a>
268<table class="details" border="1" cellpadding="3"
269       cellspacing="0" width="100%" bgcolor="white">
270<tr bgcolor="#70b0f0" class="table-header">
271  <td colspan="2" class="table-header">
272    <table border="0" cellpadding="0" cellspacing="0" width="100%">
273      <tr valign="top">
274        <td align="left"><span class="table-header">Method Details</span></td>
275        <td align="right" valign="top"
276         ><span class="options">[<a href="#section-MethodDetails"
277         class="privatelink" onclick="toggle_private();"
278         >hide private</a>]</span></td>
279      </tr>
280    </table>
281  </td>
282</tr>
283</table>
284<a name="_safe_read"></a>
285<div class="private">
286<table class="details" border="1" cellpadding="3"
287       cellspacing="0" width="100%" bgcolor="white">
288<tr><td>
289  <table width="100%" cellpadding="0" cellspacing="0" border="0">
290  <tr valign="top"><td>
291  <h3 class="epydoc"><span class="sig"><span class="sig-name">_safe_read</span>(<span class="sig-arg">self</span>,
292        <span class="sig-arg">amt</span>)</span>
293  </h3>
294  </td><td align="right" valign="top"
295    >&nbsp;
296    </td>
297  </tr></table>
298 
299  <p>Read the number of bytes requested, compensating for partial
300  reads.</p>
301  <p>Normally, we have a blocking socket, but a read() can be interrupted
302  by a signal (resulting in a partial read).</p>
303  <p>Note that we cannot distinguish between EOF and an interrupt when zero
304  bytes have been read. IncompleteRead() will be raised in this
305  situation.</p>
306  <p>This function should be used when &lt;amt&gt; bytes &quot;should&quot;
307  be present for reading. If the bytes are truly not available (due to
308  EOF), then the IncompleteRead exception can be used to detect the
309  problem.</p>
310  <dl class="fields">
311  </dl>
312</td></tr></table>
313</div>
314<br />
315<!-- ==================== NAVIGATION BAR ==================== -->
316<table class="navbar" border="0" width="100%" cellpadding="0"
317       bgcolor="#a0c0ff" cellspacing="0">
318  <tr valign="middle">
319  <!-- Home link -->
320      <th>&nbsp;&nbsp;&nbsp;<a
321        href="ndg-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
322
323  <!-- Tree link -->
324      <th>&nbsp;&nbsp;&nbsp;<a
325        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
326
327  <!-- Index link -->
328      <th>&nbsp;&nbsp;&nbsp;<a
329        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
330
331  <!-- Help link -->
332      <th>&nbsp;&nbsp;&nbsp;<a
333        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
334
335  <!-- Project homepage -->
336      <th class="navbar" align="right" width="100%">
337        <table border="0" cellpadding="0" cellspacing="0">
338          <tr><th class="navbar" align="center"
339            >NDG Security</th>
340          </tr></table></th>
341  </tr>
342</table>
343<table border="0" cellpadding="0" cellspacing="0" width="100%%">
344  <tr>
345    <td align="left" class="footer">
346    <a href="epydoc-log.html">Generated by Epydoc
347    3.0.1 on Thu Sep  4 09:37:41 2008</a>
348    </td>
349    <td align="right" class="footer">
350      <a target="mainFrame" href="http://epydoc.sourceforge.net"
351        >http://epydoc.sourceforge.net</a>
352    </td>
353  </tr>
354</table>
355
356<script type="text/javascript">
357  <!--
358  // Private objects are initially displayed (because if
359  // javascript is turned off then we want them to be
360  // visible); but by default, we want to hide them.  So hide
361  // them unless we have a cookie that says to show them.
362  checkCookie();
363  // -->
364</script>
365</body>
366</html>
Note: See TracBrowser for help on using the repository browser.