'Called when have finished responding and are no longer queued.'

def _cleanup(self):

    if self.producer:
        log.err(RuntimeError(('Producer    was    not    unregistered    for    %s' % self.uri)))
        self.unregisterProducer()
    self.channel.requestDone(self)
    del self.channel
    if (self.content is not None):
        try:
            self.content.close()
        except OSError:
            pass
        del self.content
    for d in self.notifications:
        d.callback(None)
    self.notifications = []
