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