Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: tools/telemetry/docs/telemetry.core.memory_cache_http_server.html

Issue 196383034: Update telemetry docs by running the update_docs script. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.core.memory_cache_http_server</title > 3 <html><head><title>Python: module telemetry.core.memory_cache_http_server</title >
4 </head><body bgcolor="#f0f0f8"> 4 </head><body bgcolor="#f0f0f8">
5 5
6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
7 <tr bgcolor="#7799ee"> 7 <tr bgcolor="#7799ee">
8 <td valign=bottom>&nbsp;<br> 8 <td valign=bottom>&nbsp;<br>
9 <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a hre f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry .core.html"><font color="#ffffff">core</font></a>.memory_cache_http_server</stro ng></big></big></font></td 9 <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a hre f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry .core.html"><font color="#ffffff">core</font></a>.memory_cache_http_server</stro ng></big></big></font></td
10 ><td align=right valign=bottom 10 ><td align=right valign=bottom
11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href= "../telemetry/core/memory_cache_http_server.py">telemetry/core/memory_cache_http _server.py</a></font></td></tr></table> 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href= "../telemetry/core/memory_cache_http_server.py">telemetry/core/memory_cache_http _server.py</a></font></td></tr></table>
12 <p><tt>#&nbsp;Copyright&nbsp;(c)&nbsp;2012&nbsp;The&nbsp;Chromium&nbsp;Autho rs.&nbsp;All&nbsp;rights&nbsp;reserved.<br> 12 <p><tt>#&nbsp;Copyright&nbsp;(c)&nbsp;2012&nbsp;The&nbsp;Chromium&nbsp;Autho rs.&nbsp;All&nbsp;rights&nbsp;reserved.<br>
13 #&nbsp;Use&nbsp;of&nbsp;this&nbsp;source&nbsp;code&nbsp;is&nbsp;governed&nbsp;by &nbsp;a&nbsp;BSD-style&nbsp;license&nbsp;that&nbsp;can&nbsp;be<br> 13 #&nbsp;Use&nbsp;of&nbsp;this&nbsp;source&nbsp;code&nbsp;is&nbsp;governed&nbsp;by &nbsp;a&nbsp;BSD-style&nbsp;license&nbsp;that&nbsp;can&nbsp;be<br>
14 #&nbsp;found&nbsp;in&nbsp;the&nbsp;LICENSE&nbsp;file.</tt></p> 14 #&nbsp;found&nbsp;in&nbsp;the&nbsp;LICENSE&nbsp;file.</tt></p>
15 <p> 15 <p>
16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
17 <tr bgcolor="#aa55cc"> 17 <tr bgcolor="#aa55cc">
18 <td colspan=3 valign=bottom>&nbsp;<br> 18 <td colspan=3 valign=bottom>&nbsp;<br>
19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big ></font></td></tr> 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big ></font></td></tr>
20 20
21 <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td> &nbsp;</td> 21 <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td> &nbsp;</td>
22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t op><a href="BaseHTTPServer.html">BaseHTTPServer</a><br> 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t op><a href="BaseHTTPServer.html">BaseHTTPServer</a><br>
23 <a href="SimpleHTTPServer.html">SimpleHTTPServer</a><br> 23 <a href="SimpleHTTPServer.html">SimpleHTTPServer</a><br>
24 </td><td width="25%" valign=top><a href="SocketServer.html">SocketServer</a><br> 24 <a href="SocketServer.html">SocketServer</a><br>
25 <a href="StringIO.html">StringIO</a><br> 25 </td><td width="25%" valign=top><a href="StringIO.html">StringIO</a><br>
26 </td><td width="25%" valign=top><a href="gzip.html">gzip</a><br> 26 <a href="gzip.html">gzip</a><br>
27 <a href="mimetypes.html">mimetypes</a><br> 27 <a href="telemetry.core.local_server.html">telemetry.core.local_server</a><br>
28 </td><td width="25%" valign=top><a href="os.html">os</a><br> 28 </td><td width="25%" valign=top><a href="mimetypes.html">mimetypes</a><br>
29 <a href="os.html">os</a><br>
29 <a href="sys.html">sys</a><br> 30 <a href="sys.html">sys</a><br>
31 </td><td width="25%" valign=top><a href="urlparse.html">urlparse</a><br>
30 </td></tr></table></td></tr></table><p> 32 </td></tr></table></td></tr></table><p>
31 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 33 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
32 <tr bgcolor="#ee77aa"> 34 <tr bgcolor="#ee77aa">
33 <td colspan=3 valign=bottom>&nbsp;<br> 35 <td colspan=3 valign=bottom>&nbsp;<br>
34 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big ></font></td></tr> 36 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big ></font></td></tr>
35 37
36 <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td> &nbsp;</td> 38 <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td> &nbsp;</td>
37 <td width="100%"><dl> 39 <td width="100%"><dl>
38 <dt><font face="helvetica, arial"><a href="BaseHTTPServer.html#HTTPServer">BaseH TTPServer.HTTPServer</a>(<a href="SocketServer.html#TCPServer">SocketServer.TCPS erver</a>)
39 </font></dt><dd>
40 <dl>
41 <dt><font face="helvetica, arial"><a href="telemetry.core.memory_cache_http_serv er.html#MemoryCacheHTTPServer">MemoryCacheHTTPServer</a>(<a href="SocketServer.h tml#ThreadingMixIn">SocketServer.ThreadingMixIn</a>, <a href="BaseHTTPServer.htm l#HTTPServer">BaseHTTPServer.HTTPServer</a>)
42 </font></dt></dl>
43 </dd>
44 <dt><font face="helvetica, arial"><a href="SimpleHTTPServer.html#SimpleHTTPReque stHandler">SimpleHTTPServer.SimpleHTTPRequestHandler</a>(<a href="BaseHTTPServer .html#BaseHTTPRequestHandler">BaseHTTPServer.BaseHTTPRequestHandler</a>) 40 <dt><font face="helvetica, arial"><a href="SimpleHTTPServer.html#SimpleHTTPReque stHandler">SimpleHTTPServer.SimpleHTTPRequestHandler</a>(<a href="BaseHTTPServer .html#BaseHTTPRequestHandler">BaseHTTPServer.BaseHTTPRequestHandler</a>)
45 </font></dt><dd> 41 </font></dt><dd>
46 <dl> 42 <dl>
47 <dt><font face="helvetica, arial"><a href="telemetry.core.memory_cache_http_serv er.html#MemoryCacheHTTPRequestHandler">MemoryCacheHTTPRequestHandler</a> 43 <dt><font face="helvetica, arial"><a href="telemetry.core.memory_cache_http_serv er.html#MemoryCacheHTTPRequestHandler">MemoryCacheHTTPRequestHandler</a>
48 </font></dt></dl> 44 </font></dt></dl>
49 </dd> 45 </dd>
50 <dt><font face="helvetica, arial"><a href="SocketServer.html#ThreadingMixIn">Soc ketServer.ThreadingMixIn</a>
51 </font></dt><dd>
52 <dl>
53 <dt><font face="helvetica, arial"><a href="telemetry.core.memory_cache_http_serv er.html#MemoryCacheHTTPServer">MemoryCacheHTTPServer</a>(<a href="SocketServer.h tml#ThreadingMixIn">SocketServer.ThreadingMixIn</a>, <a href="BaseHTTPServer.htm l#HTTPServer">BaseHTTPServer.HTTPServer</a>)
54 </font></dt></dl>
55 </dd>
56 <dt><font face="helvetica, arial"><a href="__builtin__.html#tuple">__builtin__.t uple</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 46 <dt><font face="helvetica, arial"><a href="__builtin__.html#tuple">__builtin__.t uple</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
57 </font></dt><dd> 47 </font></dt><dd>
58 <dl> 48 <dl>
59 <dt><font face="helvetica, arial"><a href="telemetry.core.memory_cache_http_serv er.html#ByteRange">ByteRange</a> 49 <dt><font face="helvetica, arial"><a href="telemetry.core.memory_cache_http_serv er.html#ByteRange">ByteRange</a>
60 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.core.memory_cac he_http_server.html#ResourceAndRange">ResourceAndRange</a> 50 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.core.memory_cac he_http_server.html#ResourceAndRange">ResourceAndRange</a>
61 </font></dt></dl> 51 </font></dt></dl>
62 </dd> 52 </dd>
53 <dt><font face="helvetica, arial"><a href="telemetry.core.local_server.html#Loca lServer">telemetry.core.local_server.LocalServer</a>(<a href="__builtin__.html#o bject">__builtin__.object</a>)
54 </font></dt><dd>
55 <dl>
56 <dt><font face="helvetica, arial"><a href="telemetry.core.memory_cache_http_serv er.html#MemoryCacheHTTPServer">MemoryCacheHTTPServer</a>
57 </font></dt></dl>
58 </dd>
59 <dt><font face="helvetica, arial"><a href="telemetry.core.local_server.html#Loca lServerBackend">telemetry.core.local_server.LocalServerBackend</a>(<a href="__bu iltin__.html#object">__builtin__.object</a>)
60 </font></dt><dd>
61 <dl>
62 <dt><font face="helvetica, arial"><a href="telemetry.core.memory_cache_http_serv er.html#MemoryCacheHTTPServerBackend">MemoryCacheHTTPServerBackend</a>
63 </font></dt></dl>
64 </dd>
63 </dl> 65 </dl>
64 <p> 66 <p>
65 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 67 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
66 <tr bgcolor="#ffc8d8"> 68 <tr bgcolor="#ffc8d8">
67 <td colspan=3 valign=bottom>&nbsp;<br> 69 <td colspan=3 valign=bottom>&nbsp;<br>
68 <font color="#000000" face="helvetica, arial"><a name="ByteRange">class <strong> ByteRange</strong></a>(<a href="__builtin__.html#tuple">__builtin__.tuple</a>)</ font></td></tr> 70 <font color="#000000" face="helvetica, arial"><a name="ByteRange">class <strong> ByteRange</strong></a>(<a href="__builtin__.html#tuple">__builtin__.tuple</a>)</ font></td></tr>
69 71
70 <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td> 72 <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
71 <td colspan=2><tt><a href="#ByteRange">ByteRange</a>(from_byte,&nbsp;to_byte)<br >&nbsp;</tt></td></tr> 73 <td colspan=2><tt><a href="#ByteRange">ByteRange</a>(from_byte,&nbsp;to_byte)<br >&nbsp;</tt></td></tr>
72 <tr><td>&nbsp;</td> 74 <tr><td>&nbsp;</td>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 Methods defined here:<br> 168 Methods defined here:<br>
167 <dl><dt><a name="MemoryCacheHTTPRequestHandler-GetByteRange"><strong>GetByteRang e</strong></a>(self, total_num_of_bytes)</dt><dd><tt>Parse&nbsp;the&nbsp;header& nbsp;and&nbsp;get&nbsp;the&nbsp;range&nbsp;values&nbsp;specified.<br> 169 <dl><dt><a name="MemoryCacheHTTPRequestHandler-GetByteRange"><strong>GetByteRang e</strong></a>(self, total_num_of_bytes)</dt><dd><tt>Parse&nbsp;the&nbsp;header& nbsp;and&nbsp;get&nbsp;the&nbsp;range&nbsp;values&nbsp;specified.<br>
168 &nbsp;<br> 170 &nbsp;<br>
169 Args:<br> 171 Args:<br>
170 &nbsp;&nbsp;total_num_of_bytes:&nbsp;Total&nbsp;#&nbsp;of&nbsp;bytes&nbsp;in&nbs p;requested&nbsp;resource,<br> 172 &nbsp;&nbsp;total_num_of_bytes:&nbsp;Total&nbsp;#&nbsp;of&nbsp;bytes&nbsp;in&nbs p;requested&nbsp;resource,<br>
171 &nbsp;&nbsp;used&nbsp;to&nbsp;calculate&nbsp;upper&nbsp;range&nbsp;limit.<br> 173 &nbsp;&nbsp;used&nbsp;to&nbsp;calculate&nbsp;upper&nbsp;range&nbsp;limit.<br>
172 Returns:<br> 174 Returns:<br>
173 &nbsp;&nbsp;A&nbsp;<a href="#ByteRange">ByteRange</a>&nbsp;namedtuple&nbsp;objec t&nbsp;with&nbsp;the&nbsp;requested&nbsp;byte-range&nbsp;values.<br> 175 &nbsp;&nbsp;A&nbsp;<a href="#ByteRange">ByteRange</a>&nbsp;namedtuple&nbsp;objec t&nbsp;with&nbsp;the&nbsp;requested&nbsp;byte-range&nbsp;values.<br>
174 &nbsp;&nbsp;If&nbsp;no&nbsp;Range&nbsp;is&nbsp;explicitly&nbsp;requested&nbsp;or &nbsp;there&nbsp;is&nbsp;a&nbsp;failure&nbsp;parsing,<br> 176 &nbsp;&nbsp;If&nbsp;no&nbsp;Range&nbsp;is&nbsp;explicitly&nbsp;requested&nbsp;or &nbsp;there&nbsp;is&nbsp;a&nbsp;failure&nbsp;parsing,<br>
175 &nbsp;&nbsp;return&nbsp;None.<br> 177 &nbsp;&nbsp;return&nbsp;None.<br>
176 &nbsp;&nbsp;Special&nbsp;case:&nbsp;If&nbsp;range&nbsp;specified&nbsp;is&nbsp;in &nbsp;the&nbsp;format&nbsp;"N-",&nbsp;return&nbsp;N-N.<br> 178 &nbsp;&nbsp;If&nbsp;range&nbsp;specified&nbsp;is&nbsp;in&nbsp;the&nbsp;format&nb sp;"N-",&nbsp;return&nbsp;N-END.&nbsp;Refer&nbsp;to<br>
179 &nbsp;&nbsp;<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">htt p://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html</a>&nbsp;for&nbsp;details.<b r>
177 &nbsp;&nbsp;If&nbsp;upper&nbsp;range&nbsp;limit&nbsp;is&nbsp;greater&nbsp;than&n bsp;total&nbsp;#&nbsp;of&nbsp;bytes,&nbsp;return&nbsp;upper&nbsp;index.</tt></dd ></dl> 180 &nbsp;&nbsp;If&nbsp;upper&nbsp;range&nbsp;limit&nbsp;is&nbsp;greater&nbsp;than&n bsp;total&nbsp;#&nbsp;of&nbsp;bytes,&nbsp;return&nbsp;upper&nbsp;index.</tt></dd ></dl>
178 181
179 <dl><dt><a name="MemoryCacheHTTPRequestHandler-SendHead"><strong>SendHead</stron g></a>(self)</dt></dl> 182 <dl><dt><a name="MemoryCacheHTTPRequestHandler-SendHead"><strong>SendHead</stron g></a>(self)</dt></dl>
180 183
181 <dl><dt><a name="MemoryCacheHTTPRequestHandler-do_GET"><strong>do_GET</strong></ a>(self)</dt><dd><tt>Serve&nbsp;a&nbsp;GET&nbsp;request.</tt></dd></dl> 184 <dl><dt><a name="MemoryCacheHTTPRequestHandler-do_GET"><strong>do_GET</strong></ a>(self)</dt><dd><tt>Serve&nbsp;a&nbsp;GET&nbsp;request.</tt></dd></dl>
182 185
183 <dl><dt><a name="MemoryCacheHTTPRequestHandler-do_HEAD"><strong>do_HEAD</strong> </a>(self)</dt><dd><tt>Serve&nbsp;a&nbsp;HEAD&nbsp;request.</tt></dd></dl> 186 <dl><dt><a name="MemoryCacheHTTPRequestHandler-do_HEAD"><strong>do_HEAD</strong> </a>(self)</dt><dd><tt>Serve&nbsp;a&nbsp;HEAD&nbsp;request.</tt></dd></dl>
184 187
188 <dl><dt><a name="MemoryCacheHTTPRequestHandler-log_error"><strong>log_error</str ong></a>(self, fmt, *args)</dt></dl>
189
190 <dl><dt><a name="MemoryCacheHTTPRequestHandler-log_request"><strong>log_request< /strong></a>(self, code<font color="#909090">='-'</font>, size<font color="#9090 90">='-'</font>)</dt></dl>
191
185 <hr> 192 <hr>
186 Methods inherited from <a href="SimpleHTTPServer.html#SimpleHTTPRequestHandler"> SimpleHTTPServer.SimpleHTTPRequestHandler</a>:<br> 193 Methods inherited from <a href="SimpleHTTPServer.html#SimpleHTTPRequestHandler"> SimpleHTTPServer.SimpleHTTPRequestHandler</a>:<br>
187 <dl><dt><a name="MemoryCacheHTTPRequestHandler-copyfile"><strong>copyfile</stron g></a>(self, source, outputfile)</dt><dd><tt>Copy&nbsp;all&nbsp;data&nbsp;betwee n&nbsp;two&nbsp;file&nbsp;objects.<br> 194 <dl><dt><a name="MemoryCacheHTTPRequestHandler-copyfile"><strong>copyfile</stron g></a>(self, source, outputfile)</dt><dd><tt>Copy&nbsp;all&nbsp;data&nbsp;betwee n&nbsp;two&nbsp;file&nbsp;objects.<br>
188 &nbsp;<br> 195 &nbsp;<br>
189 The&nbsp;SOURCE&nbsp;argument&nbsp;is&nbsp;a&nbsp;file&nbsp;object&nbsp;open&nbs p;for&nbsp;reading<br> 196 The&nbsp;SOURCE&nbsp;argument&nbsp;is&nbsp;a&nbsp;file&nbsp;object&nbsp;open&nbs p;for&nbsp;reading<br>
190 (or&nbsp;anything&nbsp;with&nbsp;a&nbsp;read()&nbsp;method)&nbsp;and&nbsp;the&nb sp;DESTINATION<br> 197 (or&nbsp;anything&nbsp;with&nbsp;a&nbsp;read()&nbsp;method)&nbsp;and&nbsp;the&nb sp;DESTINATION<br>
191 argument&nbsp;is&nbsp;a&nbsp;file&nbsp;object&nbsp;open&nbsp;for&nbsp;writing&nb sp;(or<br> 198 argument&nbsp;is&nbsp;a&nbsp;file&nbsp;object&nbsp;open&nbsp;for&nbsp;writing&nb sp;(or<br>
192 anything&nbsp;with&nbsp;a&nbsp;write()&nbsp;method).<br> 199 anything&nbsp;with&nbsp;a&nbsp;write()&nbsp;method).<br>
193 &nbsp;<br> 200 &nbsp;<br>
194 The&nbsp;only&nbsp;reason&nbsp;for&nbsp;overriding&nbsp;this&nbsp;would&nbsp;be& nbsp;to&nbsp;change<br> 201 The&nbsp;only&nbsp;reason&nbsp;for&nbsp;overriding&nbsp;this&nbsp;would&nbsp;be& nbsp;to&nbsp;change<br>
(...skipping 29 matching lines...) Expand all
224 None,&nbsp;in&nbsp;which&nbsp;case&nbsp;the&nbsp;caller&nbsp;has&nbsp;nothing&nb sp;further&nbsp;to&nbsp;do.</tt></dd></dl> 231 None,&nbsp;in&nbsp;which&nbsp;case&nbsp;the&nbsp;caller&nbsp;has&nbsp;nothing&nb sp;further&nbsp;to&nbsp;do.</tt></dd></dl>
225 232
226 <dl><dt><a name="MemoryCacheHTTPRequestHandler-translate_path"><strong>translate _path</strong></a>(self, path)</dt><dd><tt>Translate&nbsp;a&nbsp;/-separated&nbs p;PATH&nbsp;to&nbsp;the&nbsp;local&nbsp;filename&nbsp;syntax.<br> 233 <dl><dt><a name="MemoryCacheHTTPRequestHandler-translate_path"><strong>translate _path</strong></a>(self, path)</dt><dd><tt>Translate&nbsp;a&nbsp;/-separated&nbs p;PATH&nbsp;to&nbsp;the&nbsp;local&nbsp;filename&nbsp;syntax.<br>
227 &nbsp;<br> 234 &nbsp;<br>
228 Components&nbsp;that&nbsp;mean&nbsp;special&nbsp;things&nbsp;to&nbsp;the&nbsp;lo cal&nbsp;file&nbsp;system<br> 235 Components&nbsp;that&nbsp;mean&nbsp;special&nbsp;things&nbsp;to&nbsp;the&nbsp;lo cal&nbsp;file&nbsp;system<br>
229 (e.g.&nbsp;drive&nbsp;or&nbsp;directory&nbsp;names)&nbsp;are&nbsp;ignored.&nbsp; &nbsp;(XXX&nbsp;They&nbsp;should<br> 236 (e.g.&nbsp;drive&nbsp;or&nbsp;directory&nbsp;names)&nbsp;are&nbsp;ignored.&nbsp; &nbsp;(XXX&nbsp;They&nbsp;should<br>
230 probably&nbsp;be&nbsp;diagnosed.)</tt></dd></dl> 237 probably&nbsp;be&nbsp;diagnosed.)</tt></dd></dl>
231 238
232 <hr> 239 <hr>
233 Data and other attributes inherited from <a href="SimpleHTTPServer.html#SimpleHT TPRequestHandler">SimpleHTTPServer.SimpleHTTPRequestHandler</a>:<br> 240 Data and other attributes inherited from <a href="SimpleHTTPServer.html#SimpleHT TPRequestHandler">SimpleHTTPServer.SimpleHTTPRequestHandler</a>:<br>
234 <dl><dt><strong>extensions_map</strong> = {'': 'application/octet-stream', '.123 ': 'application/vnd.lotus-1-2-3', '.3dml': 'text/vnd.in3d.3dml', '.3g2': 'video/ 3gpp2', '.3gp': 'video/3gpp', '.7z': 'application/x-7z-compressed', '.a': 'appli cation/octet-stream', '.aab': 'application/x-authorware-bin', '.aac': 'audio/x-a ac', '.aam': 'application/x-authorware-map', ...}</dl> 241 <dl><dt><strong>extensions_map</strong> = {'': 'application/octet-stream', '.123 ': 'application/vnd.lotus-1-2-3', '.3dml': 'text/vnd.in3d.3dml', '.3ds': 'image/ x-3ds', '.3g2': 'video/3gpp2', '.3gp': 'video/3gpp', '.7z': 'application/x-7z-co mpressed', '.a': 'application/octet-stream', '.aab': 'application/x-authorware-b in', '.aac': 'audio/x-aac', ...}</dl>
235 242
236 <dl><dt><strong>server_version</strong> = 'SimpleHTTP/0.6'</dl> 243 <dl><dt><strong>server_version</strong> = 'SimpleHTTP/0.6'</dl>
237 244
238 <hr> 245 <hr>
239 Methods inherited from <a href="BaseHTTPServer.html#BaseHTTPRequestHandler">Base HTTPServer.BaseHTTPRequestHandler</a>:<br> 246 Methods inherited from <a href="BaseHTTPServer.html#BaseHTTPRequestHandler">Base HTTPServer.BaseHTTPRequestHandler</a>:<br>
240 <dl><dt><a name="MemoryCacheHTTPRequestHandler-address_string"><strong>address_s tring</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;client&nbsp;address&nb sp;formatted&nbsp;for&nbsp;logging.<br> 247 <dl><dt><a name="MemoryCacheHTTPRequestHandler-address_string"><strong>address_s tring</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;client&nbsp;address&nb sp;formatted&nbsp;for&nbsp;logging.<br>
241 &nbsp;<br> 248 &nbsp;<br>
242 This&nbsp;version&nbsp;looks&nbsp;up&nbsp;the&nbsp;full&nbsp;hostname&nbsp;using &nbsp;gethostbyaddr(),<br> 249 This&nbsp;version&nbsp;looks&nbsp;up&nbsp;the&nbsp;full&nbsp;hostname&nbsp;using &nbsp;gethostbyaddr(),<br>
243 and&nbsp;tries&nbsp;to&nbsp;find&nbsp;a&nbsp;name&nbsp;that&nbsp;contains&nbsp;a t&nbsp;least&nbsp;one&nbsp;dot.</tt></dd></dl> 250 and&nbsp;tries&nbsp;to&nbsp;find&nbsp;a&nbsp;name&nbsp;that&nbsp;contains&nbsp;a t&nbsp;least&nbsp;one&nbsp;dot.</tt></dd></dl>
244 251
245 <dl><dt><a name="MemoryCacheHTTPRequestHandler-date_time_string"><strong>date_ti me_string</strong></a>(self, timestamp<font color="#909090">=None</font>)</dt><d d><tt>Return&nbsp;the&nbsp;current&nbsp;date&nbsp;and&nbsp;time&nbsp;formatted&n bsp;for&nbsp;a&nbsp;message&nbsp;header.</tt></dd></dl> 252 <dl><dt><a name="MemoryCacheHTTPRequestHandler-date_time_string"><strong>date_ti me_string</strong></a>(self, timestamp<font color="#909090">=None</font>)</dt><d d><tt>Return&nbsp;the&nbsp;current&nbsp;date&nbsp;and&nbsp;time&nbsp;formatted&n bsp;for&nbsp;a&nbsp;message&nbsp;header.</tt></dd></dl>
246 253
247 <dl><dt><a name="MemoryCacheHTTPRequestHandler-end_headers"><strong>end_headers< /strong></a>(self)</dt><dd><tt>Send&nbsp;the&nbsp;blank&nbsp;line&nbsp;ending&nb sp;the&nbsp;MIME&nbsp;headers.</tt></dd></dl> 254 <dl><dt><a name="MemoryCacheHTTPRequestHandler-end_headers"><strong>end_headers< /strong></a>(self)</dt><dd><tt>Send&nbsp;the&nbsp;blank&nbsp;line&nbsp;ending&nb sp;the&nbsp;MIME&nbsp;headers.</tt></dd></dl>
248 255
249 <dl><dt><a name="MemoryCacheHTTPRequestHandler-handle"><strong>handle</strong></ a>(self)</dt><dd><tt>Handle&nbsp;multiple&nbsp;requests&nbsp;if&nbsp;necessary.< /tt></dd></dl> 256 <dl><dt><a name="MemoryCacheHTTPRequestHandler-handle"><strong>handle</strong></ a>(self)</dt><dd><tt>Handle&nbsp;multiple&nbsp;requests&nbsp;if&nbsp;necessary.< /tt></dd></dl>
250 257
251 <dl><dt><a name="MemoryCacheHTTPRequestHandler-handle_one_request"><strong>handl e_one_request</strong></a>(self)</dt><dd><tt>Handle&nbsp;a&nbsp;single&nbsp;HTTP &nbsp;request.<br> 258 <dl><dt><a name="MemoryCacheHTTPRequestHandler-handle_one_request"><strong>handl e_one_request</strong></a>(self)</dt><dd><tt>Handle&nbsp;a&nbsp;single&nbsp;HTTP &nbsp;request.<br>
252 &nbsp;<br> 259 &nbsp;<br>
253 You&nbsp;normally&nbsp;don't&nbsp;need&nbsp;to&nbsp;override&nbsp;this&nbsp;meth od;&nbsp;see&nbsp;the&nbsp;class<br> 260 You&nbsp;normally&nbsp;don't&nbsp;need&nbsp;to&nbsp;override&nbsp;this&nbsp;meth od;&nbsp;see&nbsp;the&nbsp;class<br>
254 __doc__&nbsp;string&nbsp;for&nbsp;information&nbsp;on&nbsp;how&nbsp;to&nbsp;hand le&nbsp;specific&nbsp;HTTP<br> 261 __doc__&nbsp;string&nbsp;for&nbsp;information&nbsp;on&nbsp;how&nbsp;to&nbsp;hand le&nbsp;specific&nbsp;HTTP<br>
255 commands&nbsp;such&nbsp;as&nbsp;GET&nbsp;and&nbsp;POST.</tt></dd></dl> 262 commands&nbsp;such&nbsp;as&nbsp;GET&nbsp;and&nbsp;POST.</tt></dd></dl>
256 263
257 <dl><dt><a name="MemoryCacheHTTPRequestHandler-log_date_time_string"><strong>log _date_time_string</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;current&nb sp;time&nbsp;formatted&nbsp;for&nbsp;logging.</tt></dd></dl> 264 <dl><dt><a name="MemoryCacheHTTPRequestHandler-log_date_time_string"><strong>log _date_time_string</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;current&nb sp;time&nbsp;formatted&nbsp;for&nbsp;logging.</tt></dd></dl>
258 265
259 <dl><dt><a name="MemoryCacheHTTPRequestHandler-log_error"><strong>log_error</str ong></a>(self, format, *args)</dt><dd><tt>Log&nbsp;an&nbsp;error.<br>
260 &nbsp;<br>
261 This&nbsp;is&nbsp;called&nbsp;when&nbsp;a&nbsp;request&nbsp;cannot&nbsp;be&nbsp; fulfilled.&nbsp;&nbsp;By<br>
262 default&nbsp;it&nbsp;passes&nbsp;the&nbsp;message&nbsp;on&nbsp;to&nbsp;<a href=" #MemoryCacheHTTPRequestHandler-log_message">log_message</a>().<br>
263 &nbsp;<br>
264 Arguments&nbsp;are&nbsp;the&nbsp;same&nbsp;as&nbsp;for&nbsp;<a href="#MemoryCach eHTTPRequestHandler-log_message">log_message</a>().<br>
265 &nbsp;<br>
266 XXX&nbsp;This&nbsp;should&nbsp;go&nbsp;to&nbsp;the&nbsp;separate&nbsp;error&nbsp ;log.</tt></dd></dl>
267
268 <dl><dt><a name="MemoryCacheHTTPRequestHandler-log_message"><strong>log_message< /strong></a>(self, format, *args)</dt><dd><tt>Log&nbsp;an&nbsp;arbitrary&nbsp;me ssage.<br> 266 <dl><dt><a name="MemoryCacheHTTPRequestHandler-log_message"><strong>log_message< /strong></a>(self, format, *args)</dt><dd><tt>Log&nbsp;an&nbsp;arbitrary&nbsp;me ssage.<br>
269 &nbsp;<br> 267 &nbsp;<br>
270 This&nbsp;is&nbsp;used&nbsp;by&nbsp;all&nbsp;other&nbsp;logging&nbsp;functions.& nbsp;&nbsp;Override<br> 268 This&nbsp;is&nbsp;used&nbsp;by&nbsp;all&nbsp;other&nbsp;logging&nbsp;functions.& nbsp;&nbsp;Override<br>
271 it&nbsp;if&nbsp;you&nbsp;have&nbsp;specific&nbsp;logging&nbsp;wishes.<br> 269 it&nbsp;if&nbsp;you&nbsp;have&nbsp;specific&nbsp;logging&nbsp;wishes.<br>
272 &nbsp;<br> 270 &nbsp;<br>
273 The&nbsp;first&nbsp;argument,&nbsp;FORMAT,&nbsp;is&nbsp;a&nbsp;format&nbsp;strin g&nbsp;for&nbsp;the<br> 271 The&nbsp;first&nbsp;argument,&nbsp;FORMAT,&nbsp;is&nbsp;a&nbsp;format&nbsp;strin g&nbsp;for&nbsp;the<br>
274 message&nbsp;to&nbsp;be&nbsp;logged.&nbsp;&nbsp;If&nbsp;the&nbsp;format&nbsp;str ing&nbsp;contains<br> 272 message&nbsp;to&nbsp;be&nbsp;logged.&nbsp;&nbsp;If&nbsp;the&nbsp;format&nbsp;str ing&nbsp;contains<br>
275 any&nbsp;%&nbsp;escapes&nbsp;requiring&nbsp;parameters,&nbsp;they&nbsp;should&nb sp;be<br> 273 any&nbsp;%&nbsp;escapes&nbsp;requiring&nbsp;parameters,&nbsp;they&nbsp;should&nb sp;be<br>
276 specified&nbsp;as&nbsp;subsequent&nbsp;arguments&nbsp;(it's&nbsp;just&nbsp;like< br> 274 specified&nbsp;as&nbsp;subsequent&nbsp;arguments&nbsp;(it's&nbsp;just&nbsp;like< br>
277 printf!).<br> 275 printf!).<br>
278 &nbsp;<br> 276 &nbsp;<br>
279 The&nbsp;client&nbsp;host&nbsp;and&nbsp;current&nbsp;date/time&nbsp;are&nbsp;pre fixed&nbsp;to<br> 277 The&nbsp;client&nbsp;ip&nbsp;address&nbsp;and&nbsp;current&nbsp;date/time&nbsp;a re&nbsp;prefixed&nbsp;to&nbsp;every<br>
280 every&nbsp;message.</tt></dd></dl> 278 message.</tt></dd></dl>
281
282 <dl><dt><a name="MemoryCacheHTTPRequestHandler-log_request"><strong>log_request< /strong></a>(self, code<font color="#909090">='-'</font>, size<font color="#9090 90">='-'</font>)</dt><dd><tt>Log&nbsp;an&nbsp;accepted&nbsp;request.<br>
283 &nbsp;<br>
284 This&nbsp;is&nbsp;called&nbsp;by&nbsp;<a href="#MemoryCacheHTTPRequestHandler-se nd_response">send_response</a>().</tt></dd></dl>
285 279
286 <dl><dt><a name="MemoryCacheHTTPRequestHandler-parse_request"><strong>parse_requ est</strong></a>(self)</dt><dd><tt>Parse&nbsp;a&nbsp;request&nbsp;(internal).<br > 280 <dl><dt><a name="MemoryCacheHTTPRequestHandler-parse_request"><strong>parse_requ est</strong></a>(self)</dt><dd><tt>Parse&nbsp;a&nbsp;request&nbsp;(internal).<br >
287 &nbsp;<br> 281 &nbsp;<br>
288 The&nbsp;request&nbsp;should&nbsp;be&nbsp;stored&nbsp;in&nbsp;self.<strong>raw_r equestline</strong>;&nbsp;the&nbsp;results<br> 282 The&nbsp;request&nbsp;should&nbsp;be&nbsp;stored&nbsp;in&nbsp;self.<strong>raw_r equestline</strong>;&nbsp;the&nbsp;results<br>
289 are&nbsp;in&nbsp;self.<strong>command</strong>,&nbsp;self.<strong>path</strong>, &nbsp;self.<strong>request_version</strong>&nbsp;and<br> 283 are&nbsp;in&nbsp;self.<strong>command</strong>,&nbsp;self.<strong>path</strong>, &nbsp;self.<strong>request_version</strong>&nbsp;and<br>
290 self.<strong>headers</strong>.<br> 284 self.<strong>headers</strong>.<br>
291 &nbsp;<br> 285 &nbsp;<br>
292 Return&nbsp;True&nbsp;for&nbsp;success,&nbsp;False&nbsp;for&nbsp;failure;&nbsp;o n&nbsp;failure,&nbsp;an<br> 286 Return&nbsp;True&nbsp;for&nbsp;success,&nbsp;False&nbsp;for&nbsp;failure;&nbsp;o n&nbsp;failure,&nbsp;an<br>
293 error&nbsp;is&nbsp;sent&nbsp;back.</tt></dd></dl> 287 error&nbsp;is&nbsp;sent&nbsp;back.</tt></dd></dl>
294 288
(...skipping 25 matching lines...) Expand all
320 <dl><dt><strong>error_content_type</strong> = 'text/html'</dl> 314 <dl><dt><strong>error_content_type</strong> = 'text/html'</dl>
321 315
322 <dl><dt><strong>error_message_format</strong> = '&lt;head&gt;<font color="#c040c 0">\n</font>&lt;title&gt;Error response&lt;/title&gt;<font color="#c040c0">\n</f ont>&lt;/head&gt;<font color="#c040c0">\n</font>&lt;bo...ode explanation: %(code )s = %(explain)s.<font color="#c040c0">\n</font>&lt;/body&gt;<font color="#c040c 0">\n</font>'</dl> 316 <dl><dt><strong>error_message_format</strong> = '&lt;head&gt;<font color="#c040c 0">\n</font>&lt;title&gt;Error response&lt;/title&gt;<font color="#c040c0">\n</f ont>&lt;/head&gt;<font color="#c040c0">\n</font>&lt;bo...ode explanation: %(code )s = %(explain)s.<font color="#c040c0">\n</font>&lt;/body&gt;<font color="#c040c 0">\n</font>'</dl>
323 317
324 <dl><dt><strong>monthname</strong> = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', ' Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']</dl> 318 <dl><dt><strong>monthname</strong> = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', ' Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']</dl>
325 319
326 <dl><dt><strong>protocol_version</strong> = 'HTTP/1.0'</dl> 320 <dl><dt><strong>protocol_version</strong> = 'HTTP/1.0'</dl>
327 321
328 <dl><dt><strong>responses</strong> = {100: ('Continue', 'Request received, pleas e continue'), 101: ('Switching Protocols', 'Switching to new protocol; obey Upgr ade header'), 200: ('OK', 'Request fulfilled, document follows'), 201: ('Created ', 'Document created, URL follows'), 202: ('Accepted', 'Request accepted, proces sing continues off-line'), 203: ('Non-Authoritative Information', 'Request fulfi lled from cache'), 204: ('No Content', 'Request fulfilled, nothing follows'), 20 5: ('Reset Content', 'Clear input form for further input.'), 206: ('Partial Cont ent', 'Partial content follows.'), 300: ('Multiple Choices', 'Object has several resources -- see URI list'), ...}</dl> 322 <dl><dt><strong>responses</strong> = {100: ('Continue', 'Request received, pleas e continue'), 101: ('Switching Protocols', 'Switching to new protocol; obey Upgr ade header'), 200: ('OK', 'Request fulfilled, document follows'), 201: ('Created ', 'Document created, URL follows'), 202: ('Accepted', 'Request accepted, proces sing continues off-line'), 203: ('Non-Authoritative Information', 'Request fulfi lled from cache'), 204: ('No Content', 'Request fulfilled, nothing follows'), 20 5: ('Reset Content', 'Clear input form for further input.'), 206: ('Partial Cont ent', 'Partial content follows.'), 300: ('Multiple Choices', 'Object has several resources -- see URI list'), ...}</dl>
329 323
330 <dl><dt><strong>sys_version</strong> = 'Python/2.7.2'</dl> 324 <dl><dt><strong>sys_version</strong> = 'Python/2.7.5'</dl>
331 325
332 <dl><dt><strong>weekdayname</strong> = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' , 'Sun']</dl> 326 <dl><dt><strong>weekdayname</strong> = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' , 'Sun']</dl>
333 327
334 <hr> 328 <hr>
335 Methods inherited from <a href="SocketServer.html#StreamRequestHandler">SocketSe rver.StreamRequestHandler</a>:<br> 329 Methods inherited from <a href="SocketServer.html#StreamRequestHandler">SocketSe rver.StreamRequestHandler</a>:<br>
336 <dl><dt><a name="MemoryCacheHTTPRequestHandler-finish"><strong>finish</strong></ a>(self)</dt></dl> 330 <dl><dt><a name="MemoryCacheHTTPRequestHandler-finish"><strong>finish</strong></ a>(self)</dt></dl>
337 331
338 <dl><dt><a name="MemoryCacheHTTPRequestHandler-setup"><strong>setup</strong></a> (self)</dt></dl> 332 <dl><dt><a name="MemoryCacheHTTPRequestHandler-setup"><strong>setup</strong></a> (self)</dt></dl>
339 333
340 <hr> 334 <hr>
341 Data and other attributes inherited from <a href="SocketServer.html#StreamReques tHandler">SocketServer.StreamRequestHandler</a>:<br> 335 Data and other attributes inherited from <a href="SocketServer.html#StreamReques tHandler">SocketServer.StreamRequestHandler</a>:<br>
342 <dl><dt><strong>disable_nagle_algorithm</strong> = False</dl> 336 <dl><dt><strong>disable_nagle_algorithm</strong> = False</dl>
343 337
344 <dl><dt><strong>rbufsize</strong> = -1</dl> 338 <dl><dt><strong>rbufsize</strong> = -1</dl>
345 339
346 <dl><dt><strong>timeout</strong> = None</dl> 340 <dl><dt><strong>timeout</strong> = None</dl>
347 341
348 <dl><dt><strong>wbufsize</strong> = 0</dl> 342 <dl><dt><strong>wbufsize</strong> = 0</dl>
349 343
350 <hr> 344 <hr>
351 Methods inherited from <a href="SocketServer.html#BaseRequestHandler">SocketServ er.BaseRequestHandler</a>:<br> 345 Methods inherited from <a href="SocketServer.html#BaseRequestHandler">SocketServ er.BaseRequestHandler</a>:<br>
352 <dl><dt><a name="MemoryCacheHTTPRequestHandler-__init__"><strong>__init__</stron g></a>(self, request, client_address, server)</dt></dl> 346 <dl><dt><a name="MemoryCacheHTTPRequestHandler-__init__"><strong>__init__</stron g></a>(self, request, client_address, server)</dt></dl>
353 347
354 </td></tr></table> <p> 348 </td></tr></table> <p>
355 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 349 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
356 <tr bgcolor="#ffc8d8"> 350 <tr bgcolor="#ffc8d8">
357 <td colspan=3 valign=bottom>&nbsp;<br> 351 <td colspan=3 valign=bottom>&nbsp;<br>
358 <font color="#000000" face="helvetica, arial"><a name="MemoryCacheHTTPServer">cl ass <strong>MemoryCacheHTTPServer</strong></a>(<a href="SocketServer.html#Thread ingMixIn">SocketServer.ThreadingMixIn</a>, <a href="BaseHTTPServer.html#HTTPServ er">BaseHTTPServer.HTTPServer</a>)</font></td></tr> 352 <font color="#000000" face="helvetica, arial"><a name="MemoryCacheHTTPServer">cl ass <strong>MemoryCacheHTTPServer</strong></a>(<a href="telemetry.core.local_ser ver.html#LocalServer">telemetry.core.local_server.LocalServer</a>)</font></td></ tr>
359 353
360 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td> 354 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
361 <td width="100%"><dl><dt>Method resolution order:</dt> 355 <td width="100%"><dl><dt>Method resolution order:</dt>
362 <dd><a href="telemetry.core.memory_cache_http_server.html#MemoryCacheHTTPServer" >MemoryCacheHTTPServer</a></dd> 356 <dd><a href="telemetry.core.memory_cache_http_server.html#MemoryCacheHTTPServer" >MemoryCacheHTTPServer</a></dd>
363 <dd><a href="SocketServer.html#ThreadingMixIn">SocketServer.ThreadingMixIn</a></ dd> 357 <dd><a href="telemetry.core.local_server.html#LocalServer">telemetry.core.local_ server.LocalServer</a></dd>
364 <dd><a href="BaseHTTPServer.html#HTTPServer">BaseHTTPServer.HTTPServer</a></dd> 358 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
365 <dd><a href="SocketServer.html#TCPServer">SocketServer.TCPServer</a></dd>
366 <dd><a href="SocketServer.html#BaseServer">SocketServer.BaseServer</a></dd>
367 </dl> 359 </dl>
368 <hr> 360 <hr>
369 Methods defined here:<br> 361 Methods defined here:<br>
370 <dl><dt><a name="MemoryCacheHTTPServer-AddDirectoryToResourceMap"><strong>AddDir ectoryToResourceMap</strong></a>(self, directory_path)</dt><dd><tt>Loads&nbsp;al l&nbsp;files&nbsp;in&nbsp;directory_path&nbsp;into&nbsp;the&nbsp;in-memory&nbsp; resource&nbsp;map.</tt></dd></dl> 362 <dl><dt><a name="MemoryCacheHTTPServer-GetBackendStartupArgs"><strong>GetBackend StartupArgs</strong></a>(self)</dt></dl>
371 363
372 <dl><dt><a name="MemoryCacheHTTPServer-AddFileToResourceMap"><strong>AddFileToRe sourceMap</strong></a>(self, file_path)</dt><dd><tt>Loads&nbsp;file_path&nbsp;in to&nbsp;the&nbsp;in-memory&nbsp;resource&nbsp;map.</tt></dd></dl> 364 <dl><dt><a name="MemoryCacheHTTPServer-UrlOf"><strong>UrlOf</strong></a>(self, p ath)</dt></dl>
373 365
374 <dl><dt><a name="MemoryCacheHTTPServer-__init__"><strong>__init__</strong></a>(s elf, host_port, handler, paths)</dt></dl> 366 <dl><dt><a name="MemoryCacheHTTPServer-__init__"><strong>__init__</strong></a>(s elf, paths)</dt></dl>
375 367
376 <hr> 368 <hr>
377 Data and other attributes defined here:<br> 369 Data descriptors defined here:<br>
378 <dl><dt><strong>request_queue_size</strong> = 128</dl> 370 <dl><dt><strong>paths</strong></dt>
371 </dl>
372 <dl><dt><strong>url</strong></dt>
373 </dl>
374 <hr>
375 Methods inherited from <a href="telemetry.core.local_server.html#LocalServer">te lemetry.core.local_server.LocalServer</a>:<br>
376 <dl><dt><a name="MemoryCacheHTTPServer-Close"><strong>Close</strong></a>(self)</ dt></dl>
377
378 <dl><dt><a name="MemoryCacheHTTPServer-Start"><strong>Start</strong></a>(self, l ocal_server_controller)</dt></dl>
379
380 <dl><dt><a name="MemoryCacheHTTPServer-__del__"><strong>__del__</strong></a>(sel f)</dt></dl>
381
382 <dl><dt><a name="MemoryCacheHTTPServer-__enter__"><strong>__enter__</strong></a> (self)</dt></dl>
383
384 <dl><dt><a name="MemoryCacheHTTPServer-__exit__"><strong>__exit__</strong></a>(s elf, *args)</dt></dl>
379 385
380 <hr> 386 <hr>
381 Methods inherited from <a href="SocketServer.html#ThreadingMixIn">SocketServer.T hreadingMixIn</a>:<br> 387 Data descriptors inherited from <a href="telemetry.core.local_server.html#LocalS erver">telemetry.core.local_server.LocalServer</a>:<br>
382 <dl><dt><a name="MemoryCacheHTTPServer-process_request"><strong>process_request< /strong></a>(self, request, client_address)</dt><dd><tt>Start&nbsp;a&nbsp;new&nb sp;thread&nbsp;to&nbsp;process&nbsp;the&nbsp;request.</tt></dd></dl> 388 <dl><dt><strong>__dict__</strong></dt>
383 389 <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)< /tt></dd>
384 <dl><dt><a name="MemoryCacheHTTPServer-process_request_thread"><strong>process_r equest_thread</strong></a>(self, request, client_address)</dt><dd><tt>Same&nbsp; as&nbsp;in&nbsp;BaseServer&nbsp;but&nbsp;as&nbsp;a&nbsp;thread.<br> 390 </dl>
385 &nbsp;<br> 391 <dl><dt><strong>__weakref__</strong></dt>
386 In&nbsp;addition,&nbsp;exception&nbsp;handling&nbsp;is&nbsp;done&nbsp;here.</tt> </dd></dl> 392 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp ;(if&nbsp;defined)</tt></dd>
387 393 </dl>
388 <hr> 394 <dl><dt><strong>is_running</strong></dt>
389 Data and other attributes inherited from <a href="SocketServer.html#ThreadingMix In">SocketServer.ThreadingMixIn</a>:<br> 395 </dl>
390 <dl><dt><strong>daemon_threads</strong> = False</dl>
391
392 <hr>
393 Methods inherited from <a href="BaseHTTPServer.html#HTTPServer">BaseHTTPServer.H TTPServer</a>:<br>
394 <dl><dt><a name="MemoryCacheHTTPServer-server_bind"><strong>server_bind</strong> </a>(self)</dt><dd><tt>Override&nbsp;server_bind&nbsp;to&nbsp;store&nbsp;the&nbs p;server&nbsp;name.</tt></dd></dl>
395
396 <hr>
397 Data and other attributes inherited from <a href="BaseHTTPServer.html#HTTPServer ">BaseHTTPServer.HTTPServer</a>:<br>
398 <dl><dt><strong>allow_reuse_address</strong> = 1</dl>
399
400 <hr>
401 Methods inherited from <a href="SocketServer.html#TCPServer">SocketServer.TCPSer ver</a>:<br>
402 <dl><dt><a name="MemoryCacheHTTPServer-close_request"><strong>close_request</str ong></a>(self, request)</dt><dd><tt>Called&nbsp;to&nbsp;clean&nbsp;up&nbsp;an&nb sp;individual&nbsp;request.</tt></dd></dl>
403
404 <dl><dt><a name="MemoryCacheHTTPServer-fileno"><strong>fileno</strong></a>(self) </dt><dd><tt>Return&nbsp;socket&nbsp;file&nbsp;number.<br>
405 &nbsp;<br>
406 Interface&nbsp;required&nbsp;by&nbsp;select().</tt></dd></dl>
407
408 <dl><dt><a name="MemoryCacheHTTPServer-get_request"><strong>get_request</strong> </a>(self)</dt><dd><tt>Get&nbsp;the&nbsp;request&nbsp;and&nbsp;client&nbsp;addre ss&nbsp;from&nbsp;the&nbsp;socket.<br>
409 &nbsp;<br>
410 May&nbsp;be&nbsp;overridden.</tt></dd></dl>
411
412 <dl><dt><a name="MemoryCacheHTTPServer-server_activate"><strong>server_activate< /strong></a>(self)</dt><dd><tt>Called&nbsp;by&nbsp;constructor&nbsp;to&nbsp;acti vate&nbsp;the&nbsp;server.<br>
413 &nbsp;<br>
414 May&nbsp;be&nbsp;overridden.</tt></dd></dl>
415
416 <dl><dt><a name="MemoryCacheHTTPServer-server_close"><strong>server_close</stron g></a>(self)</dt><dd><tt>Called&nbsp;to&nbsp;clean-up&nbsp;the&nbsp;server.<br>
417 &nbsp;<br>
418 May&nbsp;be&nbsp;overridden.</tt></dd></dl>
419
420 <dl><dt><a name="MemoryCacheHTTPServer-shutdown_request"><strong>shutdown_reques t</strong></a>(self, request)</dt><dd><tt>Called&nbsp;to&nbsp;shutdown&nbsp;and& nbsp;close&nbsp;an&nbsp;individual&nbsp;request.</tt></dd></dl>
421
422 <hr>
423 Data and other attributes inherited from <a href="SocketServer.html#TCPServer">S ocketServer.TCPServer</a>:<br>
424 <dl><dt><strong>address_family</strong> = 2</dl>
425
426 <dl><dt><strong>socket_type</strong> = 1</dl>
427
428 <hr>
429 Methods inherited from <a href="SocketServer.html#BaseServer">SocketServer.BaseS erver</a>:<br>
430 <dl><dt><a name="MemoryCacheHTTPServer-finish_request"><strong>finish_request</s trong></a>(self, request, client_address)</dt><dd><tt>Finish&nbsp;one&nbsp;reque st&nbsp;by&nbsp;instantiating&nbsp;RequestHandlerClass.</tt></dd></dl>
431
432 <dl><dt><a name="MemoryCacheHTTPServer-handle_error"><strong>handle_error</stron g></a>(self, request, client_address)</dt><dd><tt>Handle&nbsp;an&nbsp;error&nbsp ;gracefully.&nbsp;&nbsp;May&nbsp;be&nbsp;overridden.<br>
433 &nbsp;<br>
434 The&nbsp;default&nbsp;is&nbsp;to&nbsp;print&nbsp;a&nbsp;traceback&nbsp;and&nbsp; continue.</tt></dd></dl>
435
436 <dl><dt><a name="MemoryCacheHTTPServer-handle_request"><strong>handle_request</s trong></a>(self)</dt><dd><tt>Handle&nbsp;one&nbsp;request,&nbsp;possibly&nbsp;bl ocking.<br>
437 &nbsp;<br>
438 Respects&nbsp;self.<strong>timeout</strong>.</tt></dd></dl>
439
440 <dl><dt><a name="MemoryCacheHTTPServer-handle_timeout"><strong>handle_timeout</s trong></a>(self)</dt><dd><tt>Called&nbsp;if&nbsp;no&nbsp;new&nbsp;request&nbsp;a rrives&nbsp;within&nbsp;self.<strong>timeout</strong>.<br>
441 &nbsp;<br>
442 Overridden&nbsp;by&nbsp;ForkingMixIn.</tt></dd></dl>
443
444 <dl><dt><a name="MemoryCacheHTTPServer-serve_forever"><strong>serve_forever</str ong></a>(self, poll_interval<font color="#909090">=0.5</font>)</dt><dd><tt>Handl e&nbsp;one&nbsp;request&nbsp;at&nbsp;a&nbsp;time&nbsp;until&nbsp;shutdown.<br>
445 &nbsp;<br>
446 Polls&nbsp;for&nbsp;shutdown&nbsp;every&nbsp;poll_interval&nbsp;seconds.&nbsp;Ig nores<br>
447 self.<strong>timeout</strong>.&nbsp;If&nbsp;you&nbsp;need&nbsp;to&nbsp;do&nbsp;p eriodic&nbsp;tasks,&nbsp;do&nbsp;them&nbsp;in<br>
448 another&nbsp;thread.</tt></dd></dl>
449
450 <dl><dt><a name="MemoryCacheHTTPServer-shutdown"><strong>shutdown</strong></a>(s elf)</dt><dd><tt>Stops&nbsp;the&nbsp;serve_forever&nbsp;loop.<br>
451 &nbsp;<br>
452 Blocks&nbsp;until&nbsp;the&nbsp;loop&nbsp;has&nbsp;finished.&nbsp;This&nbsp;must &nbsp;be&nbsp;called&nbsp;while<br>
453 <a href="#MemoryCacheHTTPServer-serve_forever">serve_forever</a>()&nbsp;is&nbsp; running&nbsp;in&nbsp;another&nbsp;thread,&nbsp;or&nbsp;it&nbsp;will<br>
454 deadlock.</tt></dd></dl>
455
456 <dl><dt><a name="MemoryCacheHTTPServer-verify_request"><strong>verify_request</s trong></a>(self, request, client_address)</dt><dd><tt>Verify&nbsp;the&nbsp;reque st.&nbsp;&nbsp;May&nbsp;be&nbsp;overridden.<br>
457 &nbsp;<br>
458 Return&nbsp;True&nbsp;if&nbsp;we&nbsp;should&nbsp;proceed&nbsp;with&nbsp;this&nb sp;request.</tt></dd></dl>
459
460 <hr>
461 Data and other attributes inherited from <a href="SocketServer.html#BaseServer"> SocketServer.BaseServer</a>:<br>
462 <dl><dt><strong>timeout</strong> = None</dl>
463
464 </td></tr></table> <p> 396 </td></tr></table> <p>
465 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 397 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
466 <tr bgcolor="#ffc8d8"> 398 <tr bgcolor="#ffc8d8">
399 <td colspan=3 valign=bottom>&nbsp;<br>
400 <font color="#000000" face="helvetica, arial"><a name="MemoryCacheHTTPServerBack end">class <strong>MemoryCacheHTTPServerBackend</strong></a>(<a href="telemetry. core.local_server.html#LocalServerBackend">telemetry.core.local_server.LocalServ erBackend</a>)</font></td></tr>
401
402 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
403 <td width="100%"><dl><dt>Method resolution order:</dt>
404 <dd><a href="telemetry.core.memory_cache_http_server.html#MemoryCacheHTTPServerB ackend">MemoryCacheHTTPServerBackend</a></dd>
405 <dd><a href="telemetry.core.local_server.html#LocalServerBackend">telemetry.core .local_server.LocalServerBackend</a></dd>
406 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
407 </dl>
408 <hr>
409 Methods defined here:<br>
410 <dl><dt><a name="MemoryCacheHTTPServerBackend-ServeForever"><strong>ServeForever </strong></a>(self)</dt></dl>
411
412 <dl><dt><a name="MemoryCacheHTTPServerBackend-StartAndGetNamedPorts"><strong>Sta rtAndGetNamedPorts</strong></a>(self, args)</dt></dl>
413
414 <dl><dt><a name="MemoryCacheHTTPServerBackend-__init__"><strong>__init__</strong ></a>(self)</dt></dl>
415
416 <hr>
417 Data descriptors inherited from <a href="telemetry.core.local_server.html#LocalS erverBackend">telemetry.core.local_server.LocalServerBackend</a>:<br>
418 <dl><dt><strong>__dict__</strong></dt>
419 <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)< /tt></dd>
420 </dl>
421 <dl><dt><strong>__weakref__</strong></dt>
422 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp ;(if&nbsp;defined)</tt></dd>
423 </dl>
424 </td></tr></table> <p>
425 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
426 <tr bgcolor="#ffc8d8">
467 <td colspan=3 valign=bottom>&nbsp;<br> 427 <td colspan=3 valign=bottom>&nbsp;<br>
468 <font color="#000000" face="helvetica, arial"><a name="ResourceAndRange">class < strong>ResourceAndRange</strong></a>(<a href="__builtin__.html#tuple">__builtin_ _.tuple</a>)</font></td></tr> 428 <font color="#000000" face="helvetica, arial"><a name="ResourceAndRange">class < strong>ResourceAndRange</strong></a>(<a href="__builtin__.html#tuple">__builtin_ _.tuple</a>)</font></td></tr>
469 429
470 <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td> 430 <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
471 <td colspan=2><tt><a href="#ResourceAndRange">ResourceAndRange</a>(resource,&nbs p;byte_range)<br>&nbsp;</tt></td></tr> 431 <td colspan=2><tt><a href="#ResourceAndRange">ResourceAndRange</a>(resource,&nbs p;byte_range)<br>&nbsp;</tt></td></tr>
472 <tr><td>&nbsp;</td> 432 <tr><td>&nbsp;</td>
473 <td width="100%"><dl><dt>Method resolution order:</dt> 433 <td width="100%"><dl><dt>Method resolution order:</dt>
474 <dd><a href="telemetry.core.memory_cache_http_server.html#ResourceAndRange">Reso urceAndRange</a></dd> 434 <dd><a href="telemetry.core.memory_cache_http_server.html#ResourceAndRange">Reso urceAndRange</a></dd>
475 <dd><a href="__builtin__.html#tuple">__builtin__.tuple</a></dd> 435 <dd><a href="__builtin__.html#tuple">__builtin__.tuple</a></dd>
476 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 436 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 501
542 <dl><dt><a name="ResourceAndRange-__rmul__"><strong>__rmul__</strong></a>(...)</ dt><dd><tt>x.<a href="#ResourceAndRange-__rmul__">__rmul__</a>(n)&nbsp;&lt;==&gt ;&nbsp;n*x</tt></dd></dl> 502 <dl><dt><a name="ResourceAndRange-__rmul__"><strong>__rmul__</strong></a>(...)</ dt><dd><tt>x.<a href="#ResourceAndRange-__rmul__">__rmul__</a>(n)&nbsp;&lt;==&gt ;&nbsp;n*x</tt></dd></dl>
543 503
544 <dl><dt><a name="ResourceAndRange-__sizeof__"><strong>__sizeof__</strong></a>(.. .)</dt><dd><tt>T.<a href="#ResourceAndRange-__sizeof__">__sizeof__</a>()&nbsp;-- &nbsp;size&nbsp;of&nbsp;T&nbsp;in&nbsp;memory,&nbsp;in&nbsp;bytes</tt></dd></dl> 504 <dl><dt><a name="ResourceAndRange-__sizeof__"><strong>__sizeof__</strong></a>(.. .)</dt><dd><tt>T.<a href="#ResourceAndRange-__sizeof__">__sizeof__</a>()&nbsp;-- &nbsp;size&nbsp;of&nbsp;T&nbsp;in&nbsp;memory,&nbsp;in&nbsp;bytes</tt></dd></dl>
545 505
546 <dl><dt><a name="ResourceAndRange-count"><strong>count</strong></a>(...)</dt><dd ><tt>T.<a href="#ResourceAndRange-count">count</a>(value)&nbsp;-&gt;&nbsp;intege r&nbsp;--&nbsp;return&nbsp;number&nbsp;of&nbsp;occurrences&nbsp;of&nbsp;value</t t></dd></dl> 506 <dl><dt><a name="ResourceAndRange-count"><strong>count</strong></a>(...)</dt><dd ><tt>T.<a href="#ResourceAndRange-count">count</a>(value)&nbsp;-&gt;&nbsp;intege r&nbsp;--&nbsp;return&nbsp;number&nbsp;of&nbsp;occurrences&nbsp;of&nbsp;value</t t></dd></dl>
547 507
548 <dl><dt><a name="ResourceAndRange-index"><strong>index</strong></a>(...)</dt><dd ><tt>T.<a href="#ResourceAndRange-index">index</a>(value,&nbsp;[start,&nbsp;[sto p]])&nbsp;-&gt;&nbsp;integer&nbsp;--&nbsp;return&nbsp;first&nbsp;index&nbsp;of&n bsp;value.<br> 508 <dl><dt><a name="ResourceAndRange-index"><strong>index</strong></a>(...)</dt><dd ><tt>T.<a href="#ResourceAndRange-index">index</a>(value,&nbsp;[start,&nbsp;[sto p]])&nbsp;-&gt;&nbsp;integer&nbsp;--&nbsp;return&nbsp;first&nbsp;index&nbsp;of&n bsp;value.<br>
549 Raises&nbsp;ValueError&nbsp;if&nbsp;the&nbsp;value&nbsp;is&nbsp;not&nbsp;present .</tt></dd></dl> 509 Raises&nbsp;ValueError&nbsp;if&nbsp;the&nbsp;value&nbsp;is&nbsp;not&nbsp;present .</tt></dd></dl>
550 510
551 </td></tr></table></td></tr></table><p> 511 </td></tr></table></td></tr></table>
552 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
553 <tr bgcolor="#eeaa77">
554 <td colspan=3 valign=bottom>&nbsp;<br>
555 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b ig></font></td></tr>
556
557 <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td> &nbsp;</td>
558 <td width="100%"><dl><dt><a name="-Main"><strong>Main</strong></a>()</dt></dl>
559 </td></tr></table>
560 </body></html> 512 </body></html>
OLDNEW
« no previous file with comments | « tools/telemetry/docs/telemetry.core.extension_to_load.html ('k') | tools/telemetry/docs/telemetry.core.platform.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698