if mime_type:
self.set_header("Content-Type", mime_type)
+ self.set_extra_headers(path)
+
# Check the If-Modified-Since, and don't send the result if the
# content has not been modified
ims_value = self.request.headers.get("If-Modified-Since")
finally:
file.close()
+ def set_extra_headers(self, path):
+ """For subclass to add extra headers to the response"""
+ pass
+
class FallbackHandler(RequestHandler):
"""A RequestHandler that wraps another HTTP server callback.