Adds extra functionality to a response object for etag and cache handling. This mixin requires an object with at least a headers object that implements a dict like interface similar to
If you want the
freeze()method to automatically add an etag, you have to mixin this method before the response base class. The default response class does not do that.
||Add an etag for the current response if there is none yet.|
||Call this method if you want to make your response object ready for pickeling.|
||Return a tuple in the form
||Make the response conditional to the request.|
||Set the etag, and override the old one if there was one.|