| 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 </td><td width="25%" valign=top><a href="SocketServer.html">SocketServer</a><br> | 
|  | 25 <a href="StringIO.html">StringIO</a><br> | 
|  | 26 </td><td width="25%" valign=top><a href="gzip.html">gzip</a><br> | 
| 25 <a href="mimetypes.html">mimetypes</a><br> | 27 <a href="mimetypes.html">mimetypes</a><br> | 
| 26 </td><td width="25%" valign=top><a href="os.html">os</a><br> | 28 </td><td width="25%" valign=top><a href="os.html">os</a><br> | 
| 27 <a href="sys.html">sys</a><br> | 29 <a href="sys.html">sys</a><br> | 
| 28 </td><td width="25%" valign=top><a href="zlib.html">zlib</a><br> |  | 
| 29 </td></tr></table></td></tr></table><p> | 30 </td></tr></table></td></tr></table><p> | 
| 30 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 31 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 
| 31 <tr bgcolor="#ee77aa"> | 32 <tr bgcolor="#ee77aa"> | 
| 32 <td colspan=3 valign=bottom> <br> | 33 <td colspan=3 valign=bottom> <br> | 
| 33 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
     ></font></td></tr> | 34 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
     ></font></td></tr> | 
| 34 | 35 | 
| 35 <tr><td bgcolor="#ee77aa"><tt>      </tt></td><td>
      </td> | 36 <tr><td bgcolor="#ee77aa"><tt>      </tt></td><td>
      </td> | 
| 36 <td width="100%"><dl> | 37 <td width="100%"><dl> | 
| 37 <dt><font face="helvetica, arial"><a href="BaseHTTPServer.html#HTTPServer">BaseH
     TTPServer.HTTPServer</a>(<a href="SocketServer.html#TCPServer">SocketServer.TCPS
     erver</a>) | 38 <dt><font face="helvetica, arial"><a href="BaseHTTPServer.html#HTTPServer">BaseH
     TTPServer.HTTPServer</a>(<a href="SocketServer.html#TCPServer">SocketServer.TCPS
     erver</a>) | 
| 38 </font></dt><dd> | 39 </font></dt><dd> | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 87 <hr> | 88 <hr> | 
| 88 Class methods defined here:<br> | 89 Class methods defined here:<br> | 
| 89 <dl><dt><a name="ByteRange-_make"><strong>_make</strong></a>(cls, iterable, new<
     font color="#909090">=<built-in method __new__ of type object></font>, len
     <font color="#909090">=<built-in function len></font>)<font color="#909090
     "><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builtin_
     _.type</a></font></font></dt><dd><tt>Make a new <a href="#ByteRan
     ge">ByteRange</a> object from a sequence or iterab
     le</tt></dd></dl> | 90 <dl><dt><a name="ByteRange-_make"><strong>_make</strong></a>(cls, iterable, new<
     font color="#909090">=<built-in method __new__ of type object></font>, len
     <font color="#909090">=<built-in function len></font>)<font color="#909090
     "><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builtin_
     _.type</a></font></font></dt><dd><tt>Make a new <a href="#ByteRan
     ge">ByteRange</a> object from a sequence or iterab
     le</tt></dd></dl> | 
| 90 | 91 | 
| 91 <hr> | 92 <hr> | 
| 92 Static methods defined here:<br> | 93 Static methods defined here:<br> | 
| 93 <dl><dt><a name="ByteRange-__new__"><strong>__new__</strong></a>(_cls, from_byte
     , to_byte)</dt><dd><tt>Create new instance of <a href="#Byte
     Range">ByteRange</a>(from_byte, to_byte)</tt></dd></dl> | 94 <dl><dt><a name="ByteRange-__new__"><strong>__new__</strong></a>(_cls, from_byte
     , to_byte)</dt><dd><tt>Create new instance of <a href="#Byte
     Range">ByteRange</a>(from_byte, to_byte)</tt></dd></dl> | 
| 94 | 95 | 
| 95 <hr> | 96 <hr> | 
| 96 Data descriptors defined here:<br> | 97 Data descriptors defined here:<br> | 
| 97 <dl><dt><strong>__dict__</strong></dt> |  | 
| 98 <dd><tt>Return a new OrderedDict which maps field&
     nbsp;names to their values</tt></dd> |  | 
| 99 </dl> |  | 
| 100 <dl><dt><strong>from_byte</strong></dt> | 98 <dl><dt><strong>from_byte</strong></dt> | 
| 101 <dd><tt>Alias for field number 0</tt></dd> | 99 <dd><tt>Alias for field number 0</tt></dd> | 
| 102 </dl> | 100 </dl> | 
| 103 <dl><dt><strong>to_byte</strong></dt> | 101 <dl><dt><strong>to_byte</strong></dt> | 
| 104 <dd><tt>Alias for field number 1</tt></dd> | 102 <dd><tt>Alias for field number 1</tt></dd> | 
| 105 </dl> | 103 </dl> | 
| 106 <hr> | 104 <hr> | 
| 107 Data and other attributes defined here:<br> | 105 Data and other attributes defined here:<br> | 
| 108 <dl><dt><strong>_fields</strong> = ('from_byte', 'to_byte')</dl> | 106 <dl><dt><strong>_fields</strong> = ('from_byte', 'to_byte')</dl> | 
| 109 | 107 | 
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 226 None, in which case the caller has nothing&nb
     sp;further to do.</tt></dd></dl> | 224 None, in which case the caller has nothing&nb
     sp;further to do.</tt></dd></dl> | 
