blob: 8be442d51c94fdb912b68e2df7ab02eaec11c1e1 [file] [log] [blame]
Joe Gregorio55d58182011-02-20 01:42:07 -05001
2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3<html><head><title>Python: package httplib2</title>
4</head><body bgcolor="#f0f0f8">
5
6<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
7<tr bgcolor="#7799ee">
8<td valign=bottom>&nbsp;<br>
9<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>httplib2</strong></big></big> (version $Rev$)</font></td
10><td align=right valign=bottom
Joe Gregorio20a5aa92011-04-01 17:44:25 -040011><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jcgregorio/projects/apiclient-release/httplib2/__init__.py">/home/jcgregorio/projects/apiclient-release/httplib2/__init__.py</a></font></td></tr></table>
Joe Gregorio55d58182011-02-20 01:42:07 -050012 <p></p>
13<p>
14<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
15<tr bgcolor="#aa55cc">
16<td colspan=3 valign=bottom>&nbsp;<br>
17<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
18
19<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
20<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="httplib2.iri2uri.html">iri2uri</a><br>
21</td><td width="25%" valign=top><a href="httplib2.socks.html">socks</a><br>
22</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
23<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
24<tr bgcolor="#ee77aa">
25<td colspan=3 valign=bottom>&nbsp;<br>
26<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
27
28<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
29<td width="100%"><dl>
30<dt><font face="helvetica, arial"><a href="__builtin__.html#dict">__builtin__.dict</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
31</font></dt><dd>
32<dl>
33<dt><font face="helvetica, arial"><a href="httplib2.html#Response">Response</a>
34</font></dt></dl>
35</dd>
36<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
37</font></dt><dd>
38<dl>
39<dt><font face="helvetica, arial"><a href="httplib2.html#Http">Http</a>
40</font></dt><dt><font face="helvetica, arial"><a href="httplib2.html#ProxyInfo">ProxyInfo</a>
41</font></dt></dl>
42</dd>
43<dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>)
44</font></dt><dd>
45<dl>
46<dt><font face="helvetica, arial"><a href="httplib2.html#HttpLib2Error">HttpLib2Error</a>
47</font></dt><dd>
48<dl>
49<dt><font face="helvetica, arial"><a href="httplib2.html#ProxiesUnavailableError">ProxiesUnavailableError</a>
50</font></dt></dl>
51</dd>
52</dl>
53</dd>
54<dt><font face="helvetica, arial"><a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>(<a href="httplib2.html#HttpLib2Error">HttpLib2Error</a>)
55</font></dt><dd>
56<dl>
57<dt><font face="helvetica, arial"><a href="httplib2.html#FailedToDecompressContent">FailedToDecompressContent</a>
58</font></dt><dt><font face="helvetica, arial"><a href="httplib2.html#RedirectLimit">RedirectLimit</a>
59</font></dt><dt><font face="helvetica, arial"><a href="httplib2.html#RedirectMissingLocation">RedirectMissingLocation</a>
60</font></dt><dt><font face="helvetica, arial"><a href="httplib2.html#UnimplementedDigestAuthOptionError">UnimplementedDigestAuthOptionError</a>
61</font></dt><dt><font face="helvetica, arial"><a href="httplib2.html#UnimplementedHmacDigestAuthOptionError">UnimplementedHmacDigestAuthOptionError</a>
62</font></dt></dl>
63</dd>
64</dl>
65 <p>
66<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
67<tr bgcolor="#ffc8d8">
68<td colspan=3 valign=bottom>&nbsp;<br>
69<font color="#000000" face="helvetica, arial"><a name="FailedToDecompressContent">class <strong>FailedToDecompressContent</strong></a>(<a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>)</font></td></tr>
70
71<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
72<td width="100%"><dl><dt>Method resolution order:</dt>
73<dd><a href="httplib2.html#FailedToDecompressContent">FailedToDecompressContent</a></dd>
74<dd><a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a></dd>
75<dd><a href="httplib2.html#HttpLib2Error">HttpLib2Error</a></dd>
76<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
77<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
78<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
79</dl>
80<hr>
81Methods inherited from <a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>:<br>
82<dl><dt><a name="FailedToDecompressContent-__init__"><strong>__init__</strong></a>(self, desc, response, content)</dt></dl>
83
84<hr>
85Data descriptors inherited from <a href="httplib2.html#HttpLib2Error">HttpLib2Error</a>:<br>
86<dl><dt><strong>__weakref__</strong></dt>
87<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
88</dl>
89<hr>
90Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
91<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#FailedToDecompressContent-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
92
93<hr>
94Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
95<dl><dt><a name="FailedToDecompressContent-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#FailedToDecompressContent-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>
96
97<dl><dt><a name="FailedToDecompressContent-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#FailedToDecompressContent-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
98
99<dl><dt><a name="FailedToDecompressContent-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#FailedToDecompressContent-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
100
101<dl><dt><a name="FailedToDecompressContent-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#FailedToDecompressContent-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
102&nbsp;<br>
103Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>
104
105<dl><dt><a name="FailedToDecompressContent-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
106
107<dl><dt><a name="FailedToDecompressContent-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#FailedToDecompressContent-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
108
109<dl><dt><a name="FailedToDecompressContent-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#FailedToDecompressContent-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>
110
111<dl><dt><a name="FailedToDecompressContent-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
112
113<dl><dt><a name="FailedToDecompressContent-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#FailedToDecompressContent-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>
114
115<dl><dt><a name="FailedToDecompressContent-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
116
117<hr>
118Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
119<dl><dt><strong>__dict__</strong></dt>
120</dl>
121<dl><dt><strong>args</strong></dt>
122</dl>
123<dl><dt><strong>message</strong></dt>
124</dl>
125</td></tr></table> <p>
126<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
127<tr bgcolor="#ffc8d8">
128<td colspan=3 valign=bottom>&nbsp;<br>
129<font color="#000000" face="helvetica, arial"><a name="Http">class <strong>Http</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
130
131<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
132<td colspan=2><tt>An&nbsp;HTTP&nbsp;client&nbsp;that&nbsp;handles:<br>
133-&nbsp;all&nbsp;methods<br>
134-&nbsp;caching<br>
135-&nbsp;ETags<br>
136-&nbsp;compression,<br>
137-&nbsp;HTTPS<br>
138-&nbsp;Basic<br>
139-&nbsp;Digest<br>
140-&nbsp;WSSE<br>
141&nbsp;<br>
142and&nbsp;more.<br>&nbsp;</tt></td></tr>
143<tr><td>&nbsp;</td>
144<td width="100%">Methods defined here:<br>
145<dl><dt><a name="Http-__init__"><strong>__init__</strong></a>(self, cache<font color="#909090">=None</font>, timeout<font color="#909090">=None</font>, proxy_info<font color="#909090">=None</font>)</dt><dd><tt>The&nbsp;value&nbsp;of&nbsp;proxy_info&nbsp;is&nbsp;a&nbsp;<a href="#ProxyInfo">ProxyInfo</a>&nbsp;instance.<br>
146&nbsp;<br>
147If&nbsp;'cache'&nbsp;is&nbsp;a&nbsp;string&nbsp;then&nbsp;it&nbsp;is&nbsp;used&nbsp;as&nbsp;a&nbsp;directory&nbsp;name<br>
148for&nbsp;a&nbsp;disk&nbsp;cache.&nbsp;Otherwise&nbsp;it&nbsp;must&nbsp;be&nbsp;an&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;that&nbsp;supports<br>
149the&nbsp;same&nbsp;interface&nbsp;as&nbsp;FileCache.</tt></dd></dl>
150
151<dl><dt><a name="Http-add_certificate"><strong>add_certificate</strong></a>(self, key, cert, domain)</dt><dd><tt>Add&nbsp;a&nbsp;key&nbsp;and&nbsp;cert&nbsp;that&nbsp;will&nbsp;be&nbsp;used<br>
152any&nbsp;time&nbsp;a&nbsp;request&nbsp;requires&nbsp;authentication.</tt></dd></dl>
153
154<dl><dt><a name="Http-add_credentials"><strong>add_credentials</strong></a>(self, name, password, domain<font color="#909090">=''</font>)</dt><dd><tt>Add&nbsp;a&nbsp;name&nbsp;and&nbsp;password&nbsp;that&nbsp;will&nbsp;be&nbsp;used<br>
155any&nbsp;time&nbsp;a&nbsp;request&nbsp;requires&nbsp;authentication.</tt></dd></dl>
156
157<dl><dt><a name="Http-clear_credentials"><strong>clear_credentials</strong></a>(self)</dt><dd><tt>Remove&nbsp;all&nbsp;the&nbsp;names&nbsp;and&nbsp;passwords<br>
158that&nbsp;are&nbsp;used&nbsp;for&nbsp;authentication</tt></dd></dl>
159
160<dl><dt><a name="Http-request"><strong>request</strong></a>(self, uri, method<font color="#909090">='GET'</font>, body<font color="#909090">=None</font>, headers<font color="#909090">=None</font>, redirections<font color="#909090">=5</font>, connection_type<font color="#909090">=None</font>)</dt><dd><tt>Performs&nbsp;a&nbsp;single&nbsp;HTTP&nbsp;request.<br>
161The&nbsp;'uri'&nbsp;is&nbsp;the&nbsp;URI&nbsp;of&nbsp;the&nbsp;HTTP&nbsp;resource&nbsp;and&nbsp;can&nbsp;begin<br>
162with&nbsp;either&nbsp;'http'&nbsp;or&nbsp;'https'.&nbsp;The&nbsp;value&nbsp;of&nbsp;'uri'&nbsp;must&nbsp;be&nbsp;an&nbsp;absolute&nbsp;URI.<br>
163&nbsp;<br>
164The&nbsp;'method'&nbsp;is&nbsp;the&nbsp;HTTP&nbsp;method&nbsp;to&nbsp;perform,&nbsp;such&nbsp;as&nbsp;GET,&nbsp;POST,&nbsp;DELETE,&nbsp;etc.<br>
165There&nbsp;is&nbsp;no&nbsp;restriction&nbsp;on&nbsp;the&nbsp;methods&nbsp;allowed.<br>
166&nbsp;<br>
167The&nbsp;'body'&nbsp;is&nbsp;the&nbsp;entity&nbsp;body&nbsp;to&nbsp;be&nbsp;sent&nbsp;with&nbsp;the&nbsp;request.&nbsp;It&nbsp;is&nbsp;a&nbsp;string<br>
168<a href="__builtin__.html#object">object</a>.<br>
169&nbsp;<br>
170Any&nbsp;extra&nbsp;headers&nbsp;that&nbsp;are&nbsp;to&nbsp;be&nbsp;sent&nbsp;with&nbsp;the&nbsp;request&nbsp;should&nbsp;be&nbsp;provided&nbsp;in&nbsp;the<br>
171'headers'&nbsp;dictionary.<br>
172&nbsp;<br>
173The&nbsp;maximum&nbsp;number&nbsp;of&nbsp;redirect&nbsp;to&nbsp;follow&nbsp;before&nbsp;raising&nbsp;an<br>
174exception&nbsp;is&nbsp;'redirections.&nbsp;The&nbsp;default&nbsp;is&nbsp;5.<br>
175&nbsp;<br>
176The&nbsp;return&nbsp;value&nbsp;is&nbsp;a&nbsp;tuple&nbsp;of&nbsp;(response,&nbsp;content),&nbsp;the&nbsp;first<br>
177being&nbsp;and&nbsp;instance&nbsp;of&nbsp;the&nbsp;'<a href="#Response">Response</a>'&nbsp;class,&nbsp;the&nbsp;second&nbsp;being<br>
178a&nbsp;string&nbsp;that&nbsp;contains&nbsp;the&nbsp;response&nbsp;entity&nbsp;body.</tt></dd></dl>
179
180<hr>
181Data descriptors defined here:<br>
182<dl><dt><strong>__dict__</strong></dt>
183<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
184</dl>
185<dl><dt><strong>__weakref__</strong></dt>
186<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
187</dl>
188</td></tr></table> <p>
189<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
190<tr bgcolor="#ffc8d8">
191<td colspan=3 valign=bottom>&nbsp;<br>
192<font color="#000000" face="helvetica, arial"><a name="HttpLib2Error">class <strong>HttpLib2Error</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
193
194<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
195<td colspan=2><tt>#&nbsp;All&nbsp;exceptions&nbsp;raised&nbsp;here&nbsp;derive&nbsp;from&nbsp;<a href="#HttpLib2Error">HttpLib2Error</a><br>&nbsp;</tt></td></tr>
196<tr><td>&nbsp;</td>
197<td width="100%"><dl><dt>Method resolution order:</dt>
198<dd><a href="httplib2.html#HttpLib2Error">HttpLib2Error</a></dd>
199<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
200<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
201<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
202</dl>
203<hr>
204Data descriptors defined here:<br>
205<dl><dt><strong>__weakref__</strong></dt>
206<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
207</dl>
208<hr>
209Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
Joe Gregorio4258d6b2011-03-18 10:20:16 -0400210<dl><dt><a name="HttpLib2Error-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpLib2Error-__init__">__init__</a>(...)&nbsp;initializes&nbsp;x;&nbsp;see&nbsp;help(type(x))&nbsp;for&nbsp;signature</tt></dd></dl>
Joe Gregorio55d58182011-02-20 01:42:07 -0500211
212<hr>
213Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
214<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#HttpLib2Error-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
215
216<hr>
217Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
218<dl><dt><a name="HttpLib2Error-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpLib2Error-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>
219
220<dl><dt><a name="HttpLib2Error-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpLib2Error-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
221
222<dl><dt><a name="HttpLib2Error-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpLib2Error-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
223
224<dl><dt><a name="HttpLib2Error-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpLib2Error-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
225&nbsp;<br>
226Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>
227
228<dl><dt><a name="HttpLib2Error-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
229
230<dl><dt><a name="HttpLib2Error-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpLib2Error-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
231
232<dl><dt><a name="HttpLib2Error-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpLib2Error-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>
233
234<dl><dt><a name="HttpLib2Error-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
235
236<dl><dt><a name="HttpLib2Error-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#HttpLib2Error-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>
237
238<dl><dt><a name="HttpLib2Error-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
239
240<hr>
241Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
242<dl><dt><strong>__dict__</strong></dt>
243</dl>
244<dl><dt><strong>args</strong></dt>
245</dl>
246<dl><dt><strong>message</strong></dt>
247</dl>
248</td></tr></table> <p>
249<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
250<tr bgcolor="#ffc8d8">
251<td colspan=3 valign=bottom>&nbsp;<br>
252<font color="#000000" face="helvetica, arial"><a name="ProxiesUnavailableError">class <strong>ProxiesUnavailableError</strong></a>(<a href="httplib2.html#HttpLib2Error">HttpLib2Error</a>)</font></td></tr>
253
254<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
255<td width="100%"><dl><dt>Method resolution order:</dt>
256<dd><a href="httplib2.html#ProxiesUnavailableError">ProxiesUnavailableError</a></dd>
257<dd><a href="httplib2.html#HttpLib2Error">HttpLib2Error</a></dd>
258<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
259<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
260<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
261</dl>
262<hr>
263Data descriptors inherited from <a href="httplib2.html#HttpLib2Error">HttpLib2Error</a>:<br>
264<dl><dt><strong>__weakref__</strong></dt>
265<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
266</dl>
267<hr>
268Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
Joe Gregorio4258d6b2011-03-18 10:20:16 -0400269<dl><dt><a name="ProxiesUnavailableError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#ProxiesUnavailableError-__init__">__init__</a>(...)&nbsp;initializes&nbsp;x;&nbsp;see&nbsp;help(type(x))&nbsp;for&nbsp;signature</tt></dd></dl>
Joe Gregorio55d58182011-02-20 01:42:07 -0500270
271<hr>
272Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
273<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#ProxiesUnavailableError-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
274
275<hr>
276Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
277<dl><dt><a name="ProxiesUnavailableError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ProxiesUnavailableError-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>
278
279<dl><dt><a name="ProxiesUnavailableError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#ProxiesUnavailableError-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
280
281<dl><dt><a name="ProxiesUnavailableError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#ProxiesUnavailableError-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
282
283<dl><dt><a name="ProxiesUnavailableError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#ProxiesUnavailableError-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
284&nbsp;<br>
285Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>
286
287<dl><dt><a name="ProxiesUnavailableError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
288
289<dl><dt><a name="ProxiesUnavailableError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#ProxiesUnavailableError-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
290
291<dl><dt><a name="ProxiesUnavailableError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ProxiesUnavailableError-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>
292
293<dl><dt><a name="ProxiesUnavailableError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
294
295<dl><dt><a name="ProxiesUnavailableError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#ProxiesUnavailableError-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>
296
297<dl><dt><a name="ProxiesUnavailableError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
298
299<hr>
300Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
301<dl><dt><strong>__dict__</strong></dt>
302</dl>
303<dl><dt><strong>args</strong></dt>
304</dl>
305<dl><dt><strong>message</strong></dt>
306</dl>
307</td></tr></table> <p>
308<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
309<tr bgcolor="#ffc8d8">
310<td colspan=3 valign=bottom>&nbsp;<br>
311<font color="#000000" face="helvetica, arial"><a name="ProxyInfo">class <strong>ProxyInfo</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
312
313<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
314<td colspan=2><tt>Collect&nbsp;information&nbsp;required&nbsp;to&nbsp;use&nbsp;a&nbsp;proxy.<br>&nbsp;</tt></td></tr>
315<tr><td>&nbsp;</td>
316<td width="100%">Methods defined here:<br>
317<dl><dt><a name="ProxyInfo-__init__"><strong>__init__</strong></a>(self, proxy_type, proxy_host, proxy_port, proxy_rdns<font color="#909090">=None</font>, proxy_user<font color="#909090">=None</font>, proxy_pass<font color="#909090">=None</font>)</dt><dd><tt>The&nbsp;parameter&nbsp;proxy_type&nbsp;must&nbsp;be&nbsp;set&nbsp;to&nbsp;one&nbsp;of&nbsp;socks.PROXY_TYPE_XXX<br>
318&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constants.&nbsp;For&nbsp;example:<br>
319&nbsp;<br>
320p&nbsp;=&nbsp;<a href="#ProxyInfo">ProxyInfo</a>(proxy_type=socks.PROXY_TYPE_HTTP,&nbsp;proxy_host='localhost',&nbsp;proxy_port=8000)</tt></dd></dl>
321
322<dl><dt><a name="ProxyInfo-astuple"><strong>astuple</strong></a>(self)</dt></dl>
323
324<dl><dt><a name="ProxyInfo-isgood"><strong>isgood</strong></a>(self)</dt></dl>
325
326<hr>
327Data descriptors defined here:<br>
328<dl><dt><strong>__dict__</strong></dt>
329<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
330</dl>
331<dl><dt><strong>__weakref__</strong></dt>
332<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
333</dl>
334</td></tr></table> <p>
335<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
336<tr bgcolor="#ffc8d8">
337<td colspan=3 valign=bottom>&nbsp;<br>
338<font color="#000000" face="helvetica, arial"><a name="RedirectLimit">class <strong>RedirectLimit</strong></a>(<a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>)</font></td></tr>
339
340<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
341<td width="100%"><dl><dt>Method resolution order:</dt>
342<dd><a href="httplib2.html#RedirectLimit">RedirectLimit</a></dd>
343<dd><a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a></dd>
344<dd><a href="httplib2.html#HttpLib2Error">HttpLib2Error</a></dd>
345<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
346<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
347<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
348</dl>
349<hr>
350Methods inherited from <a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>:<br>
351<dl><dt><a name="RedirectLimit-__init__"><strong>__init__</strong></a>(self, desc, response, content)</dt></dl>
352
353<hr>
354Data descriptors inherited from <a href="httplib2.html#HttpLib2Error">HttpLib2Error</a>:<br>
355<dl><dt><strong>__weakref__</strong></dt>
356<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
357</dl>
358<hr>
359Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
360<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#RedirectLimit-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
361
362<hr>
363Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
364<dl><dt><a name="RedirectLimit-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectLimit-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>
365
366<dl><dt><a name="RedirectLimit-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectLimit-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
367
368<dl><dt><a name="RedirectLimit-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectLimit-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
369
370<dl><dt><a name="RedirectLimit-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectLimit-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
371&nbsp;<br>
372Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>
373
374<dl><dt><a name="RedirectLimit-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
375
376<dl><dt><a name="RedirectLimit-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectLimit-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
377
378<dl><dt><a name="RedirectLimit-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectLimit-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>
379
380<dl><dt><a name="RedirectLimit-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
381
382<dl><dt><a name="RedirectLimit-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectLimit-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>
383
384<dl><dt><a name="RedirectLimit-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
385
386<hr>
387Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
388<dl><dt><strong>__dict__</strong></dt>
389</dl>
390<dl><dt><strong>args</strong></dt>
391</dl>
392<dl><dt><strong>message</strong></dt>
393</dl>
394</td></tr></table> <p>
395<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
396<tr bgcolor="#ffc8d8">
397<td colspan=3 valign=bottom>&nbsp;<br>
398<font color="#000000" face="helvetica, arial"><a name="RedirectMissingLocation">class <strong>RedirectMissingLocation</strong></a>(<a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>)</font></td></tr>
399
400<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
401<td width="100%"><dl><dt>Method resolution order:</dt>
402<dd><a href="httplib2.html#RedirectMissingLocation">RedirectMissingLocation</a></dd>
403<dd><a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a></dd>
404<dd><a href="httplib2.html#HttpLib2Error">HttpLib2Error</a></dd>
405<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
406<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
407<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
408</dl>
409<hr>
410Methods inherited from <a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>:<br>
411<dl><dt><a name="RedirectMissingLocation-__init__"><strong>__init__</strong></a>(self, desc, response, content)</dt></dl>
412
413<hr>
414Data descriptors inherited from <a href="httplib2.html#HttpLib2Error">HttpLib2Error</a>:<br>
415<dl><dt><strong>__weakref__</strong></dt>
416<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
417</dl>
418<hr>
419Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
420<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#RedirectMissingLocation-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
421
422<hr>
423Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
424<dl><dt><a name="RedirectMissingLocation-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectMissingLocation-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>
425
426<dl><dt><a name="RedirectMissingLocation-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectMissingLocation-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
427
428<dl><dt><a name="RedirectMissingLocation-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectMissingLocation-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
429
430<dl><dt><a name="RedirectMissingLocation-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectMissingLocation-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
431&nbsp;<br>
432Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>
433
434<dl><dt><a name="RedirectMissingLocation-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
435
436<dl><dt><a name="RedirectMissingLocation-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectMissingLocation-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
437
438<dl><dt><a name="RedirectMissingLocation-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectMissingLocation-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>
439
440<dl><dt><a name="RedirectMissingLocation-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
441
442<dl><dt><a name="RedirectMissingLocation-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#RedirectMissingLocation-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>
443
444<dl><dt><a name="RedirectMissingLocation-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
445
446<hr>
447Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
448<dl><dt><strong>__dict__</strong></dt>
449</dl>
450<dl><dt><strong>args</strong></dt>
451</dl>
452<dl><dt><strong>message</strong></dt>
453</dl>
454</td></tr></table> <p>
455<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
456<tr bgcolor="#ffc8d8">
457<td colspan=3 valign=bottom>&nbsp;<br>
458<font color="#000000" face="helvetica, arial"><a name="Response">class <strong>Response</strong></a>(<a href="__builtin__.html#dict">__builtin__.dict</a>)</font></td></tr>
459
460<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
461<td colspan=2><tt>An&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;more&nbsp;like&nbsp;email.Message&nbsp;than&nbsp;httplib.HTTPResponse.<br>&nbsp;</tt></td></tr>
462<tr><td>&nbsp;</td>
463<td width="100%"><dl><dt>Method resolution order:</dt>
464<dd><a href="httplib2.html#Response">Response</a></dd>
465<dd><a href="__builtin__.html#dict">__builtin__.dict</a></dd>
466<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
467</dl>
468<hr>
469Methods defined here:<br>
470<dl><dt><a name="Response-__getattr__"><strong>__getattr__</strong></a>(self, name)</dt></dl>
471
472<dl><dt><a name="Response-__init__"><strong>__init__</strong></a>(self, info)</dt></dl>
473
474<hr>
475Data descriptors defined here:<br>
476<dl><dt><strong>__dict__</strong></dt>
477<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
478</dl>
479<dl><dt><strong>__weakref__</strong></dt>
480<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
481</dl>
482<hr>
483Data and other attributes defined here:<br>
484<dl><dt><strong>fromcache</strong> = False</dl>
485
486<dl><dt><strong>previous</strong> = None</dl>
487
488<dl><dt><strong>reason</strong> = 'Ok'</dl>
489
490<dl><dt><strong>status</strong> = 200</dl>
491
492<dl><dt><strong>version</strong> = 11</dl>
493
494<hr>
495Methods inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br>
496<dl><dt><a name="Response-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__cmp__">__cmp__</a>(y)&nbsp;&lt;==&gt;&nbsp;cmp(x,y)</tt></dd></dl>
497
498<dl><dt><a name="Response-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>D.<a href="#Response-__contains__">__contains__</a>(k)&nbsp;-&gt;&nbsp;True&nbsp;if&nbsp;D&nbsp;has&nbsp;a&nbsp;key&nbsp;k,&nbsp;else&nbsp;False</tt></dd></dl>
499
500<dl><dt><a name="Response-__delitem__"><strong>__delitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__delitem__">__delitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;del&nbsp;x[y]</tt></dd></dl>
501
502<dl><dt><a name="Response-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__eq__">__eq__</a>(y)&nbsp;&lt;==&gt;&nbsp;x==y</tt></dd></dl>
503
504<dl><dt><a name="Response-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__ge__">__ge__</a>(y)&nbsp;&lt;==&gt;&nbsp;x&gt;=y</tt></dd></dl>
505
506<dl><dt><a name="Response-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
507
508<dl><dt><a name="Response-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
509
510<dl><dt><a name="Response-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__gt__">__gt__</a>(y)&nbsp;&lt;==&gt;&nbsp;x&gt;y</tt></dd></dl>
511
512<dl><dt><a name="Response-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__iter__">__iter__</a>()&nbsp;&lt;==&gt;&nbsp;iter(x)</tt></dd></dl>
513
514<dl><dt><a name="Response-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__le__">__le__</a>(y)&nbsp;&lt;==&gt;&nbsp;x&lt;=y</tt></dd></dl>
515
516<dl><dt><a name="Response-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__len__">__len__</a>()&nbsp;&lt;==&gt;&nbsp;len(x)</tt></dd></dl>
517
518<dl><dt><a name="Response-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__lt__">__lt__</a>(y)&nbsp;&lt;==&gt;&nbsp;x&lt;y</tt></dd></dl>
519
520<dl><dt><a name="Response-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__ne__">__ne__</a>(y)&nbsp;&lt;==&gt;&nbsp;x!=y</tt></dd></dl>
521
522<dl><dt><a name="Response-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
523
524<dl><dt><a name="Response-__setitem__"><strong>__setitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Response-__setitem__">__setitem__</a>(i,&nbsp;y)&nbsp;&lt;==&gt;&nbsp;x[i]=y</tt></dd></dl>
525
526<dl><dt><a name="Response-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt><dd><tt>D.<a href="#Response-__sizeof__">__sizeof__</a>()&nbsp;-&gt;&nbsp;size&nbsp;of&nbsp;D&nbsp;in&nbsp;memory,&nbsp;in&nbsp;bytes</tt></dd></dl>
527
528<dl><dt><a name="Response-clear"><strong>clear</strong></a>(...)</dt><dd><tt>D.<a href="#Response-clear">clear</a>()&nbsp;-&gt;&nbsp;None.&nbsp;&nbsp;Remove&nbsp;all&nbsp;items&nbsp;from&nbsp;D.</tt></dd></dl>
529
530<dl><dt><a name="Response-copy"><strong>copy</strong></a>(...)</dt><dd><tt>D.<a href="#Response-copy">copy</a>()&nbsp;-&gt;&nbsp;a&nbsp;shallow&nbsp;copy&nbsp;of&nbsp;D</tt></dd></dl>
531
532<dl><dt><a name="Response-get"><strong>get</strong></a>(...)</dt><dd><tt>D.<a href="#Response-get">get</a>(k[,d])&nbsp;-&gt;&nbsp;D[k]&nbsp;if&nbsp;k&nbsp;in&nbsp;D,&nbsp;else&nbsp;d.&nbsp;&nbsp;d&nbsp;defaults&nbsp;to&nbsp;None.</tt></dd></dl>
533
534<dl><dt><a name="Response-has_key"><strong>has_key</strong></a>(...)</dt><dd><tt>D.<a href="#Response-has_key">has_key</a>(k)&nbsp;-&gt;&nbsp;True&nbsp;if&nbsp;D&nbsp;has&nbsp;a&nbsp;key&nbsp;k,&nbsp;else&nbsp;False</tt></dd></dl>
535
536<dl><dt><a name="Response-items"><strong>items</strong></a>(...)</dt><dd><tt>D.<a href="#Response-items">items</a>()&nbsp;-&gt;&nbsp;list&nbsp;of&nbsp;D's&nbsp;(key,&nbsp;value)&nbsp;pairs,&nbsp;as&nbsp;2-tuples</tt></dd></dl>
537
538<dl><dt><a name="Response-iteritems"><strong>iteritems</strong></a>(...)</dt><dd><tt>D.<a href="#Response-iteritems">iteritems</a>()&nbsp;-&gt;&nbsp;an&nbsp;iterator&nbsp;over&nbsp;the&nbsp;(key,&nbsp;value)&nbsp;items&nbsp;of&nbsp;D</tt></dd></dl>
539
540<dl><dt><a name="Response-iterkeys"><strong>iterkeys</strong></a>(...)</dt><dd><tt>D.<a href="#Response-iterkeys">iterkeys</a>()&nbsp;-&gt;&nbsp;an&nbsp;iterator&nbsp;over&nbsp;the&nbsp;keys&nbsp;of&nbsp;D</tt></dd></dl>
541
542<dl><dt><a name="Response-itervalues"><strong>itervalues</strong></a>(...)</dt><dd><tt>D.<a href="#Response-itervalues">itervalues</a>()&nbsp;-&gt;&nbsp;an&nbsp;iterator&nbsp;over&nbsp;the&nbsp;values&nbsp;of&nbsp;D</tt></dd></dl>
543
544<dl><dt><a name="Response-keys"><strong>keys</strong></a>(...)</dt><dd><tt>D.<a href="#Response-keys">keys</a>()&nbsp;-&gt;&nbsp;list&nbsp;of&nbsp;D's&nbsp;keys</tt></dd></dl>
545
546<dl><dt><a name="Response-pop"><strong>pop</strong></a>(...)</dt><dd><tt>D.<a href="#Response-pop">pop</a>(k[,d])&nbsp;-&gt;&nbsp;v,&nbsp;remove&nbsp;specified&nbsp;key&nbsp;and&nbsp;return&nbsp;the&nbsp;corresponding&nbsp;value.<br>
547If&nbsp;key&nbsp;is&nbsp;not&nbsp;found,&nbsp;d&nbsp;is&nbsp;returned&nbsp;if&nbsp;given,&nbsp;otherwise&nbsp;KeyError&nbsp;is&nbsp;raised</tt></dd></dl>
548
549<dl><dt><a name="Response-popitem"><strong>popitem</strong></a>(...)</dt><dd><tt>D.<a href="#Response-popitem">popitem</a>()&nbsp;-&gt;&nbsp;(k,&nbsp;v),&nbsp;remove&nbsp;and&nbsp;return&nbsp;some&nbsp;(key,&nbsp;value)&nbsp;pair&nbsp;as&nbsp;a<br>
5502-tuple;&nbsp;but&nbsp;raise&nbsp;KeyError&nbsp;if&nbsp;D&nbsp;is&nbsp;empty.</tt></dd></dl>
551
552<dl><dt><a name="Response-setdefault"><strong>setdefault</strong></a>(...)</dt><dd><tt>D.<a href="#Response-setdefault">setdefault</a>(k[,d])&nbsp;-&gt;&nbsp;D.<a href="#Response-get">get</a>(k,d),&nbsp;also&nbsp;set&nbsp;D[k]=d&nbsp;if&nbsp;k&nbsp;not&nbsp;in&nbsp;D</tt></dd></dl>
553
554<dl><dt><a name="Response-update"><strong>update</strong></a>(...)</dt><dd><tt>D.<a href="#Response-update">update</a>(E,&nbsp;**F)&nbsp;-&gt;&nbsp;None.&nbsp;&nbsp;Update&nbsp;D&nbsp;from&nbsp;<a href="__builtin__.html#dict">dict</a>/iterable&nbsp;E&nbsp;and&nbsp;F.<br>
555If&nbsp;E&nbsp;has&nbsp;a&nbsp;.<a href="#Response-keys">keys</a>()&nbsp;method,&nbsp;does:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;k&nbsp;in&nbsp;E:&nbsp;D[k]&nbsp;=&nbsp;E[k]<br>
556If&nbsp;E&nbsp;lacks&nbsp;.<a href="#Response-keys">keys</a>()&nbsp;method,&nbsp;does:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(k,&nbsp;v)&nbsp;in&nbsp;E:&nbsp;D[k]&nbsp;=&nbsp;v<br>
557In&nbsp;either&nbsp;case,&nbsp;this&nbsp;is&nbsp;followed&nbsp;by:&nbsp;for&nbsp;k&nbsp;in&nbsp;F:&nbsp;D[k]&nbsp;=&nbsp;F[k]</tt></dd></dl>
558
559<dl><dt><a name="Response-values"><strong>values</strong></a>(...)</dt><dd><tt>D.<a href="#Response-values">values</a>()&nbsp;-&gt;&nbsp;list&nbsp;of&nbsp;D's&nbsp;values</tt></dd></dl>
560
Joe Gregorio4258d6b2011-03-18 10:20:16 -0400561<dl><dt><a name="Response-viewitems"><strong>viewitems</strong></a>(...)</dt><dd><tt>D.<a href="#Response-viewitems">viewitems</a>()&nbsp;-&gt;&nbsp;a&nbsp;set-like&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;providing&nbsp;a&nbsp;view&nbsp;on&nbsp;D's&nbsp;items</tt></dd></dl>
562
563<dl><dt><a name="Response-viewkeys"><strong>viewkeys</strong></a>(...)</dt><dd><tt>D.<a href="#Response-viewkeys">viewkeys</a>()&nbsp;-&gt;&nbsp;a&nbsp;set-like&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;providing&nbsp;a&nbsp;view&nbsp;on&nbsp;D's&nbsp;keys</tt></dd></dl>
564
565<dl><dt><a name="Response-viewvalues"><strong>viewvalues</strong></a>(...)</dt><dd><tt>D.<a href="#Response-viewvalues">viewvalues</a>()&nbsp;-&gt;&nbsp;an&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;providing&nbsp;a&nbsp;view&nbsp;on&nbsp;D's&nbsp;values</tt></dd></dl>
566
Joe Gregorio55d58182011-02-20 01:42:07 -0500567<hr>
568Data and other attributes inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br>
569<dl><dt><strong>__hash__</strong> = None</dl>
570
571<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#Response-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
572
573<dl><dt><strong>fromkeys</strong> = &lt;built-in method fromkeys of type object&gt;<dd><tt><a href="__builtin__.html#dict">dict</a>.<a href="#Response-fromkeys">fromkeys</a>(S[,v])&nbsp;-&gt;&nbsp;New&nbsp;<a href="__builtin__.html#dict">dict</a>&nbsp;with&nbsp;keys&nbsp;from&nbsp;S&nbsp;and&nbsp;values&nbsp;equal&nbsp;to&nbsp;v.<br>
574v&nbsp;defaults&nbsp;to&nbsp;None.</tt></dl>
575
576</td></tr></table> <p>
577<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
578<tr bgcolor="#ffc8d8">
579<td colspan=3 valign=bottom>&nbsp;<br>
580<font color="#000000" face="helvetica, arial"><a name="UnimplementedDigestAuthOptionError">class <strong>UnimplementedDigestAuthOptionError</strong></a>(<a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>)</font></td></tr>
581
582<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
583<td width="100%"><dl><dt>Method resolution order:</dt>
584<dd><a href="httplib2.html#UnimplementedDigestAuthOptionError">UnimplementedDigestAuthOptionError</a></dd>
585<dd><a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a></dd>
586<dd><a href="httplib2.html#HttpLib2Error">HttpLib2Error</a></dd>
587<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
588<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
589<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
590</dl>
591<hr>
592Methods inherited from <a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>:<br>
593<dl><dt><a name="UnimplementedDigestAuthOptionError-__init__"><strong>__init__</strong></a>(self, desc, response, content)</dt></dl>
594
595<hr>
596Data descriptors inherited from <a href="httplib2.html#HttpLib2Error">HttpLib2Error</a>:<br>
597<dl><dt><strong>__weakref__</strong></dt>
598<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
599</dl>
600<hr>
601Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
602<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#UnimplementedDigestAuthOptionError-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
603
604<hr>
605Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
606<dl><dt><a name="UnimplementedDigestAuthOptionError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedDigestAuthOptionError-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>
607
608<dl><dt><a name="UnimplementedDigestAuthOptionError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedDigestAuthOptionError-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
609
610<dl><dt><a name="UnimplementedDigestAuthOptionError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedDigestAuthOptionError-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
611
612<dl><dt><a name="UnimplementedDigestAuthOptionError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedDigestAuthOptionError-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
613&nbsp;<br>
614Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>
615
616<dl><dt><a name="UnimplementedDigestAuthOptionError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
617
618<dl><dt><a name="UnimplementedDigestAuthOptionError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedDigestAuthOptionError-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
619
620<dl><dt><a name="UnimplementedDigestAuthOptionError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedDigestAuthOptionError-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>
621
622<dl><dt><a name="UnimplementedDigestAuthOptionError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
623
624<dl><dt><a name="UnimplementedDigestAuthOptionError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedDigestAuthOptionError-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>
625
626<dl><dt><a name="UnimplementedDigestAuthOptionError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
627
628<hr>
629Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
630<dl><dt><strong>__dict__</strong></dt>
631</dl>
632<dl><dt><strong>args</strong></dt>
633</dl>
634<dl><dt><strong>message</strong></dt>
635</dl>
636</td></tr></table> <p>
637<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
638<tr bgcolor="#ffc8d8">
639<td colspan=3 valign=bottom>&nbsp;<br>
640<font color="#000000" face="helvetica, arial"><a name="UnimplementedHmacDigestAuthOptionError">class <strong>UnimplementedHmacDigestAuthOptionError</strong></a>(<a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>)</font></td></tr>
641
642<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
643<td width="100%"><dl><dt>Method resolution order:</dt>
644<dd><a href="httplib2.html#UnimplementedHmacDigestAuthOptionError">UnimplementedHmacDigestAuthOptionError</a></dd>
645<dd><a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a></dd>
646<dd><a href="httplib2.html#HttpLib2Error">HttpLib2Error</a></dd>
647<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
648<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
649<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
650</dl>
651<hr>
652Methods inherited from <a href="httplib2.html#HttpLib2ErrorWithResponse">HttpLib2ErrorWithResponse</a>:<br>
653<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__init__"><strong>__init__</strong></a>(self, desc, response, content)</dt></dl>
654
655<hr>
656Data descriptors inherited from <a href="httplib2.html#HttpLib2Error">HttpLib2Error</a>:<br>
657<dl><dt><strong>__weakref__</strong></dt>
658<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
659</dl>
660<hr>
661Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
662<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#UnimplementedHmacDigestAuthOptionError-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
663
664<hr>
665Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
666<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedHmacDigestAuthOptionError-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>
667
668<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedHmacDigestAuthOptionError-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
669
670<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedHmacDigestAuthOptionError-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
671
672<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedHmacDigestAuthOptionError-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
673&nbsp;<br>
674Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>
675
676<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
677
678<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedHmacDigestAuthOptionError-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
679
680<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedHmacDigestAuthOptionError-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>
681
682<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
683
684<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#UnimplementedHmacDigestAuthOptionError-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>
685
686<dl><dt><a name="UnimplementedHmacDigestAuthOptionError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
687
688<hr>
689Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
690<dl><dt><strong>__dict__</strong></dt>
691</dl>
692<dl><dt><strong>args</strong></dt>
693</dl>
694<dl><dt><strong>message</strong></dt>
695</dl>
696</td></tr></table></td></tr></table><p>
697<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
698<tr bgcolor="#55aa55">
699<td colspan=3 valign=bottom>&nbsp;<br>
700<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
701
702<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
703<td width="100%"><strong>__all__</strong> = ['Http', 'Response', 'ProxyInfo', 'HttpLib2Error', 'RedirectMissingLocation', 'RedirectLimit', 'FailedToDecompressContent', 'UnimplementedDigestAuthOptionError', 'UnimplementedHmacDigestAuthOptionError', 'debuglevel', 'ProxiesUnavailableError']<br>
704<strong>__author__</strong> = 'Joe Gregorio (joe@bitworking.org)'<br>
705<strong>__contributors__</strong> = ['Thomas Broyer (t.broyer@ltgt.net)', 'James Antill', 'Xavier Verges Farrero', 'Jonathan Feinberg', 'Blair Zajac', 'Sam Ruby', 'Louis Nyffenegger']<br>
706<strong>__copyright__</strong> = 'Copyright 2006, Joe Gregorio'<br>
707<strong>__license__</strong> = 'MIT'<br>
708<strong>__version__</strong> = '$Rev$'<br>
709<strong>debuglevel</strong> = 0</td></tr></table><p>
710<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
711<tr bgcolor="#7799ee">
712<td colspan=3 valign=bottom>&nbsp;<br>
713<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
714
715<tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
716<td width="100%">Joe&nbsp;Gregorio&nbsp;(joe@bitworking.org)</td></tr></table>
717</body></html>