'Processes the given response, potentially remove or modifying headers.'

def process_response(self, _request, response):

    for header in getattr(response, 'remove_headers', []):
        del response[header]
    for (header, value) in getattr(response, 'force_headers', {}).iteritems():
        response[header] = value
    return response