| 227 | 225 | 
| 228 <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> | 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> | 
| 229  <br> | 227  <br> | 
| 230 Components that mean special things to the lo
     cal file system<br> | 228 Components that mean special things to the lo
     cal file system<br> | 
| 231 (e.g. drive or directory names) are ignored. 
      (XXX They should<br> | 229 (e.g. drive or directory names) are ignored. 
      (XXX They should<br> | 
| 232 probably be diagnosed.)</tt></dd></dl> | 230 probably be diagnosed.)</tt></dd></dl> | 
| 233 | 231 | 
| 234 <hr> | 232 <hr> | 
| 235 Data and other attributes inherited from <a href="SimpleHTTPServer.html#SimpleHT
     TPRequestHandler">SimpleHTTPServer.SimpleHTTPRequestHandler</a>:<br> | 233 Data and other attributes inherited from <a href="SimpleHTTPServer.html#SimpleHT
     TPRequestHandler">SimpleHTTPServer.SimpleHTTPRequestHandler</a>:<br> | 
| 236 <dl><dt><strong>extensions_map</strong> = {'': 'application/octet-stream', '.%':
      'application/x-trash', '.323': 'text/h323', '.3gp': 'video/3gpp', '.7z': 'appli
     cation/x-7z-compressed', '.a': 'application/octet-stream', '.abw': 'application/
     x-abiword', '.ai': 'application/postscript', '.aif': 'audio/x-aiff', '.aifc': 'a
     udio/x-aiff', ...}</dl> | 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> | 
| 237 | 235 | 
| 238 <dl><dt><strong>server_version</strong> = 'SimpleHTTP/0.6'</dl> | 236 <dl><dt><strong>server_version</strong> = 'SimpleHTTP/0.6'</dl> | 
| 239 | 237 | 
| 240 <hr> | 238 <hr> | 
| 241 Methods inherited from <a href="BaseHTTPServer.html#BaseHTTPRequestHandler">Base
     HTTPServer.BaseHTTPRequestHandler</a>:<br> | 239 Methods inherited from <a href="BaseHTTPServer.html#BaseHTTPRequestHandler">Base
     HTTPServer.BaseHTTPRequestHandler</a>:<br> | 
| 242 <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> | 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> | 
| 243  <br> | 241  <br> | 
| 244 This version looks up the full hostname using
      gethostbyaddr(),<br> | 242 This version looks up the full hostname using
      gethostbyaddr(),<br> | 
| 245 and tries to find a name that contains a
     t least one dot.</tt></dd></dl> | 243 and tries to find a name that contains a
     t least one dot.</tt></dd></dl> | 
| 246 | 244 | 
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 322 <dl><dt><strong>error_content_type</strong> = 'text/html'</dl> | 320 <dl><dt><strong>error_content_type</strong> = 'text/html'</dl> | 
| 323 | 321 | 
| 324 <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> | 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> | 
| 325 | 323 | 
| 326 <dl><dt><strong>monthname</strong> = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', '
     Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']</dl> | 324 <dl><dt><strong>monthname</strong> = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', '
     Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']</dl> | 
| 327 | 325 | 
| 328 <dl><dt><strong>protocol_version</strong> = 'HTTP/1.0'</dl> | 326 <dl><dt><strong>protocol_version</strong> = 'HTTP/1.0'</dl> | 
| 329 | 327 | 
| 330 <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> | 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> | 
| 331 | 329 | 
| 332 <dl><dt><strong>sys_version</strong> = 'Python/2.7.3'</dl> | 330 <dl><dt><strong>sys_version</strong> = 'Python/2.7.2'</dl> | 
| 333 | 331 | 
| 334 <dl><dt><strong>weekdayname</strong> = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'
     , 'Sun']</dl> | 332 <dl><dt><strong>weekdayname</strong> = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'
     , 'Sun']</dl> | 
| 335 | 333 | 
| 336 <hr> | 334 <hr> | 
| 337 Methods inherited from <a href="SocketServer.html#StreamRequestHandler">SocketSe
     rver.StreamRequestHandler</a>:<br> | 335 Methods inherited from <a href="SocketServer.html#StreamRequestHandler">SocketSe
     rver.StreamRequestHandler</a>:<br> | 
