1<?xml version="1.0" encoding="ascii"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 "DTD/xhtml1-transitional.dtd"> 4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 5<head> 6 <title>googleapiclient.http.HttpMock</title> 7 <link rel="stylesheet" href="epydoc.css" type="text/css" /> 8 <script type="text/javascript" src="epydoc.js"></script> 9</head> 10 11<body bgcolor="white" text="black" link="blue" vlink="#204080" 12 alink="#204080"> 13<!-- ==================== NAVIGATION BAR ==================== --> 14<table class="navbar" border="0" width="100%" cellpadding="0" 15 bgcolor="#a0c0ff" cellspacing="0"> 16 <tr valign="middle"> 17 <!-- Home link --> 18 <th> <a 19 href="googleapiclient-module.html">Home</a> </th> 20 21 <!-- Tree link --> 22 <th> <a 23 href="module-tree.html">Trees</a> </th> 24 25 <!-- Index link --> 26 <th> <a 27 href="identifier-index.html">Indices</a> </th> 28 29 <!-- Help link --> 30 <th> <a 31 href="help.html">Help</a> </th> 32 33 <th class="navbar" width="100%"></th> 34 </tr> 35</table> 36<table width="100%" cellpadding="0" cellspacing="0"> 37 <tr valign="top"> 38 <td width="100%"> 39 <span class="breadcrumbs"> 40 <a href="googleapiclient-module.html">Package googleapiclient</a> :: 41 <a href="googleapiclient.http-module.html">Module http</a> :: 42 Class HttpMock 43 </span> 44 </td> 45 <td> 46 <table cellpadding="0" cellspacing="0"> 47 <!-- hide/show private --> 48 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" 49 onclick="toggle_private();">hide private</a>]</span></td></tr> 50 <tr><td align="right"><span class="options" 51 >[<a href="frames.html" target="_top">frames</a 52 >] | <a href="googleapiclient.http.HttpMock-class.html" 53 target="_top">no frames</a>]</span></td></tr> 54 </table> 55 </td> 56 </tr> 57</table> 58<!-- ==================== CLASS DESCRIPTION ==================== --> 59<h1 class="epydoc">Class HttpMock</h1><p class="nomargin-top"><span class="codelink"><a href="googleapiclient.http-pysrc.html#HttpMock">source code</a></span></p> 60<center> 61 62</center> 63<hr /> 64<pre class="literalblock"> 65Mock of httplib2.Http 66 67</pre> 68 69<!-- ==================== INSTANCE METHODS ==================== --> 70<a name="section-InstanceMethods"></a> 71<table class="summary" border="1" cellpadding="3" 72 cellspacing="0" width="100%" bgcolor="white"> 73<tr bgcolor="#70b0f0" class="table-header"> 74 <td colspan="2" class="table-header"> 75 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 76 <tr valign="top"> 77 <td align="left"><span class="table-header">Instance Methods</span></td> 78 <td align="right" valign="top" 79 ><span class="options">[<a href="#section-InstanceMethods" 80 class="privatelink" onclick="toggle_private();" 81 >hide private</a>]</span></td> 82 </tr> 83 </table> 84 </td> 85</tr> 86<tr> 87 <td width="15%" align="right" valign="top" class="summary"> 88 <span class="summary-type"> </span> 89 </td><td class="summary"> 90 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 91 <tr> 92 <td><span class="summary-sig"><a href="googleapiclient.http.HttpMock-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>, 93 <span class="summary-sig-arg">filename</span>=<span class="summary-sig-default">None</span>, 94 <span class="summary-sig-arg">headers</span>=<span class="summary-sig-default">None</span>)</span><br /> 95 Args:...</td> 96 <td align="right" valign="top"> 97 <span class="codelink"><a href="googleapiclient.http-pysrc.html#HttpMock.__init__">source code</a></span> 98 99 </td> 100 </tr> 101 </table> 102 103 </td> 104 </tr> 105<tr> 106 <td width="15%" align="right" valign="top" class="summary"> 107 <span class="summary-type"> </span> 108 </td><td class="summary"> 109 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 110 <tr> 111 <td><span class="summary-sig"><a name="request"></a><span class="summary-sig-name">request</span>(<span class="summary-sig-arg">self</span>, 112 <span class="summary-sig-arg">uri</span>, 113 <span class="summary-sig-arg">method</span>=<span class="summary-sig-default">'GET'</span>, 114 <span class="summary-sig-arg">body</span>=<span class="summary-sig-default">None</span>, 115 <span class="summary-sig-arg">headers</span>=<span class="summary-sig-default">None</span>, 116 <span class="summary-sig-arg">redirections</span>=<span class="summary-sig-default">1</span>, 117 <span class="summary-sig-arg">connection_type</span>=<span class="summary-sig-default">None</span>)</span></td> 118 <td align="right" valign="top"> 119 <span class="codelink"><a href="googleapiclient.http-pysrc.html#HttpMock.request">source code</a></span> 120 121 </td> 122 </tr> 123 </table> 124 125 </td> 126 </tr> 127 <tr> 128 <td colspan="2" class="summary"> 129 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: 130 <code>__delattr__</code>, 131 <code>__format__</code>, 132 <code>__getattribute__</code>, 133 <code>__hash__</code>, 134 <code>__new__</code>, 135 <code>__reduce__</code>, 136 <code>__reduce_ex__</code>, 137 <code>__repr__</code>, 138 <code>__setattr__</code>, 139 <code>__sizeof__</code>, 140 <code>__str__</code>, 141 <code>__subclasshook__</code> 142 </p> 143 </td> 144 </tr> 145</table> 146<!-- ==================== PROPERTIES ==================== --> 147<a name="section-Properties"></a> 148<table class="summary" border="1" cellpadding="3" 149 cellspacing="0" width="100%" bgcolor="white"> 150<tr bgcolor="#70b0f0" class="table-header"> 151 <td colspan="2" class="table-header"> 152 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 153 <tr valign="top"> 154 <td align="left"><span class="table-header">Properties</span></td> 155 <td align="right" valign="top" 156 ><span class="options">[<a href="#section-Properties" 157 class="privatelink" onclick="toggle_private();" 158 >hide private</a>]</span></td> 159 </tr> 160 </table> 161 </td> 162</tr> 163 <tr> 164 <td colspan="2" class="summary"> 165 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: 166 <code>__class__</code> 167 </p> 168 </td> 169 </tr> 170</table> 171<!-- ==================== METHOD DETAILS ==================== --> 172<a name="section-MethodDetails"></a> 173<table class="details" border="1" cellpadding="3" 174 cellspacing="0" width="100%" bgcolor="white"> 175<tr bgcolor="#70b0f0" class="table-header"> 176 <td colspan="2" class="table-header"> 177 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 178 <tr valign="top"> 179 <td align="left"><span class="table-header">Method Details</span></td> 180 <td align="right" valign="top" 181 ><span class="options">[<a href="#section-MethodDetails" 182 class="privatelink" onclick="toggle_private();" 183 >hide private</a>]</span></td> 184 </tr> 185 </table> 186 </td> 187</tr> 188</table> 189<a name="__init__"></a> 190<div> 191<table class="details" border="1" cellpadding="3" 192 cellspacing="0" width="100%" bgcolor="white"> 193<tr><td> 194 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 195 <tr valign="top"><td> 196 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>, 197 <span class="sig-arg">filename</span>=<span class="sig-default">None</span>, 198 <span class="sig-arg">headers</span>=<span class="sig-default">None</span>)</span> 199 <br /><em class="fname">(Constructor)</em> 200 </h3> 201 </td><td align="right" valign="top" 202 ><span class="codelink"><a href="googleapiclient.http-pysrc.html#HttpMock.__init__">source code</a></span> 203 </td> 204 </tr></table> 205 206 <pre class="literalblock"> 207 208Args: 209 filename: string, absolute filename to read response from 210 headers: dict, header to return with response 211 212</pre> 213 <dl class="fields"> 214 <dt>Overrides: 215 object.__init__ 216 </dt> 217 </dl> 218</td></tr></table> 219</div> 220<br /> 221<!-- ==================== NAVIGATION BAR ==================== --> 222<table class="navbar" border="0" width="100%" cellpadding="0" 223 bgcolor="#a0c0ff" cellspacing="0"> 224 <tr valign="middle"> 225 <!-- Home link --> 226 <th> <a 227 href="googleapiclient-module.html">Home</a> </th> 228 229 <!-- Tree link --> 230 <th> <a 231 href="module-tree.html">Trees</a> </th> 232 233 <!-- Index link --> 234 <th> <a 235 href="identifier-index.html">Indices</a> </th> 236 237 <!-- Help link --> 238 <th> <a 239 href="help.html">Help</a> </th> 240 241 <th class="navbar" width="100%"></th> 242 </tr> 243</table> 244<table border="0" cellpadding="0" cellspacing="0" width="100%%"> 245 <tr> 246 <td align="left" class="footer"> 247 Generated by Epydoc 3.0.1 on Mon Jun 5 13:38:40 2017 248 </td> 249 <td align="right" class="footer"> 250 <a target="mainFrame" href="http://epydoc.sourceforge.net" 251 >http://epydoc.sourceforge.net</a> 252 </td> 253 </tr> 254</table> 255 256<script type="text/javascript"> 257 <!-- 258 // Private objects are initially displayed (because if 259 // javascript is turned off then we want them to be 260 // visible); but by default, we want to hide them. So hide 261 // them unless we have a cookie that says to show them. 262 checkCookie(); 263 // --> 264</script> 265</body> 266</html> 267