Module HTTPCache
source code
Manage an HTTP download cache.
|
|
CacheRequest
A new request to send to the server for the cache.
|
|
|
CacheConnection
Download files needed for the HTTP download cache from a single
server.
|
|
|
HTTPCache
Manage an HTTP download cache.
|
logging.Logger
|
logger = logging.getLogger('DebTorrent.HTTPCache')
the logger to send all log messages to for this module
|
string
|
time_format = '%a, %d %b %Y %H:%M:%S'
the format to use for reading/writing HTTP server times
|
string
|
VERSION = 'DebTorrent/T-0.1.4'
the UserAgent identifier sent to all sites
|
string
|
alas = 'your file may exist elsewhere in the universe\nbut ala...
the message to send when the data is not found
|
float
|
TIMEOUT = 60.0
the number of seconds after which an idle connection is closed
|
Imports:
httplib.HTTPConnection,
httplib.BadStatusLine,
socket.gaierror,
threading.Thread,
__init__.product_name,
__init__.version_short,
clock.clock,
os.path.join,
os.path.split,
os.path.getmtime,
os.path.getsize,
os.path.exists,
os.utime,
os.makedirs,
os.listdir,
time.strftime,
time.strptime,
time.gmtime,
calendar.timegm,
logging
alas
the message to send when the data is not found
- Type:
string
- Value:
'''your file may exist elsewhere in the universe
but alas, not here
'''
|
|