| 338 <dl><dt><a name="MemoryCacheHTTPRequestHandler-finish"><strong>finish</strong></
     a>(self)</dt></dl> | 336 <dl><dt><a name="MemoryCacheHTTPRequestHandler-finish"><strong>finish</strong></
     a>(self)</dt></dl> | 
| 339 | 337 | 
| 340 <dl><dt><a name="MemoryCacheHTTPRequestHandler-setup"><strong>setup</strong></a>
     (self)</dt></dl> | 338 <dl><dt><a name="MemoryCacheHTTPRequestHandler-setup"><strong>setup</strong></a>
     (self)</dt></dl> | 
| 341 | 339 | 
| 342 <hr> | 340 <hr> | 
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 490 <hr> | 488 <hr> | 
| 491 Class methods defined here:<br> | 489 Class methods defined here:<br> | 
| 492 <dl><dt><a name="ResourceAndRange-_make"><strong>_make</strong></a>(cls, iterabl
     e, new<font color="#909090">=<built-in method __new__ of type object></fon
     t>, len<font color="#909090">=<built-in function len></font>)<font color="
     #909090"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__b
     uiltin__.type</a></font></font></dt><dd><tt>Make a new <a href="#
     ResourceAndRange">ResourceAndRange</a> object from a sequenc
     e or iterable</tt></dd></dl> | 490 <dl><dt><a name="ResourceAndRange-_make"><strong>_make</strong></a>(cls, iterabl
     e, new<font color="#909090">=<built-in method __new__ of type object></fon
     t>, len<font color="#909090">=<built-in function len></font>)<font color="
     #909090"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__b
     uiltin__.type</a></font></font></dt><dd><tt>Make a new <a href="#
     ResourceAndRange">ResourceAndRange</a> object from a sequenc
     e or iterable</tt></dd></dl> | 
| 493 | 491 | 
| 494 <hr> | 492 <hr> | 
| 495 Static methods defined here:<br> | 493 Static methods defined here:<br> | 
| 496 <dl><dt><a name="ResourceAndRange-__new__"><strong>__new__</strong></a>(_cls, re
     source, byte_range)</dt><dd><tt>Create new instance of <a hr
     ef="#ResourceAndRange">ResourceAndRange</a>(resource, byte_range)</tt></dd>
     </dl> | 494 <dl><dt><a name="ResourceAndRange-__new__"><strong>__new__</strong></a>(_cls, re
     source, byte_range)</dt><dd><tt>Create new instance of <a hr
     ef="#ResourceAndRange">ResourceAndRange</a>(resource, byte_range)</tt></dd>
     </dl> | 
| 497 | 495 | 
| 498 <hr> | 496 <hr> | 
| 499 Data descriptors defined here:<br> | 497 Data descriptors defined here:<br> | 
| 500 <dl><dt><strong>__dict__</strong></dt> |  | 
| 501 <dd><tt>Return a new OrderedDict which maps field&
     nbsp;names to their values</tt></dd> |  | 
| 502 </dl> |  | 
| 503 <dl><dt><strong>byte_range</strong></dt> | 498 <dl><dt><strong>byte_range</strong></dt> | 
| 504 <dd><tt>Alias for field number 1</tt></dd> | 499 <dd><tt>Alias for field number 1</tt></dd> | 
| 505 </dl> | 500 </dl> | 
| 506 <dl><dt><strong>resource</strong></dt> | 501 <dl><dt><strong>resource</strong></dt> | 
| 507 <dd><tt>Alias for field number 0</tt></dd> | 502 <dd><tt>Alias for field number 0</tt></dd> | 
| 508 </dl> | 503 </dl> | 
| 509 <hr> | 504 <hr> | 
| 510 Data and other attributes defined here:<br> | 505 Data and other attributes defined here:<br> | 
| 511 <dl><dt><strong>_fields</strong> = ('resource', 'byte_range')</dl> | 506 <dl><dt><strong>_fields</strong> = ('resource', 'byte_range')</dl> | 
| 512 | 507 | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 556 </td></tr></table></td></tr></table><p> | 551 </td></tr></table></td></tr></table><p> | 
| 557 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 552 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 
| 558 <tr bgcolor="#eeaa77"> | 553 <tr bgcolor="#eeaa77"> | 
| 559 <td colspan=3 valign=bottom> <br> | 554 <td colspan=3 valign=bottom> <br> | 
| 560 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
     ig></font></td></tr> | 555 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
     ig></font></td></tr> | 
| 561 | 556 | 
| 562 <tr><td bgcolor="#eeaa77"><tt>      </tt></td><td>
      </td> | 557 <tr><td bgcolor="#eeaa77"><tt>      </tt></td><td>
      </td> | 
| 563 <td width="100%"><dl><dt><a name="-Main"><strong>Main</strong></a>()</dt></dl> | 558 <td width="100%"><dl><dt><a name="-Main"><strong>Main</strong></a>()</dt></dl> | 
| 564 </td></tr></table> | 559 </td></tr></table> | 
| 565 </body></html> | 560 </body></html> | 
| OLD | NEW | 
|---|