OLD | NEW |
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> <br> | 8 <td valign=bottom> <br> |
9 <font color="#ffffff" face="helvetica, arial"> <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"> <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># Copyright (c) 2012 The Chromium Autho
rs. All rights reserved.<br> | 12 <p><tt># Copyright (c) 2012 The Chromium Autho
rs. All rights reserved.<br> |
13 # Use of this source code is governed by
a BSD-style license that can be<br> | 13 # Use of this source code is governed by
a BSD-style license that can be<br> |
14 # found in the LICENSE file.</tt></p> | 14 # found in the LICENSE 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> <br> | 18 <td colspan=3 valign=bottom> <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> </tt></td><td>
</td> | 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</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> <br> | 35 <td colspan=3 valign=bottom> <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> </tt></td><td>
</td> | 38 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</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> <br> | 69 <td colspan=3 valign=bottom> <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> </tt></td> | 72 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
71 <td colspan=2><tt><a href="#ByteRange">ByteRange</a>(from_byte, to_byte)<br
> </tt></td></tr> | 73 <td colspan=2><tt><a href="#ByteRange">ByteRange</a>(from_byte, to_byte)<br
> </tt></td></tr> |
72 <tr><td> </td> | 74 <tr><td> </td> |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 the header&
nbsp;and get the range values specified.<br> | 169 <dl><dt><a name="MemoryCacheHTTPRequestHandler-GetByteRange"><strong>GetByteRang
e</strong></a>(self, total_num_of_bytes)</dt><dd><tt>Parse the header&
nbsp;and get the range values specified.<br> |
168 <br> | 170 <br> |
169 Args:<br> | 171 Args:<br> |
170 total_num_of_bytes: Total # of bytes in&nbs
p;requested resource,<br> | 172 total_num_of_bytes: Total # of bytes in&nbs
p;requested resource,<br> |
171 used to calculate upper range limit.<br> | 173 used to calculate upper range limit.<br> |
172 Returns:<br> | 174 Returns:<br> |
173 A <a href="#ByteRange">ByteRange</a> namedtuple objec
t with the requested byte-range values.<br> | 175 A <a href="#ByteRange">ByteRange</a> namedtuple objec
t with the requested byte-range values.<br> |
174 If no Range is explicitly requested or
there is a failure parsing,<br> | 176 If no Range is explicitly requested or
there is a failure parsing,<br> |
175 return None.<br> | 177 return None.<br> |
176 Special case: If range specified is in
the format "N-", return N-N.<br> | 178 If range specified is in the format&nb
sp;"N-", return N-END. Refer to<br> |
| 179 <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">htt
p://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html</a> for details.<b
r> |
177 If upper range limit is greater than&n
bsp;total # of bytes, return upper index.</tt></dd
></dl> | 180 If upper range limit is greater than&n
bsp;total # of bytes, return upper 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 a GET request.</tt></dd></dl> | 184 <dl><dt><a name="MemoryCacheHTTPRequestHandler-do_GET"><strong>do_GET</strong></
a>(self)</dt><dd><tt>Serve a GET request.</tt></dd></dl> |
182 | 185 |
183 <dl><dt><a name="MemoryCacheHTTPRequestHandler-do_HEAD"><strong>do_HEAD</strong>
</a>(self)</dt><dd><tt>Serve a HEAD request.</tt></dd></dl> | 186 <dl><dt><a name="MemoryCacheHTTPRequestHandler-do_HEAD"><strong>do_HEAD</strong>
</a>(self)</dt><dd><tt>Serve a HEAD 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 all data betwee
n two file objects.<br> | 194 <dl><dt><a name="MemoryCacheHTTPRequestHandler-copyfile"><strong>copyfile</stron
g></a>(self, source, outputfile)</dt><dd><tt>Copy all data betwee
n two file objects.<br> |
188 <br> | 195 <br> |
189 The SOURCE argument is a file object open&nbs
p;for reading<br> | 196 The SOURCE argument is a file object open&nbs
p;for reading<br> |
190 (or anything with a read() method) and the&nb
sp;DESTINATION<br> | 197 (or anything with a read() method) and the&nb
sp;DESTINATION<br> |
191 argument is a file object open for writing&nb
sp;(or<br> | 198 argument is a file object open for writing&nb
sp;(or<br> |
192 anything with a write() method).<br> | 199 anything with a write() method).<br> |
193 <br> | 200 <br> |
194 The only reason for overriding this would be&
nbsp;to change<br> | 201 The only reason for overriding this would be&
nbsp;to change<br> |
(...skipping 29 matching lines...) Expand all Loading... |
224 None, in which case the caller has nothing&nb
sp;further to do.</tt></dd></dl> | 231 None, in which case the caller has nothing&nb
sp;further to 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 a /-separated&nbs
p;PATH to the local filename syntax.<br> | 233 <dl><dt><a name="MemoryCacheHTTPRequestHandler-translate_path"><strong>translate
_path</strong></a>(self, path)</dt><dd><tt>Translate a /-separated&nbs
p;PATH to the local filename syntax.<br> |
227 <br> | 234 <br> |
228 Components that mean special things to the lo
cal file system<br> | 235 Components that mean special things to the lo
cal file system<br> |
229 (e.g. drive or directory names) are ignored.
(XXX They should<br> | 236 (e.g. drive or directory names) are ignored.
(XXX They should<br> |
230 probably be diagnosed.)</tt></dd></dl> | 237 probably be 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 the client address&nb
sp;formatted for logging.<br> | 247 <dl><dt><a name="MemoryCacheHTTPRequestHandler-address_string"><strong>address_s
tring</strong></a>(self)</dt><dd><tt>Return the client address&nb
sp;formatted for logging.<br> |
241 <br> | 248 <br> |
242 This version looks up the full hostname using
gethostbyaddr(),<br> | 249 This version looks up the full hostname using
gethostbyaddr(),<br> |
243 and tries to find a name that contains a
t least one dot.</tt></dd></dl> | 250 and tries to find a name that contains a
t least one 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 the current date and time formatted&n
bsp;for a message 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 the current date and time formatted&n
bsp;for a message header.</tt></dd></dl> |
246 | 253 |
247 <dl><dt><a name="MemoryCacheHTTPRequestHandler-end_headers"><strong>end_headers<
/strong></a>(self)</dt><dd><tt>Send the blank line ending&nb
sp;the MIME headers.</tt></dd></dl> | 254 <dl><dt><a name="MemoryCacheHTTPRequestHandler-end_headers"><strong>end_headers<
/strong></a>(self)</dt><dd><tt>Send the blank line ending&nb
sp;the MIME headers.</tt></dd></dl> |
248 | 255 |
249 <dl><dt><a name="MemoryCacheHTTPRequestHandler-handle"><strong>handle</strong></
a>(self)</dt><dd><tt>Handle multiple requests if necessary.<
/tt></dd></dl> | 256 <dl><dt><a name="MemoryCacheHTTPRequestHandler-handle"><strong>handle</strong></
a>(self)</dt><dd><tt>Handle multiple requests if 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 a single HTTP
request.<br> | 258 <dl><dt><a name="MemoryCacheHTTPRequestHandler-handle_one_request"><strong>handl
e_one_request</strong></a>(self)</dt><dd><tt>Handle a single HTTP
request.<br> |
252 <br> | 259 <br> |
253 You normally don't need to override this meth
od; see the class<br> | 260 You normally don't need to override this meth
od; see the class<br> |
254 __doc__ string for information on how to hand
le specific HTTP<br> | 261 __doc__ string for information on how to hand
le specific HTTP<br> |
255 commands such as GET and POST.</tt></dd></dl> | 262 commands such as GET and 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 the current&nb
sp;time formatted for 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 the current&nb
sp;time formatted for 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 an error.<br> | |
260 <br> | |
261 This is called when a request cannot be
fulfilled. By<br> | |
262 default it passes the message on to <a href="
#MemoryCacheHTTPRequestHandler-log_message">log_message</a>().<br> | |
263 <br> | |
264 Arguments are the same as for <a href="#MemoryCach
eHTTPRequestHandler-log_message">log_message</a>().<br> | |
265 <br> | |
266 XXX This should go to the separate error 
;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 an arbitrary me
ssage.<br> | 266 <dl><dt><a name="MemoryCacheHTTPRequestHandler-log_message"><strong>log_message<
/strong></a>(self, format, *args)</dt><dd><tt>Log an arbitrary me
ssage.<br> |
269 <br> | 267 <br> |
270 This is used by all other logging functions.&
nbsp; Override<br> | 268 This is used by all other logging functions.&
nbsp; Override<br> |
271 it if you have specific logging wishes.<br> | 269 it if you have specific logging wishes.<br> |
272 <br> | 270 <br> |
273 The first argument, FORMAT, is a format strin
g for the<br> | 271 The first argument, FORMAT, is a format strin
g for the<br> |
274 message to be logged. If the format str
ing contains<br> | 272 message to be logged. If the format str
ing contains<br> |
275 any % escapes requiring parameters, they should&nb
sp;be<br> | 273 any % escapes requiring parameters, they should&nb
sp;be<br> |
276 specified as subsequent arguments (it's just like<
br> | 274 specified as subsequent arguments (it's just like<
br> |
277 printf!).<br> | 275 printf!).<br> |
278 <br> | 276 <br> |
279 The client host and current date/time are pre
fixed to<br> | 277 The client ip address and current date/time a
re prefixed to every<br> |
280 every 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 an accepted request.<br> | |
283 <br> | |
284 This is called by <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 a request (internal).<br
> | 280 <dl><dt><a name="MemoryCacheHTTPRequestHandler-parse_request"><strong>parse_requ
est</strong></a>(self)</dt><dd><tt>Parse a request (internal).<br
> |
287 <br> | 281 <br> |
288 The request should be stored in self.<strong>raw_r
equestline</strong>; the results<br> | 282 The request should be stored in self.<strong>raw_r
equestline</strong>; the results<br> |
289 are in self.<strong>command</strong>, self.<strong>path</strong>,
self.<strong>request_version</strong> and<br> | 283 are in self.<strong>command</strong>, self.<strong>path</strong>,
self.<strong>request_version</strong> and<br> |
290 self.<strong>headers</strong>.<br> | 284 self.<strong>headers</strong>.<br> |
291 <br> | 285 <br> |
292 Return True for success, False for failure; o
n failure, an<br> | 286 Return True for success, False for failure; o
n failure, an<br> |
293 error is sent back.</tt></dd></dl> | 287 error is sent back.</tt></dd></dl> |
294 | 288 |
(...skipping 25 matching lines...) Expand all Loading... |
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> = '<head><font color="#c040c
0">\n</font><title>Error response</title><font color="#c040c0">\n</f
ont></head><font color="#c040c0">\n</font><bo...ode explanation: %(code
)s = %(explain)s.<font color="#c040c0">\n</font></body><font color="#c040c
0">\n</font>'</dl> | 316 <dl><dt><strong>error_message_format</strong> = '<head><font color="#c040c
0">\n</font><title>Error response</title><font color="#c040c0">\n</f
ont></head><font color="#c040c0">\n</font><bo...ode explanation: %(code
)s = %(explain)s.<font color="#c040c0">\n</font></body><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> <br> | 351 <td colspan=3 valign=bottom> <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> </tt></td><td> </td> | 354 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </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 al
l files in directory_path into the in-memory
resource 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 file_path in
to the in-memory resource 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 a new&nb
sp;thread to process the request.</tt></dd></dl> | 388 <dl><dt><strong>__dict__</strong></dt> |
383 | 389 <dd><tt>dictionary for instance variables (if 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
as in BaseServer but as a thread.<br> | 390 </dl> |
385 <br> | 391 <dl><dt><strong>__weakref__</strong></dt> |
386 In addition, exception handling is done here.</tt>
</dd></dl> | 392 <dd><tt>list of weak references to the object 
;(if 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 server_bind to store the&nbs
p;server 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 to clean up an&nb
sp;individual request.</tt></dd></dl> | |
403 | |
404 <dl><dt><a name="MemoryCacheHTTPServer-fileno"><strong>fileno</strong></a>(self)
</dt><dd><tt>Return socket file number.<br> | |
405 <br> | |
406 Interface required by select().</tt></dd></dl> | |
407 | |
408 <dl><dt><a name="MemoryCacheHTTPServer-get_request"><strong>get_request</strong>
</a>(self)</dt><dd><tt>Get the request and client addre
ss from the socket.<br> | |
409 <br> | |
410 May be overridden.</tt></dd></dl> | |
411 | |
412 <dl><dt><a name="MemoryCacheHTTPServer-server_activate"><strong>server_activate<
/strong></a>(self)</dt><dd><tt>Called by constructor to acti
vate the server.<br> | |
413 <br> | |
414 May be overridden.</tt></dd></dl> | |
415 | |
416 <dl><dt><a name="MemoryCacheHTTPServer-server_close"><strong>server_close</stron
g></a>(self)</dt><dd><tt>Called to clean-up the server.<br> | |
417 <br> | |
418 May be 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 to shutdown and&
nbsp;close an individual 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 one reque
st by instantiating 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 an error 
;gracefully. May be overridden.<br> | |
433 <br> | |
434 The default is to print a traceback and
continue.</tt></dd></dl> | |
435 | |
436 <dl><dt><a name="MemoryCacheHTTPServer-handle_request"><strong>handle_request</s
trong></a>(self)</dt><dd><tt>Handle one request, possibly bl
ocking.<br> | |
437 <br> | |
438 Respects 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 if no new request a
rrives within self.<strong>timeout</strong>.<br> | |
441 <br> | |
442 Overridden by 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 one request at a time until shutdown.<br> | |
445 <br> | |
446 Polls for shutdown every poll_interval seconds. Ig
nores<br> | |
447 self.<strong>timeout</strong>. If you need to do p
eriodic tasks, do them in<br> | |
448 another thread.</tt></dd></dl> | |
449 | |
450 <dl><dt><a name="MemoryCacheHTTPServer-shutdown"><strong>shutdown</strong></a>(s
elf)</dt><dd><tt>Stops the serve_forever loop.<br> | |
451 <br> | |
452 Blocks until the loop has finished. This must
be called while<br> | |
453 <a href="#MemoryCacheHTTPServer-serve_forever">serve_forever</a>() is
running in another thread, or it 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 the reque
st. May be overridden.<br> | |
457 <br> | |
458 Return True if we should proceed with 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> <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> </tt></td><td> </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 for instance variables (if defined)<
/tt></dd> |
| 420 </dl> |
| 421 <dl><dt><strong>__weakref__</strong></dt> |
| 422 <dd><tt>list of weak references to the object 
;(if 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> <br> | 427 <td colspan=3 valign=bottom> <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> </tt></td> | 430 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
471 <td colspan=2><tt><a href="#ResourceAndRange">ResourceAndRange</a>(resource,&nbs
p;byte_range)<br> </tt></td></tr> | 431 <td colspan=2><tt><a href="#ResourceAndRange">ResourceAndRange</a>(resource,&nbs
p;byte_range)<br> </tt></td></tr> |
472 <tr><td> </td> | 432 <tr><td> </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 Loading... |
541 | 501 |
542 <dl><dt><a name="ResourceAndRange-__rmul__"><strong>__rmul__</strong></a>(...)</
dt><dd><tt>x.<a href="#ResourceAndRange-__rmul__">__rmul__</a>(n) <==>
; 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) <==>
; 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>() --
size of T in memory, in 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>() --
size of T in memory, in 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) -> intege
r -- return number of occurrences of 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) -> intege
r -- return number of occurrences of 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, [start, [sto
p]]) -> integer -- return first index 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, [start, [sto
p]]) -> integer -- return first index of&n
bsp;value.<br> |
549 Raises ValueError if the value is not present
.</tt></dd></dl> | 509 Raises ValueError if the value is not 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> <br> | |
555 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
ig></font></td></tr> | |
556 | |
557 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td>
</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> |
OLD | NEW |