| Home | Trees | Indices | Help |
|
|---|
|
|
An urllib2.response-like object for cached responses.
To determine wheter a response is cached or coming directly from the network, check the x-cache header rather than the object type.
|
|||
| __init__(self, cacheLocation, request) | ||
|
read(self) Read at most size bytes from the file (less if the read hits EOF before obtaining size bytes). |
||
| info(self) | ||
| geturl(self) | ||
| get_full_url(self) | ||
|
Inherited from |
|||
|
|||
| ExistsInCache(cacheLocation, id) | ||
| StoreInCache(cacheLocation, id, response) | ||
|
|||
|
|
|
Read at most size bytes from the file (less if the read hits EOF before obtaining size bytes). If the size argument is negative or omitted, read all data until EOF is reached. The bytes are returned as a string object. An empty string is returned when EOF is encountered immediately.
|
|
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Thu Oct 18 19:37:47 2007 | http://epydoc.sourceforge.net |