2 from twisted.web2 import server, http, http_headers
4 from apt_dht_conf import config
5 from HTTPServer import TopLevel
9 self.http_server = TopLevel(config.defaults()['cache_dir'], self)
10 self.http_site = server.Site(self.http_server)
15 def check_freshness(self, path, modtime, resp):
18 def get_resp(self, path):
21 {'content-type': http_headers.MimeType('text', 'html')},
24 <p>TODO: eventually this will cause a P2P lookup.</body></html>""")