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